Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279990
b: refs/heads/master
c: 7e3974b
h: refs/heads/master
v: v3
  • Loading branch information
Russell King committed Jan 5, 2012
1 parent be73096 commit 09a1141
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 24 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: abea3f2ce05f57e185b080e4a313f9fb519a0ecb
refs/heads/master: 7e3974b2f3e393abcf7934f020e26d3d22efa940
21 changes: 21 additions & 0 deletions trunk/arch/arm/mach-u300/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1888,3 +1888,24 @@ static int core_module_init(void)
return mmc_init(&mmcsd_device);
}
module_init(core_module_init);

/* Forward declare this function from the watchdog */
void coh901327_watchdog_reset(void);

void u300_restart(char mode, const char *cmd)
{
switch (mode) {
case 's':
case 'h':
printk(KERN_CRIT "RESET: shutting down/rebooting system\n");
#ifdef CONFIG_COH901327_WATCHDOG
coh901327_watchdog_reset();
#endif
break;
default:
/* Do nothing */
break;
}
/* Wait for system do die/reset. */
while (1);
}
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-u300/include/mach/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
void u300_map_io(void);
void u300_init_irq(void);
void u300_init_devices(void);
void u300_restart(char, const char *);
extern struct sys_timer u300_timer;

#endif
24 changes: 1 addition & 23 deletions trunk/arch/arm/mach-u300/include/mach/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,11 @@
* System shutdown and reset functions.
* Author: Linus Walleij <linus.walleij@stericsson.com>
*/
#include <mach/hardware.h>
#include <asm/io.h>
#include <asm/hardware/vic.h>
#include <asm/irq.h>

/* Forward declare this function from the watchdog */
void coh901327_watchdog_reset(void);

static inline void arch_idle(void)
{
cpu_do_idle();
}

static void arch_reset(char mode, const char *cmd)
static inline void arch_reset(char mode, const char *cmd)
{
switch (mode) {
case 's':
case 'h':
printk(KERN_CRIT "RESET: shutting down/rebooting system\n");
#ifdef CONFIG_COH901327_WATCHDOG
coh901327_watchdog_reset();
#endif
break;
default:
/* Do nothing */
break;
}
/* Wait for system do die/reset. */
while (1);
}
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-u300/u300.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,5 @@ MACHINE_START(U300, MACH_U300_STRING)
.init_irq = u300_init_irq,
.timer = &u300_timer,
.init_machine = u300_init_machine,
.restart = u300_restart,
MACHINE_END

0 comments on commit 09a1141

Please sign in to comment.