projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40e020c
)
ACPI / APD: Add clock frequency for Hisilicon Hip08 SPI controller
author
Jay Fang
<f.fangjian@huawei.com>
Mon, 3 Dec 2018 03:15:49 +0000
(11:15 +0800)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Tue, 11 Dec 2018 11:16:41 +0000
(12:16 +0100)
The SPI clock frequency of Designware IP for Hisilicon Hip08 is 250M.
The ACPI ID used is "HISI0173".
Signed-off-by: Jay Fang <f.fangjian@huawei.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_apd.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/acpi_apd.c
b/drivers/acpi/acpi_apd.c
index
2664452
..
ddf598a
100644
(file)
--- a/
drivers/acpi/acpi_apd.c
+++ b/
drivers/acpi/acpi_apd.c
@@
-166,6
+166,11
@@
static const struct apd_device_desc thunderx2_i2c_desc = {
.setup = acpi_apd_setup,
.fixed_clk_rate = 125000000,
};
+
+static const struct apd_device_desc hip08_spi_desc = {
+ .setup = acpi_apd_setup,
+ .fixed_clk_rate = 250000000,
+};
#endif
#else
@@
-234,6
+239,7
@@
static const struct acpi_device_id acpi_apd_device_ids[] = {
{ "CAV9007", APD_ADDR(thunderx2_i2c_desc) },
{ "HISI02A1", APD_ADDR(hip07_i2c_desc) },
{ "HISI02A2", APD_ADDR(hip08_i2c_desc) },
+ { "HISI0173", APD_ADDR(hip08_spi_desc) },
#endif
{ }
};