diff options
author | Piotr Dymacz <pepe2k@gmail.com> | 2018-05-09 20:04:01 +0200 |
---|---|---|
committer | Piotr Dymacz <pepe2k@gmail.com> | 2018-05-09 20:32:47 +0200 |
commit | ce4d2fb5cc6ea4c2f12cf9b64a54199ef00ee168 (patch) | |
tree | 3831a80a5570bc1120e5f5b1ba996a8de1bb83c1 /target/linux | |
parent | a564cfcd8353f57950f8bf5861691202b1aee782 (diff) | |
download | upstream-ce4d2fb5cc6ea4c2f12cf9b64a54199ef00ee168.tar.gz upstream-ce4d2fb5cc6ea4c2f12cf9b64a54199ef00ee168.tar.bz2 upstream-ce4d2fb5cc6ea4c2f12cf9b64a54199ef00ee168.zip |
ar71xx: fix and improve ALFA Network Tube2H support
Fix ART offset (make it universal for 8/16 MB versions of the board) and
while at it, include also GPIO setup for h/w watchdog (EM6324QYSP5B).
Fixes: FS#1532
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ath79/mach-tube2h.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tube2h.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tube2h.c index 19b32e2256..06b3616536 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tube2h.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tube2h.c @@ -28,12 +28,15 @@ #define TUBE2H_GPIO_LED_SIGNAL1 27 #define TUBE2H_GPIO_EXT_LNA 28 +#define TUBE2H_GPIO_WDT_EN 22 +#define TUBE2H_GPIO_WDT_IN 18 + #define TUBE2H_GPIO_BTN_RESET 12 #define TUBE2H_KEYS_POLL_INTERVAL 20 /* msecs */ #define TUBE2H_KEYS_DEBOUNCE_INTERVAL (3 * TUBE2H_KEYS_POLL_INTERVAL) -#define TUBE2H_ART_ADDRESS 0x1f7f0000 +#define TUBE2H_ART_ADDRESS 0x1fff0000 #define TUBE2H_LAN_MAC_OFFSET 0x06 #define TUBE2H_CALDATA_OFFSET 0x1000 @@ -97,6 +100,14 @@ static void __init tube2h_setup(void) GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED, "external LNA0"); + gpio_request_one(TUBE2H_GPIO_WDT_IN, + GPIOF_OUT_INIT_LOW | GPIOF_EXPORT_DIR_FIXED, + "WDT input"); + + gpio_request_one(TUBE2H_GPIO_WDT_EN, + GPIOF_OUT_INIT_LOW | GPIOF_EXPORT_DIR_FIXED, + "WDT enable"); + ath79_register_wmac(art + TUBE2H_CALDATA_OFFSET, NULL); ath79_register_m25p80(NULL); |