diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2013-09-15 17:00:45 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2013-09-15 17:00:45 +0000 |
commit | 86405f2c4c4697171c0d8627a979889d03043aee (patch) | |
tree | cc76be93bf55ca46b6e568d0e809dc9022041829 | |
parent | 554772a66547afa10bc7fc3040f3bf9259728c60 (diff) | |
download | upstream-86405f2c4c4697171c0d8627a979889d03043aee.tar.gz upstream-86405f2c4c4697171c0d8627a979889d03043aee.tar.bz2 upstream-86405f2c4c4697171c0d8627a979889d03043aee.zip |
brcm47xx: add detection code for Huawei E970
This is based on a patch by Mathias Adam.
Signed-off-by: Mathias Adam <m.adam--openwrt@adamis.de>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 38001
-rw-r--r-- | package/kernel/broadcom-diag/src/diag.c | 15 | ||||
-rw-r--r-- | target/linux/brcm47xx/patches-3.10/260-MIPS-BCM47XX-add-board-detection.patch | 7 |
2 files changed, 20 insertions, 2 deletions
diff --git a/package/kernel/broadcom-diag/src/diag.c b/package/kernel/broadcom-diag/src/diag.c index 3f58718ec9..c0ef6ac567 100644 --- a/package/kernel/broadcom-diag/src/diag.c +++ b/package/kernel/broadcom-diag/src/diag.c @@ -181,6 +181,9 @@ enum { /* Edimax */ PS1208MFG, + + /* Huawei */ + HUAWEI_E970, }; static void __init bcm4780_init(void) { @@ -1159,6 +1162,16 @@ static struct platform_t __initdata platforms[] = { { .name = "wlan", .gpio = 1 << 0, .polarity = NORMAL }, }, }, + /* Huawei */ + [HUAWEI_E970] = { + .name = "Huawei E970", + .buttons = { + { .name = "reset", .gpio = 1 << 6 }, + }, + .leds = { + { .name = "wlan", .gpio = 1 << 0, .polarity = NORMAL }, + }, + }, }; static struct platform_t __init *platform_detect_legacy(void) @@ -1362,6 +1375,8 @@ static struct platform_t __init *platform_detect(void) return &platforms[DIR130]; case BCM47XX_BOARD_DLINK_DIR330: return &platforms[DIR330]; + case BCM47XX_BOARD_HUAWEI_E970: + return &platforms[HUAWEI_E970]; case BCM47XX_BOARD_LINKSYS_E1000V1: return &platforms[E1000V1]; case BCM47XX_BOARD_LINKSYS_E1000V21: diff --git a/target/linux/brcm47xx/patches-3.10/260-MIPS-BCM47XX-add-board-detection.patch b/target/linux/brcm47xx/patches-3.10/260-MIPS-BCM47XX-add-board-detection.patch index aa63f45357..b172797bfc 100644 --- a/target/linux/brcm47xx/patches-3.10/260-MIPS-BCM47XX-add-board-detection.patch +++ b/target/linux/brcm47xx/patches-3.10/260-MIPS-BCM47XX-add-board-detection.patch @@ -8,7 +8,7 @@ obj-$(CONFIG_BCM47XX_SSB) += wgt634u.o --- /dev/null +++ b/arch/mips/bcm47xx/board.c -@@ -0,0 +1,285 @@ +@@ -0,0 +1,286 @@ +#include <linux/export.h> +#include <linux/string.h> +#include <bcm47xx_board.h> @@ -164,6 +164,7 @@ +/* boardtype, boardnum, boardrev */ +static const struct bcm47xx_board_type_list3 bcm47xx_board_list_board[] = { + {{BCM47XX_BOARD_ZTE_H218N, "ZTE H218N"}, "0x053d", "1234", "0x1305"}, ++ {{BCM47XX_BOARD_HUAWEI_E970, "Huawei E970"}, "0x048e", "0x5347", "0x11"}, + { {0}, 0}, +}; + @@ -296,7 +297,7 @@ +EXPORT_SYMBOL(bcm47xx_board_get_name); --- /dev/null +++ b/arch/mips/include/asm/mach-bcm47xx/bcm47xx_board.h -@@ -0,0 +1,102 @@ +@@ -0,0 +1,104 @@ +#ifndef __BCM47XX_BOARD_H +#define __BCM47XX_BOARD_H + @@ -346,6 +347,8 @@ + BCM47XX_BOARD_DLINK_DIR130, + BCM47XX_BOARD_DLINK_DIR330, + ++ BCM47XX_BOARD_HUAWEI_E970, ++ + BCM47XX_BOARD_LINKSYS_E1000V1, + BCM47XX_BOARD_LINKSYS_E1000V2, + BCM47XX_BOARD_LINKSYS_E1000V21, |