acpi_apd.c (aea983801c6b5e4e9af333a32220d580a77f6783) | acpi_apd.c (4881f0bad9eb56bb7257e2386ffb27ef969bb6ce) |
---|---|
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 --- 63 unchanged lines hidden (view full) --- 72} 73 74#ifdef CONFIG_X86_AMD_PLATFORM_DEVICE 75static const struct apd_device_desc cz_i2c_desc = { 76 .setup = acpi_apd_setup, 77 .fixed_clk_rate = 133000000, 78}; 79 | 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 --- 63 unchanged lines hidden (view full) --- 72} 73 74#ifdef CONFIG_X86_AMD_PLATFORM_DEVICE 75static const struct apd_device_desc cz_i2c_desc = { 76 .setup = acpi_apd_setup, 77 .fixed_clk_rate = 133000000, 78}; 79 |
80static const struct apd_device_desc wt_i2c_desc = { 81 .setup = acpi_apd_setup, 82 .fixed_clk_rate = 150000000, 83}; 84 |
|
80static struct property_entry uart_properties[] = { 81 PROPERTY_ENTRY_U32("reg-io-width", 4), 82 PROPERTY_ENTRY_U32("reg-shift", 2), 83 PROPERTY_ENTRY_BOOL("snps,uart-16550-compatible"), 84 { }, 85}; 86 87static const struct apd_device_desc cz_uart_desc = { --- 69 unchanged lines hidden (view full) --- 157 kfree(pdata); 158 return ret; 159} 160 161static const struct acpi_device_id acpi_apd_device_ids[] = { 162 /* Generic apd devices */ 163#ifdef CONFIG_X86_AMD_PLATFORM_DEVICE 164 { "AMD0010", APD_ADDR(cz_i2c_desc) }, | 85static struct property_entry uart_properties[] = { 86 PROPERTY_ENTRY_U32("reg-io-width", 4), 87 PROPERTY_ENTRY_U32("reg-shift", 2), 88 PROPERTY_ENTRY_BOOL("snps,uart-16550-compatible"), 89 { }, 90}; 91 92static const struct apd_device_desc cz_uart_desc = { --- 69 unchanged lines hidden (view full) --- 162 kfree(pdata); 163 return ret; 164} 165 166static const struct acpi_device_id acpi_apd_device_ids[] = { 167 /* Generic apd devices */ 168#ifdef CONFIG_X86_AMD_PLATFORM_DEVICE 169 { "AMD0010", APD_ADDR(cz_i2c_desc) }, |
165 { "AMDI0010", APD_ADDR(cz_i2c_desc) }, | 170 { "AMDI0010", APD_ADDR(wt_i2c_desc) }, |
166 { "AMD0020", APD_ADDR(cz_uart_desc) }, 167 { "AMDI0020", APD_ADDR(cz_uart_desc) }, 168 { "AMD0030", }, 169#endif 170#ifdef CONFIG_ARM64 171 { "APMC0D0F", APD_ADDR(xgene_i2c_desc) }, 172 { "BRCM900D", APD_ADDR(vulcan_spi_desc) }, 173#endif --- 12 unchanged lines hidden --- | 171 { "AMD0020", APD_ADDR(cz_uart_desc) }, 172 { "AMDI0020", APD_ADDR(cz_uart_desc) }, 173 { "AMD0030", }, 174#endif 175#ifdef CONFIG_ARM64 176 { "APMC0D0F", APD_ADDR(xgene_i2c_desc) }, 177 { "BRCM900D", APD_ADDR(vulcan_spi_desc) }, 178#endif --- 12 unchanged lines hidden --- |