diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2013-04-28 21:11:17 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2013-04-28 21:11:17 +0000 |
commit | ca7f9638d59b62454c660dd0342367b861764a80 (patch) | |
tree | 81066581934a264b3aec22c333f16bb267c84dfe /package/broadcom-diag/src/gpio.h | |
parent | 8a3a7fdf07837bdb5da515592c4c4e74187fd817 (diff) | |
download | mtk-20170518-ca7f9638d59b62454c660dd0342367b861764a80.zip mtk-20170518-ca7f9638d59b62454c660dd0342367b861764a80.tar.gz mtk-20170518-ca7f9638d59b62454c660dd0342367b861764a80.tar.bz2 |
broadcom-diag: support for the WNDR3700v3
I recently picked up a WNDR3700 to put OpenWRT on, and only after tearing into the box did I find it
was one of the v3 boards, with poor OpenWRT support. This patch should add the board detection and
LED/button control to the broadcom-diag module, and should generate a netgear .chk image that the
bootloader and stock firmware will accept.
The changes to the broadcom-diag module are more than a few lines because the WNDR3700v3 is driving
its LEDs through an HC164 8-bit shift register.
Signed-off-by: Owen Kirby <osk@exegin.com>
SVN-Revision: 36482
Diffstat (limited to 'package/broadcom-diag/src/gpio.h')
-rw-r--r-- | package/broadcom-diag/src/gpio.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/package/broadcom-diag/src/gpio.h b/package/broadcom-diag/src/gpio.h index d0e3e06..8bd3fe0 100644 --- a/package/broadcom-diag/src/gpio.h +++ b/package/broadcom-diag/src/gpio.h @@ -9,8 +9,14 @@ #define EXTIF_ADDR 0x1f000000 #define EXTIF_UART (EXTIF_ADDR + 0x00800000) +/* GPIO pins driving LEDs through a shift register */ +#define SHIFTREG_DATA (1 << 6) +#define SHIFTREG_CLK (1 << 7) +#define SHIFTREG_MAX_BITS 8 + #define GPIO_TYPE_NORMAL (0x0 << 24) #define GPIO_TYPE_EXTIF (0x1 << 24) +#define GPIO_TYPE_SHIFT (0x2 << 24) #define GPIO_TYPE_MASK (0xf << 24) #endif /* __DIAG_GPIO_H */ |