From: Jo-Philipp Wich Date: Sun, 13 Nov 2011 18:11:54 +0000 (+0000) Subject: ar71xx: backport r23136 and r23138 X-Git-Tag: backfire_10.03.1~66 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=713e078be8a76f72b6848dba3cd28753f0d8d9eb;p=openwrt%2Fsvn-archive%2Fopenwrt.git ar71xx: backport r23136 and r23138 SVN-Revision: 29031 --- diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index 23747d5fd7..070fe50ba2 100755 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -72,6 +72,9 @@ get_status_led() { tew-632brp) status_led="tew-632brp:green:status" ;; + tl-mr3420) + status_led="tl-mr3420:green:system" + ;; tl-wr1043nd) status_led="tl-wr1043nd:green:system" ;; diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 0ee701c0e5..93d520ac61 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -82,6 +82,9 @@ ar71xx_board_name() { *TEW-632BRP) name="tew-632brp" ;; + *TL-MR3420) + name="tl-mr3420" + ;; *TL-WR1043ND) name="tl-wr1043nd" ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 67f4048086..8d21ba3c6a 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -76,7 +76,7 @@ platform_check_image() { } return 0 ;; - tl-wr741nd | tl-wr841n-v1 | tl-wr941nd | tl-wr1043nd) + tl-mr3420 | tl-wr741nd | tl-wr841n-v1 | tl-wr941nd | tl-wr1043nd) [ "$magic" != "0100" ] && { echo "Invalid image type." return 1 diff --git a/target/linux/ar71xx/config-2.6.32 b/target/linux/ar71xx/config-2.6.32 index ee04acb32d..5c7b3219eb 100644 --- a/target/linux/ar71xx/config-2.6.32 +++ b/target/linux/ar71xx/config-2.6.32 @@ -30,6 +30,7 @@ CONFIG_AR71XX_MACH_PB92=y CONFIG_AR71XX_MACH_RB4XX=y CONFIG_AR71XX_MACH_RB750=y CONFIG_AR71XX_MACH_TEW_632BRP=y +CONFIG_AR71XX_MACH_TL_MR3420=y CONFIG_AR71XX_MACH_TL_WR1043ND=y CONFIG_AR71XX_MACH_TL_WR741ND=y CONFIG_AR71XX_MACH_TL_WR841N_V1=y diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/Kconfig b/target/linux/ar71xx/files/arch/mips/ar71xx/Kconfig index 0b290f8049..48fa294647 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/Kconfig +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/Kconfig @@ -158,6 +158,15 @@ config AR71XX_MACH_MZK_W300NH select AR71XX_DEV_LEDS_GPIO default n +config AR71XX_MACH_TL_MR3420 + bool "TP-LINK TL-MR3420 support" + select AR71XX_DEV_M25P80 + select AR71XX_DEV_AP91_PCI if PCI + select AR71XX_DEV_GPIO_BUTTONS + select AR71XX_DEV_LEDS_GPIO + select AR71XX_DEV_USB + default n + config AR71XX_MACH_TL_WR741ND bool "TP-LINK TL-WR741ND support" select AR71XX_DEV_M25P80 diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/Makefile b/target/linux/ar71xx/files/arch/mips/ar71xx/Makefile index 690dd97691..86f122cd3c 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/Makefile +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/Makefile @@ -40,6 +40,7 @@ obj-$(CONFIG_AR71XX_MACH_PB92) += mach-pb92.o obj-$(CONFIG_AR71XX_MACH_RB4XX) += mach-rb4xx.o obj-$(CONFIG_AR71XX_MACH_RB750) += mach-rb750.o obj-$(CONFIG_AR71XX_MACH_TEW_632BRP) += mach-tew-632brp.o +obj-$(CONFIG_AR71XX_MACH_TL_MR3420) += mach-tl-mr3420.o obj-$(CONFIG_AR71XX_MACH_TL_WR741ND) += mach-tl-wr741nd.o obj-$(CONFIG_AR71XX_MACH_TL_WR841N_V1) += mach-tl-wr841n.o obj-$(CONFIG_AR71XX_MACH_TL_WR941ND) += mach-tl-wr941nd.o diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/machtype.h b/target/linux/ar71xx/files/arch/mips/ar71xx/machtype.h index b6e68f87d0..e5419e2971 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/machtype.h +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/machtype.h @@ -36,6 +36,7 @@ enum ar71xx_mach_type { AR71XX_MACH_MZK_W04NU, /* Planex MZK-W04NU */ AR71XX_MACH_MZK_W300NH, /* Planex MZK-W300NH */ AR71XX_MACH_TEW_632BRP, /* TRENDnet TEW-632BRP */ + AR71XX_MACH_TL_MR3420, /* TP-LINK TL-MR3420 */ AR71XX_MACH_TL_WR741ND, /* TP-LINK TL-WR741ND */ AR71XX_MACH_TL_WR841N_V1, /* TP-LINK TL-WR841N v1 */ AR71XX_MACH_TL_WR941ND, /* TP-LINK TL-WR941ND */ diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index f39be3cc68..7033600f80 100644 --- a/target/linux/ar71xx/image/Makefile +++ b/target/linux/ar71xx/image/Makefile @@ -493,6 +493,10 @@ define Image/Build/Profile/MZKW300NH $(call Image/Build/Template/$(fs_64k)/$(1),Planex,mzk-w300nh,board=MZK-W300NH) endef +define Image/Build/Profile/TLMR3420V1 + $(call Image/Build/Template/$(fs_4k)/$(1),TPLINK,tl-mr3420-v1,board=TL-MR3420,TL-MR3420v1) +endef + define Image/Build/Profile/TLWR741NDV1 $(call Image/Build/Template/$(fs_4k)/$(1),TPLINK,tl-wr741nd-v1,board=TL-WR741ND,TL-WR741NDv1) endef @@ -566,6 +570,7 @@ define Image/Build/Profile/Default $(call Image/Build/Profile/PB44,$(1)) $(call Image/Build/Profile/TEW632BRP,$(1)) $(call Image/Build/Profile/TEW652BRP,$(1)) + $(call Image/Build/Profile/TLMR3420V1,$(1)) $(call Image/Build/Profile/TLWR741NDV1,$(1)) $(call Image/Build/Profile/TLWR740NV1,$(1)) $(call Image/Build/Profile/TLWR841NV15,$(1)) diff --git a/target/linux/ar71xx/profiles/tp-link.mk b/target/linux/ar71xx/profiles/tp-link.mk index aab7fbcf7e..493cf517cc 100644 --- a/target/linux/ar71xx/profiles/tp-link.mk +++ b/target/linux/ar71xx/profiles/tp-link.mk @@ -5,6 +5,17 @@ # See /LICENSE for more information. # +define Profile/TLMR3420V1 + NAME:=TP-LINK TL-MR3420 v1 + PACKAGES:=kmod-ath9k wpad-mini kmod-usb-core kmod-usb2 +endef + +define Profile/TLMR3420V1/Description + Package set optimized for the TP-LINK TL-MR3420 v1. +endef + +$(eval $(call Profile,TLMR3420V1)) + define Profile/TLWR741NDV1 NAME:=TP-LINK TL-WR741ND v1 PACKAGES:=