Skip to content

Commit 384b02d

Browse files
Pu Wenrafaeljw
authored andcommitted
i2c: designware: Add device HID for Hygon I2C controller
Add device HID HYGO0010 to match the Hygon ACPI Vendor ID (HYGO) that was registered in http://www.uefi.org/acpi_id_list, and the I2C controller on Hygon paltform will use the HID. Signed-off-by: Pu Wen <[email protected]> Acked-by: Andy Shevchenko <[email protected]> Acked-by: Wolfram Sang <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 2baa85d commit 384b02d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

drivers/acpi/acpi_apd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ static const struct acpi_device_id acpi_apd_device_ids[] = {
240240
{ "AMDI0020", APD_ADDR(cz_uart_desc) },
241241
{ "AMD0030", },
242242
{ "AMD0040", APD_ADDR(st_misc_desc)},
243+
{ "HYGO0010", APD_ADDR(wt_i2c_desc) },
243244
#endif
244245
#ifdef CONFIG_ARM64
245246
{ "APMC0D0F", APD_ADDR(xgene_i2c_desc) },

drivers/i2c/busses/i2c-designware-platdrv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ static const struct acpi_device_id dw_i2c_acpi_match[] = {
5555
{ "HISI02A1", 0 },
5656
{ "HISI02A2", 0 },
5757
{ "HISI02A3", 0 },
58+
{ "HYGO0010", ACCESS_INTR_MASK },
5859
{ }
5960
};
6061
MODULE_DEVICE_TABLE(acpi, dw_i2c_acpi_match);

0 commit comments

Comments
 (0)