diff options
author | Hauke Mehrtens <hauke@openwrt.org> | 2013-09-15 17:00:45 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@openwrt.org> | 2013-09-15 17:00:45 +0000 |
commit | 9aa1ed8c463ebf36a3c3530a29ed18caf9d97534 (patch) | |
tree | a0314454350fee03edc7852519e08816402c215c /package/kernel | |
parent | 2d7844c116b6fca17535d5d0f99a22b12323e94a (diff) | |
download | upstream-9aa1ed8c463ebf36a3c3530a29ed18caf9d97534.tar.gz upstream-9aa1ed8c463ebf36a3c3530a29ed18caf9d97534.tar.bz2 upstream-9aa1ed8c463ebf36a3c3530a29ed18caf9d97534.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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38001 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel')
-rw-r--r-- | package/kernel/broadcom-diag/src/diag.c | 15 |
1 files changed, 15 insertions, 0 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: |