projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Restore the gpio.h file, platform.c uses the generic GPIO API
[openwrt.git]
/
target
/
linux
/
ar7-2.6
/
files
/
arch
/
mips
/
ar7
/
setup.c
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
fb3d20c
..
7930e90
100644
(file)
--- 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)
{
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);
AR7_RESET_SOFTWARE, 1);
- prom_printf("Reboot\n");
- *softres_reg = 1;
+ *softres_reg = 1;
}
static void ar7_machine_halt(void)
{
}
static void ar7_machine_halt(void)
{
- prom_printf("Halt\n");
while (1);
}
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);
{
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();
}
ar7_machine_halt();
}
This page took
0.024627 seconds
and
4
git commands to generate.