summaryrefslogtreecommitdiffstats
path: root/arch/mips/ar7/prom.c
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2010-08-29 17:08:41 +0200
committerRalf Baechle <ralf@linux-mips.org>2010-10-29 19:08:46 +0100
commit3bc6968adc7b1926f4582a33a33ad42d9b302ce0 (patch)
tree67d37a08a426247ee059391c54bd363e542a4ca8 /arch/mips/ar7/prom.c
parent340fbb8b12dd24c83b1e8ff094b8e2c218144217 (diff)
downloadblackbird-obmc-linux-3bc6968adc7b1926f4582a33a33ad42d9b302ce0.tar.gz
blackbird-obmc-linux-3bc6968adc7b1926f4582a33a33ad42d9b302ce0.zip
MIPS: AR7: Initialize GPIO earlier
In order to detect the Titan variant, we must initialize GPIOs earlier since detection relies on some GPIO values to be set. Signed-off-by: Florian Fainelli <florian@openwrt.org> Patchwork: http://patchwork.linux-mips.org/patch/1562/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org> ---
Diffstat (limited to 'arch/mips/ar7/prom.c')
-rw-r--r--arch/mips/ar7/prom.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/ar7/prom.c b/arch/mips/ar7/prom.c
index 52385790e5c1..23818d299127 100644
--- a/arch/mips/ar7/prom.c
+++ b/arch/mips/ar7/prom.c
@@ -246,6 +246,8 @@ void __init prom_init(void)
ar7_init_cmdline(fw_arg0, (char **)fw_arg1);
ar7_init_env((struct env_var *)fw_arg2);
console_config();
+
+ ar7_gpio_init();
}
#define PORT(offset) (KSEG1ADDR(AR7_REGS_UART0 + (offset * 4)))
OpenPOWER on IntegriCloud