diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-05-24 15:59:32 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-05-24 15:59:32 +0000 |
commit | 53496b7cc9b2d8b12b2758f734238d00643ff972 (patch) | |
tree | 49fb92e71dd6a68ec9d92a2da3d3fff4e1856b10 /target/linux/ar7-2.6/files/arch/mips/ar7/setup.c | |
parent | 5a6ddb2cece7f6d64ac15a491b368493e9ec7093 (diff) | |
download | upstream-53496b7cc9b2d8b12b2758f734238d00643ff972.tar.gz upstream-53496b7cc9b2d8b12b2758f734238d00643ff972.tar.bz2 upstream-53496b7cc9b2d8b12b2758f734238d00643ff972.zip |
fix ar7 compile
SVN-Revision: 7331
Diffstat (limited to 'target/linux/ar7-2.6/files/arch/mips/ar7/setup.c')
-rw-r--r-- | target/linux/ar7-2.6/files/arch/mips/ar7/setup.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/target/linux/ar7-2.6/files/arch/mips/ar7/setup.c b/target/linux/ar7-2.6/files/arch/mips/ar7/setup.c index fb3d20c183..7930e90b24 100644 --- a/target/linux/ar7-2.6/files/arch/mips/ar7/setup.c +++ b/target/linux/ar7-2.6/files/arch/mips/ar7/setup.c @@ -49,15 +49,13 @@ static void ar7_machine_power_off(void); static void ar7_machine_restart(char *command) { - volatile u32 *softres_reg = (u32 *)ioremap(AR7_REGS_RESET + + volatile u32 *softres_reg = (u32 *)ioremap(AR7_REGS_RESET + AR7_RESET_SOFTWARE, 1); - prom_printf("Reboot\n"); - *softres_reg = 1; + *softres_reg = 1; } static void ar7_machine_halt(void) { - prom_printf("Halt\n"); while (1); } @@ -65,8 +63,7 @@ static void ar7_machine_power_off(void) { volatile u32 *power_reg = (u32 *)ioremap(AR7_REGS_POWER, 1); u32 power_state = *power_reg | (3 << 30); - prom_printf("Power off\n"); - *power_reg = power_state; + *power_reg = power_state; ar7_machine_halt(); } |