Skip to content

Commit 8940089

Browse files
JiakunShuaiAvenger-285714
authored andcommitted
ACPI: APD: Add clock frequency for Phytium I2C controller
Add the input frequency of 200MHz for the Phytium I2C controller block. The ACPI ID used is "PHYT0003". Signed-off-by: Wang Yinfeng <[email protected]> Signed-off-by: Chen Baozi <[email protected]> Signed-off-by: Jiakun Shuai <[email protected]>
1 parent c770de6 commit 8940089

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/acpi/acpi_apd.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@ static const struct apd_device_desc hip08_lite_i2c_desc = {
162162
.fixed_clk_rate = 125000000,
163163
};
164164

165+
static const struct apd_device_desc phytium_i2c_desc = {
166+
.setup = acpi_apd_setup,
167+
.fixed_clk_rate = 200000000,
168+
};
169+
165170
static const struct apd_device_desc thunderx2_i2c_desc = {
166171
.setup = acpi_apd_setup,
167172
.fixed_clk_rate = 125000000,
@@ -246,6 +251,7 @@ static const struct acpi_device_id acpi_apd_device_ids[] = {
246251
{ "HISI02A3", APD_ADDR(hip08_lite_i2c_desc) },
247252
{ "HISI0173", APD_ADDR(hip08_spi_desc) },
248253
{ "NXP0001", APD_ADDR(nxp_i2c_desc) },
254+
{ "PHYT0003", APD_ADDR(phytium_i2c_desc) },
249255
#endif
250256
{ }
251257
};

0 commit comments

Comments
 (0)