diff options
author | John Crispin <blogic@openwrt.org> | 2008-04-03 21:40:40 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2008-04-03 21:40:40 +0000 |
commit | 9693c705020ebf774406c30a17cd3a5ddf56270c (patch) | |
tree | 0ed872a2ef7cc2bec4737d16f8c0d25ead3d8ade /target/linux/atheros | |
parent | ee8cfeca57300d440f5c4efa2f07a4c600fe6fb8 (diff) | |
download | upstream-9693c705020ebf774406c30a17cd3a5ddf56270c.tar.gz upstream-9693c705020ebf774406c30a17cd3a5ddf56270c.tar.bz2 upstream-9693c705020ebf774406c30a17cd3a5ddf56270c.zip |
fix reboot on ar5315
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10729 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/atheros')
-rw-r--r-- | target/linux/atheros/files/arch/mips/atheros/ar5315/board.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/target/linux/atheros/files/arch/mips/atheros/ar5315/board.c b/target/linux/atheros/files/arch/mips/atheros/ar5315/board.c index 6d46c85a1e..28df6587c9 100644 --- a/target/linux/atheros/files/arch/mips/atheros/ar5315/board.c +++ b/target/linux/atheros/files/arch/mips/atheros/ar5315/board.c @@ -28,6 +28,7 @@ #include <asm/io.h> #include <ar531x.h> #include <linux/leds.h> +#include <asm/gpio.h> static int is_5315 = 0; @@ -265,18 +266,13 @@ static void ar5315_restart(char *command) { unsigned int reg; for(;;) { - /* reset the system */ sysRegWrite(AR5315_COLD_RESET,AR5317_RESET_SYSTEM); /* * Cold reset does not work on the AR2315/6, use the GPIO reset bits a workaround. */ - - reg = sysRegRead(AR5315_GPIO_DO); - reg &= ~(1 << AR5315_RESET_GPIO); - sysRegWrite(AR5315_GPIO_DO, reg); - (void)sysRegRead(AR5315_GPIO_DO); /* flush write to hardware */ + gpio_direction_output(AR5315_RESET_GPIO, 0); } } |