diff options
author | Christian Lamparter <chunkeey@gmail.com> | 2020-08-12 01:21:13 +0200 |
---|---|---|
committer | Christian Lamparter <chunkeey@gmail.com> | 2020-08-29 17:14:27 +0200 |
commit | 2c3f16d70e32d7b5eb62096097c4343c5409afe3 (patch) | |
tree | 47c8e42364eef32d22d15081234f805f04ae303e /target/linux/apm821xx/files/arch/powerpc/platforms | |
parent | d75e75306301852a848824cf268d8b58eda28a8a (diff) | |
download | upstream-2c3f16d70e32d7b5eb62096097c4343c5409afe3.tar.gz upstream-2c3f16d70e32d7b5eb62096097c4343c5409afe3.tar.bz2 upstream-2c3f16d70e32d7b5eb62096097c4343c5409afe3.zip |
apm821xx: WNDR4700: enumerate PCIe in device-tree
This patch adds the pcie-switch and bridge configuration of the
WNDR4700.
This allows to get rid of the legacy firmware monikers and drop
the usbport LED declaration.
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Diffstat (limited to 'target/linux/apm821xx/files/arch/powerpc/platforms')
-rw-r--r-- | target/linux/apm821xx/files/arch/powerpc/platforms/44x/wndr4700.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/target/linux/apm821xx/files/arch/powerpc/platforms/44x/wndr4700.c b/target/linux/apm821xx/files/arch/powerpc/platforms/44x/wndr4700.c index f50f43f3df..ff6137e2a4 100644 --- a/target/linux/apm821xx/files/arch/powerpc/platforms/44x/wndr4700.c +++ b/target/linux/apm821xx/files/arch/powerpc/platforms/44x/wndr4700.c @@ -73,27 +73,8 @@ define_machine(wndr4700) { .calibrate_decr = generic_calibrate_decr, }; -static struct ath9k_platform_data ar9380_wmac0_data = { - .led_pin = -1, - .eeprom_name = "pci_wmac1.eeprom", -}; -static struct ath9k_platform_data ar9580_wmac1_data = { - .led_pin = -1, - .eeprom_name = "pci_wmac0.eeprom", -}; - static int __init wndr4700_ath9k_eeprom_load(void) { - struct pci_dev *dev; - - dev = pci_get_device(PCI_VENDOR_ID_ATHEROS, 0x0030, NULL); - if (dev) - dev->dev.platform_data = &ar9380_wmac0_data; - - dev = pci_get_device(PCI_VENDOR_ID_ATHEROS, 0x0033, NULL); - if (dev) - dev->dev.platform_data = &ar9580_wmac1_data; - return 0; } machine_device_initcall(wndr4700, wndr4700_ath9k_eeprom_load); |