From 2c3f16d70e32d7b5eb62096097c4343c5409afe3 Mon Sep 17 00:00:00 2001 From: Christian Lamparter Date: Wed, 12 Aug 2020 01:21:13 +0200 Subject: 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 --- .../files/arch/powerpc/platforms/44x/wndr4700.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'target/linux/apm821xx/files/arch') 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); -- cgit v1.2.3