summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-11-07 12:59:10 +0000
committerGabor Juhos <juhosg@openwrt.org>2011-11-07 12:59:10 +0000
commita801d620a77151091a51b569a9f3f29742c84d1a (patch)
treee7bd43052b65d9fcf324d4e72b39585da430b40c /target
parent0d9ae0a0364fcea8c18465ade28c4b719542f018 (diff)
downloadmtk-20170518-a801d620a77151091a51b569a9f3f29742c84d1a.zip
mtk-20170518-a801d620a77151091a51b569a9f3f29742c84d1a.tar.gz
mtk-20170518-a801d620a77151091a51b569a9f3f29742c84d1a.tar.bz2
ar71xx: add support for the Buffalo WHR-HP-GN board
SVN-Revision: 28805
Diffstat (limited to 'target')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/diag.sh1
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh3
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-whr-hp-g300n.c3
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/machtype.h1
4 files changed, 8 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 1f61b6c..df52174 100755
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -104,6 +104,7 @@ get_status_led() {
;;
whr-g301n | \
whr-hp-g300n | \
+ whr-hp-gn | \
wzr-hp-g300nh)
status_led="buffalo:green:router"
;;
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index c0acdc8..6064dcd 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -154,6 +154,9 @@ ar71xx_board_name() {
*WHR-G301N)
name="whr-g301n"
;;
+ *WHR-HP-GN)
+ name="whr-hp-gn"
+ ;;
*WP543)
name="wp543"
;;
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-whr-hp-g300n.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-whr-hp-g300n.c
index 8ffdeff..54a01d8 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-whr-hp-g300n.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-whr-hp-g300n.c
@@ -173,3 +173,6 @@ MIPS_MACHINE(AR71XX_MACH_WHR_HP_G300N, "WHR-HP-G300N", "Buffalo WHR-HP-G300N",
MIPS_MACHINE(AR71XX_MACH_WHR_G301N, "WHR-G301N", "Buffalo WHR-G301N",
whrhpg300n_setup);
+
+MIPS_MACHINE(AR71XX_MACH_WHR_HP_GN, "WHR-HP-GN", "Buffalo WHR-HP-GN",
+ whrhpg300n_setup);
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/machtype.h b/target/linux/ar71xx/files/arch/mips/ar71xx/machtype.h
index 09f244e..78d8bdd 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/machtype.h
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/machtype.h
@@ -67,6 +67,7 @@ enum ar71xx_mach_type {
AR71XX_MACH_UBNT_UNIFI, /* Unifi */
AR71XX_MACH_WHR_G301N, /* Buffalo WHR-G301N */
AR71XX_MACH_WHR_HP_G300N, /* Buffalo WHR-HP-G300N */
+ AR71XX_MACH_WHR_HP_GN, /* Buffalo WHR-HP-GN */
AR71XX_MACH_WNDR3700, /* NETGEAR WNDR3700 */
AR71XX_MACH_WNDR3700V2, /* NETGEAR WNDR3700v2 */
AR71XX_MACH_WNR2000, /* NETGEAR WNR2000 */