Skip to content

Commit

Permalink
ACPI: APD: Add clock frequency for Phytium I2C controller
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
JiakunShuai authored and MingcongBai committed May 22, 2024
1 parent fbd665b commit ff93a8a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/acpi/acpi_apd.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ static const struct apd_device_desc hip08_lite_i2c_desc = {
.fixed_clk_rate = 125000000,
};

static const struct apd_device_desc phytium_i2c_desc = {
.setup = acpi_apd_setup,
.fixed_clk_rate = 200000000,
};

static const struct apd_device_desc thunderx2_i2c_desc = {
.setup = acpi_apd_setup,
.fixed_clk_rate = 125000000,
Expand Down Expand Up @@ -246,6 +251,7 @@ static const struct acpi_device_id acpi_apd_device_ids[] = {
{ "HISI02A3", APD_ADDR(hip08_lite_i2c_desc) },
{ "HISI0173", APD_ADDR(hip08_spi_desc) },
{ "NXP0001", APD_ADDR(nxp_i2c_desc) },
{ "PHYT0003", APD_ADDR(phytium_i2c_desc) },
#endif
{ }
};
Expand Down

0 comments on commit ff93a8a

Please sign in to comment.