2008-10-21 21:06:40 +08:00
|
|
|
/* linux/arch/arm/mach-s3c6400/include/mach/system.h
|
|
|
|
*
|
|
|
|
* Copyright 2008 Openmoko, Inc.
|
|
|
|
* Copyright 2008 Simtec Electronics
|
|
|
|
* Ben Dooks <ben@simtec.co.uk>
|
|
|
|
* http://armlinux.simtec.co.uk/
|
|
|
|
*
|
|
|
|
* S3C6400 - system implementation
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ASM_ARCH_SYSTEM_H
|
|
|
|
#define __ASM_ARCH_SYSTEM_H __FILE__
|
|
|
|
|
2009-05-18 06:40:30 +08:00
|
|
|
#include <plat/watchdog-reset.h>
|
|
|
|
|
2008-10-21 21:06:40 +08:00
|
|
|
static void arch_idle(void)
|
|
|
|
{
|
|
|
|
/* nothing here yet */
|
|
|
|
}
|
|
|
|
|
2009-03-20 00:20:24 +08:00
|
|
|
static void arch_reset(char mode, const char *cmd)
|
2008-10-21 21:06:40 +08:00
|
|
|
{
|
2009-05-18 06:40:30 +08:00
|
|
|
if (mode != 's')
|
|
|
|
arch_wdt_reset();
|
|
|
|
|
|
|
|
/* if all else fails, or mode was for soft, jump to 0 */
|
|
|
|
cpu_reset(0);
|
2008-10-21 21:06:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* __ASM_ARCH_IRQ_H */
|