Message ID | 20240919062943.1551197-2-hunter.yu@hj-micro.com |
---|---|
State | Superseded |
Headers | show |
Series | [1/2] ACPI: APD: Add clock frequency for HJMC01 I2C controller | expand |
On Thu, Sep 19, 2024 at 02:29:42PM +0800, hunter.yu@hj-micro.com wrote: > From: "hunter.yu" <hunter.yu@hj-micro.com> > > I2C clock frequency for HJMC01 is 200M, define a new ACPI > HID for it. ... > { "HISI02A3", APD_ADDR(hip08_lite_i2c_desc) }, > { "HISI0173", APD_ADDR(hip08_spi_desc) }, > { "NXP0001", APD_ADDR(nxp_i2c_desc) }, > + { "HJMC3001", APD_ADDR(hjmc_i2c_desc) }, Please, keep it ordered.
diff --git a/drivers/acpi/acpi_apd.c b/drivers/acpi/acpi_apd.c index 800f97868448..bc271d1cb31b 100644 --- a/drivers/acpi/acpi_apd.c +++ b/drivers/acpi/acpi_apd.c @@ -181,6 +181,11 @@ static const struct apd_device_desc hip08_spi_desc = { .setup = acpi_apd_setup, .fixed_clk_rate = 250000000, }; + +static const struct apd_device_desc hjmc_i2c_desc = { + .setup = acpi_apd_setup, + .fixed_clk_rate = 200000000, +}; #endif /* CONFIG_ARM64 */ #endif @@ -252,6 +257,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) }, + { "HJMC3001", APD_ADDR(hjmc_i2c_desc) }, #endif { } };