i2c: designware: Add device HID for future AMD I2C controller
authorXiangliang Yu <Xiangliang.Yu@amd.com>
Thu, 10 Mar 2016 11:34:52 +0000 (19:34 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 10 Mar 2016 20:34:47 +0000 (21:34 +0100)
Add device HID AMDI0010 to match the AMD ACPI Vendor ID (AMDI) that
was registered in http://www.uefi.org/acpi_id_list, and the I2C
controller on future AMD paltform will use the HID instead of AMD0010.

Signed-off-by: Xiangliang Yu <Xiangliang.Yu@amd.com>
Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_apd.c
drivers/i2c/busses/i2c-designware-platdrv.c

index d507cf6deda050fde79d3b6237fdbf410407d5d3..d0aad06b38720555a7da9138d5bc7f307100ca43 100644 (file)
@@ -143,6 +143,7 @@ static const struct acpi_device_id acpi_apd_device_ids[] = {
        /* Generic apd devices */
 #ifdef CONFIG_X86_AMD_PLATFORM_DEVICE
        { "AMD0010", APD_ADDR(cz_i2c_desc) },
+       { "AMDI0010", APD_ADDR(cz_i2c_desc) },
        { "AMD0020", APD_ADDR(cz_uart_desc) },
        { "AMD0030", },
 #endif
index 438f1b4964c08024c32e55e831f028f657db0e7d..d656657b805c20dafdfc28925c09179705789eae 100644 (file)
@@ -123,6 +123,7 @@ static const struct acpi_device_id dw_i2c_acpi_match[] = {
        { "80860F41", 0 },
        { "808622C1", 0 },
        { "AMD0010", ACCESS_INTR_MASK },
+       { "AMDI0010", ACCESS_INTR_MASK },
        { "AMDI0510", 0 },
        { "APMC0D0F", 0 },
        { }