acpi_apd.c (79e24da00b1137031245f3341828e4215b1b5b59) | acpi_apd.c (e4e666ba74d4f6eff04d3c567b9f2d50a46837e4) |
---|---|
1/* 2 * AMD ACPI support for ACPI2platform device. 3 * 4 * Copyright (c) 2014,2015 AMD Corporation. 5 * Authors: Ken Xue <Ken.Xue@amd.com> 6 * Wu, Jeff <Jeff.Wu@amd.com> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 129 unchanged lines hidden (view full) --- 138 kfree(pdata); 139 return ret; 140} 141 142static const struct acpi_device_id acpi_apd_device_ids[] = { 143 /* Generic apd devices */ 144#ifdef CONFIG_X86_AMD_PLATFORM_DEVICE 145 { "AMD0010", APD_ADDR(cz_i2c_desc) }, | 1/* 2 * AMD ACPI support for ACPI2platform device. 3 * 4 * Copyright (c) 2014,2015 AMD Corporation. 5 * Authors: Ken Xue <Ken.Xue@amd.com> 6 * Wu, Jeff <Jeff.Wu@amd.com> 7 * 8 * This program is free software; you can redistribute it and/or modify --- 129 unchanged lines hidden (view full) --- 138 kfree(pdata); 139 return ret; 140} 141 142static const struct acpi_device_id acpi_apd_device_ids[] = { 143 /* Generic apd devices */ 144#ifdef CONFIG_X86_AMD_PLATFORM_DEVICE 145 { "AMD0010", APD_ADDR(cz_i2c_desc) }, |
146 { "AMDI0010", APD_ADDR(cz_i2c_desc) }, |
|
146 { "AMD0020", APD_ADDR(cz_uart_desc) }, 147 { "AMD0030", }, 148#endif 149#ifdef CONFIG_ARM64 150 { "APMC0D0F", APD_ADDR(xgene_i2c_desc) }, 151#endif 152 { } 153}; 154 155static struct acpi_scan_handler apd_handler = { 156 .ids = acpi_apd_device_ids, 157 .attach = acpi_apd_create_device, 158}; 159 160void __init acpi_apd_init(void) 161{ 162 acpi_scan_add_handler(&apd_handler); 163} | 147 { "AMD0020", APD_ADDR(cz_uart_desc) }, 148 { "AMD0030", }, 149#endif 150#ifdef CONFIG_ARM64 151 { "APMC0D0F", APD_ADDR(xgene_i2c_desc) }, 152#endif 153 { } 154}; 155 156static struct acpi_scan_handler apd_handler = { 157 .ids = acpi_apd_device_ids, 158 .attach = acpi_apd_create_device, 159}; 160 161void __init acpi_apd_init(void) 162{ 163 acpi_scan_add_handler(&apd_handler); 164} |