mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 15:32:33 +00:00
ar71xx: remove AP81 reference design board support
This board is very old and unlikely to still be relevant today. Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
fd95dec2e3
commit
4c8a9b8e39
@ -24,7 +24,6 @@ get_status_led() {
|
||||
status_led="$board:green:system"
|
||||
;;
|
||||
ap132|\
|
||||
ap81|\
|
||||
db120|\
|
||||
dr344|\
|
||||
tew-632brp|\
|
||||
|
@ -465,9 +465,6 @@ ar71xx_board_detect() {
|
||||
*"AP152 reference board")
|
||||
name="ap152"
|
||||
;;
|
||||
*AP81)
|
||||
name="ap81"
|
||||
;;
|
||||
*AP90Q)
|
||||
name="ap90q"
|
||||
;;
|
||||
|
@ -176,7 +176,6 @@ platform_check_image() {
|
||||
airgateway|\
|
||||
airrouter|\
|
||||
ap132|\
|
||||
ap81|\
|
||||
ap90q|\
|
||||
bullet-m|\
|
||||
c-55|\
|
||||
|
@ -47,7 +47,7 @@ CONFIG_ATH79_MACH_AP136=y
|
||||
CONFIG_ATH79_MACH_AP143=y
|
||||
CONFIG_ATH79_MACH_AP147=y
|
||||
CONFIG_ATH79_MACH_AP152=y
|
||||
CONFIG_ATH79_MACH_AP81=y
|
||||
# CONFIG_ATH79_MACH_AP81 is not set
|
||||
CONFIG_ATH79_MACH_AP90Q=y
|
||||
CONFIG_ATH79_MACH_AP96=y
|
||||
CONFIG_ATH79_MACH_ARCHER_C7=y
|
||||
|
@ -53,7 +53,6 @@ obj-$(CONFIG_ATH79_MACH_AP136) += mach-ap136.o
|
||||
obj-$(CONFIG_ATH79_MACH_AP143) += mach-ap143.o
|
||||
obj-$(CONFIG_ATH79_MACH_AP147) += mach-ap147.o
|
||||
obj-$(CONFIG_ATH79_MACH_AP152) += mach-ap152.o
|
||||
obj-$(CONFIG_ATH79_MACH_AP81) += mach-ap81.o
|
||||
obj-$(CONFIG_ATH79_MACH_AP90Q) += mach-ap90q.o
|
||||
obj-$(CONFIG_ATH79_MACH_AP96) += mach-ap96.o
|
||||
obj-$(CONFIG_ATH79_MACH_ARCHER_C7) += mach-archer-c7.o
|
||||
|
@ -36,7 +36,6 @@ enum ath79_mach_type {
|
||||
ATH79_MACH_AP143, /* Atheros AP143 reference board */
|
||||
ATH79_MACH_AP147_010, /* Atheros AP147-010 reference board */
|
||||
ATH79_MACH_AP152, /* Atheros AP152 reference board */
|
||||
ATH79_MACH_AP81, /* Atheros AP81 reference board */
|
||||
ATH79_MACH_AP90Q, /* YunCore AP90Q */
|
||||
ATH79_MACH_AP96, /* Atheros AP96 */
|
||||
ATH79_MACH_ARCHER_C5, /* TP-LINK Archer C5 board */
|
||||
|
@ -14,12 +14,6 @@ define LegacyDevice/TUBE2H8M
|
||||
endef
|
||||
LEGACY_DEVICES += TUBE2H8M
|
||||
|
||||
define LegacyDevice/AP81
|
||||
DEVICE_TITLE := Atheros AP81 reference board
|
||||
DEVICE_PACKAGES := kmod-usb-core kmod-usb2
|
||||
endef
|
||||
LEGACY_DEVICES += AP81
|
||||
|
||||
define LegacyDevice/AP96
|
||||
DEVICE_TITLE := Atheros AP96 reference board
|
||||
DEVICE_PACKAGES := kmod-usb-core kmod-usb2
|
||||
|
@ -227,7 +227,6 @@ alfa_mtdlayout_8M=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,6144k(rootfs)
|
||||
alfa_mtdlayout_16M=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,15936k(firmware),64k(nvram),64k(art)ro
|
||||
all0258n_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env),6272k(firmware),1536k(failsafe),64k(art)ro
|
||||
all0315n_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,256k(u-boot-env),13568k(firmware),2048k(failsafe),256k(art)ro
|
||||
ap81_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,5120k(rootfs),2688k(kernel),64k(art)ro,7808k@0x50000(firmware)
|
||||
ap96_mtdlayout=mtdparts=spi0.0:192k(u-boot)ro,64k(u-boot-env)ro,6144k(rootfs),1728k(kernel),64k(art)ro,7872k@0x40000(firmware)
|
||||
ap121_mtdlayout_8M=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,6144k(rootfs),1600k(kernel),64k(nvram),64k(art)ro,7744k@0x50000(firmware)
|
||||
ap121_mtdlayout_16M=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,10944k(rootfs),4992k(kernel),64k(nvram),64k(art)ro,15936k@0x50000(firmware)
|
||||
@ -879,7 +878,6 @@ $(eval $(call SingleProfile,ALFA,64k,ALFANX,alfa-nx,ALFA-NX,ttyS0,115200,$$(alfa
|
||||
$(eval $(call SingleProfile,ALFA,64k,HORNETUB,hornet-ub,HORNET-UB,ttyATH0,115200,$$(alfa_mtdlayout_8M),1638400,6291456,kernel_image,rootfs_image))
|
||||
$(eval $(call SingleProfile,ALFA,64k,TUBE2H8M,tube2h-8M,TUBE2H,ttyATH0,115200,$$(alfa_mtdlayout_8M),1638400,6291456,kernel.image,rootfs.image))
|
||||
|
||||
$(eval $(call SingleProfile,AthGzip,64k,AP81,ap81,AP81,ttyS0,115200,$$(ap81_mtdlayout),RKuImage))
|
||||
$(eval $(call SingleProfile,AthGzip,64k,AP96,ap96,AP96,ttyS0,115200,$$(ap96_mtdlayout),RKuImage))
|
||||
$(eval $(call SingleProfile,AthGzip,64k,WNDAP360,wndap360,WNDAP360,ttyS0,9600,$$(wndap360_mtdlayout),KRuImage))
|
||||
|
||||
|
@ -9,7 +9,6 @@
|
||||
# CONFIG_ATH79_MACH_AP132 is not set
|
||||
# CONFIG_ATH79_MACH_AP136 is not set
|
||||
# CONFIG_ATH79_MACH_AP147 is not set
|
||||
# CONFIG_ATH79_MACH_AP81 is not set
|
||||
# CONFIG_ATH79_MACH_AP96 is not set
|
||||
# CONFIG_ATH79_MACH_ARCHER_C7 is not set
|
||||
# CONFIG_ATH79_MACH_AW_NR580 is not set
|
||||
|
@ -8,7 +8,6 @@
|
||||
# CONFIG_ATH79_MACH_AP132 is not set
|
||||
# CONFIG_ATH79_MACH_AP136 is not set
|
||||
# CONFIG_ATH79_MACH_AP147 is not set
|
||||
# CONFIG_ATH79_MACH_AP81 is not set
|
||||
# CONFIG_ATH79_MACH_AP96 is not set
|
||||
# CONFIG_ATH79_MACH_ARCHER_C7 is not set
|
||||
# CONFIG_ATH79_MACH_AW_NR580 is not set
|
||||
|
@ -46,17 +46,6 @@
|
||||
+void ath79_register_wmac(u8 *cal_data, u8 *mac_addr);
|
||||
|
||||
#endif /* _ATH79_DEV_WMAC_H */
|
||||
--- a/arch/mips/ath79/mach-ap81.c
|
||||
+++ b/arch/mips/ath79/mach-ap81.c
|
||||
@@ -92,7 +92,7 @@ static void __init ap81_setup(void)
|
||||
ap81_gpio_keys);
|
||||
ath79_register_spi(&ap81_spi_data, ap81_spi_info,
|
||||
ARRAY_SIZE(ap81_spi_info));
|
||||
- ath79_register_wmac(cal_data);
|
||||
+ ath79_register_wmac(cal_data, NULL);
|
||||
ath79_register_usb();
|
||||
}
|
||||
|
||||
--- a/arch/mips/ath79/mach-db120.c
|
||||
+++ b/arch/mips/ath79/mach-db120.c
|
||||
@@ -128,7 +128,7 @@ static void __init db120_setup(void)
|
||||
|
@ -1,84 +0,0 @@
|
||||
--- a/arch/mips/ath79/mach-ap81.c
|
||||
+++ b/arch/mips/ath79/mach-ap81.c
|
||||
@@ -9,12 +9,16 @@
|
||||
* by the Free Software Foundation.
|
||||
*/
|
||||
|
||||
-#include "machtypes.h"
|
||||
-#include "dev-wmac.h"
|
||||
+#include <linux/mtd/mtd.h>
|
||||
+#include <linux/mtd/partitions.h>
|
||||
+
|
||||
+#include "dev-eth.h"
|
||||
#include "dev-gpio-buttons.h"
|
||||
#include "dev-leds-gpio.h"
|
||||
-#include "dev-spi.h"
|
||||
+#include "dev-m25p80.h"
|
||||
#include "dev-usb.h"
|
||||
+#include "dev-wmac.h"
|
||||
+#include "machtypes.h"
|
||||
|
||||
#define AP81_GPIO_LED_STATUS 1
|
||||
#define AP81_GPIO_LED_AOSS 3
|
||||
@@ -67,20 +71,6 @@ static struct gpio_keys_button ap81_gpio
|
||||
}
|
||||
};
|
||||
|
||||
-static struct spi_board_info ap81_spi_info[] = {
|
||||
- {
|
||||
- .bus_num = 0,
|
||||
- .chip_select = 0,
|
||||
- .max_speed_hz = 25000000,
|
||||
- .modalias = "m25p64",
|
||||
- }
|
||||
-};
|
||||
-
|
||||
-static struct ath79_spi_platform_data ap81_spi_data = {
|
||||
- .bus_num = 0,
|
||||
- .num_chipselect = 1,
|
||||
-};
|
||||
-
|
||||
static void __init ap81_setup(void)
|
||||
{
|
||||
u8 *cal_data = (u8 *) KSEG1ADDR(AP81_CAL_DATA_ADDR);
|
||||
@@ -90,10 +80,24 @@ static void __init ap81_setup(void)
|
||||
ath79_register_gpio_keys_polled(-1, AP81_KEYS_POLL_INTERVAL,
|
||||
ARRAY_SIZE(ap81_gpio_keys),
|
||||
ap81_gpio_keys);
|
||||
- ath79_register_spi(&ap81_spi_data, ap81_spi_info,
|
||||
- ARRAY_SIZE(ap81_spi_info));
|
||||
+ ath79_register_m25p80(NULL);
|
||||
ath79_register_wmac(cal_data, NULL);
|
||||
ath79_register_usb();
|
||||
+
|
||||
+ ath79_register_mdio(0, 0x0);
|
||||
+
|
||||
+ ath79_init_mac(ath79_eth0_data.mac_addr, cal_data, 0);
|
||||
+ ath79_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
|
||||
+ ath79_eth0_data.speed = SPEED_100;
|
||||
+ ath79_eth0_data.duplex = DUPLEX_FULL;
|
||||
+ ath79_eth0_data.has_ar8216 = 1;
|
||||
+
|
||||
+ ath79_init_mac(ath79_eth1_data.mac_addr, cal_data, 1);
|
||||
+ ath79_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
|
||||
+ ath79_eth1_data.phy_mask = 0x10;
|
||||
+
|
||||
+ ath79_register_eth(0);
|
||||
+ ath79_register_eth(1);
|
||||
}
|
||||
|
||||
MIPS_MACHINE(ATH79_MACH_AP81, "AP81", "Atheros AP81 reference board",
|
||||
--- a/arch/mips/ath79/Kconfig
|
||||
+++ b/arch/mips/ath79/Kconfig
|
||||
@@ -30,9 +30,10 @@ config ATH79_MACH_AP136
|
||||
config ATH79_MACH_AP81
|
||||
bool "Atheros AP81 reference board"
|
||||
select SOC_AR913X
|
||||
+ select ATH79_DEV_ETH
|
||||
select ATH79_DEV_GPIO_BUTTONS
|
||||
select ATH79_DEV_LEDS_GPIO
|
||||
- select ATH79_DEV_SPI
|
||||
+ select ATH79_DEV_M25P80
|
||||
select ATH79_DEV_USB
|
||||
select ATH79_DEV_WMAC
|
||||
help
|
@ -188,7 +188,7 @@
|
||||
MIPS_MACHINE(ATH79_MACH_DB120, "DB120", "Atheros DB120 reference board",
|
||||
--- a/arch/mips/ath79/Kconfig
|
||||
+++ b/arch/mips/ath79/Kconfig
|
||||
@@ -43,9 +43,12 @@ config ATH79_MACH_AP81
|
||||
@@ -42,9 +42,12 @@ config ATH79_MACH_AP81
|
||||
config ATH79_MACH_DB120
|
||||
bool "Atheros DB120 reference board"
|
||||
select SOC_AR934X
|
||||
|
@ -136,7 +136,7 @@
|
||||
MIPS_MACHINE(ATH79_MACH_PB44, "PB44", "Atheros PB44 reference board",
|
||||
--- a/arch/mips/ath79/Kconfig
|
||||
+++ b/arch/mips/ath79/Kconfig
|
||||
@@ -58,6 +58,7 @@ config ATH79_MACH_DB120
|
||||
@@ -57,6 +57,7 @@ config ATH79_MACH_DB120
|
||||
config ATH79_MACH_PB44
|
||||
bool "Atheros PB44 reference board"
|
||||
select SOC_AR71XX
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- a/arch/mips/ath79/Kconfig
|
||||
+++ b/arch/mips/ath79/Kconfig
|
||||
@@ -70,9 +70,10 @@ config ATH79_MACH_PB44
|
||||
@@ -69,9 +69,10 @@ config ATH79_MACH_PB44
|
||||
config ATH79_MACH_UBNT_XM
|
||||
bool "Ubiquiti Networks XM (rev 1.0) board"
|
||||
select SOC_AR724X
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- a/arch/mips/ath79/Kconfig
|
||||
+++ b/arch/mips/ath79/Kconfig
|
||||
@@ -68,12 +68,16 @@ config ATH79_MACH_PB44
|
||||
@@ -67,12 +67,16 @@ config ATH79_MACH_PB44
|
||||
Atheros PB44 reference board.
|
||||
|
||||
config ATH79_MACH_UBNT_XM
|
||||
|
@ -22,7 +22,7 @@ meaning of the bits CPUCLK_FROM_CPUPLL and DDRCLK_FROM_DDRPLL is reversed.
|
||||
|
||||
--- a/arch/mips/ath79/Kconfig
|
||||
+++ b/arch/mips/ath79/Kconfig
|
||||
@@ -117,6 +117,10 @@ config SOC_AR934X
|
||||
@@ -116,6 +116,10 @@ config SOC_AR934X
|
||||
select PCI_AR724X if PCI
|
||||
def_bool n
|
||||
|
||||
@ -33,7 +33,7 @@ meaning of the bits CPUCLK_FROM_CPUPLL and DDRCLK_FROM_DDRPLL is reversed.
|
||||
config SOC_QCA955X
|
||||
select HW_HAS_PCI
|
||||
select PCI_AR724X if PCI
|
||||
@@ -156,7 +160,7 @@ config ATH79_DEV_USB
|
||||
@@ -155,7 +159,7 @@ config ATH79_DEV_USB
|
||||
def_bool n
|
||||
|
||||
config ATH79_DEV_WMAC
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- a/arch/mips/ath79/Kconfig
|
||||
+++ b/arch/mips/ath79/Kconfig
|
||||
@@ -126,6 +126,12 @@ config SOC_QCA955X
|
||||
@@ -125,6 +125,12 @@ config SOC_QCA955X
|
||||
select PCI_AR724X if PCI
|
||||
def_bool n
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
config ATH79_DEV_M25P80
|
||||
select ATH79_DEV_SPI
|
||||
def_bool n
|
||||
@@ -160,7 +166,7 @@ config ATH79_DEV_USB
|
||||
@@ -159,7 +165,7 @@ config ATH79_DEV_USB
|
||||
def_bool n
|
||||
|
||||
config ATH79_DEV_WMAC
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- a/arch/mips/ath79/Kconfig
|
||||
+++ b/arch/mips/ath79/Kconfig
|
||||
@@ -95,6 +95,8 @@ choice
|
||||
@@ -94,6 +94,8 @@ choice
|
||||
select SOC_AR913X
|
||||
endchoice
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user