blob: f0d31a2a598c3f71ebeb187250a0945e52969519 [file] [log] [blame]
Byungho Min8acd1ad2009-06-23 21:40:15 +09001/* linux/arch/arm/mach-s5pc100/include/mach/system.h
2 *
3 * Copyright 2009 Samsung Electronics Co.
4 * Byungho Min <bhmin@samsung.com>
5 *
6 * S5PC1XX - system implementation
7 *
8 * Based on mach-s3c6400/include/mach/system.h
9 */
10
11#ifndef __ASM_ARCH_SYSTEM_H
12#define __ASM_ARCH_SYSTEM_H __FILE__
13
Kyungmin Parkc3fcf5d2009-11-17 08:41:17 +010014#include <linux/io.h>
15#include <mach/map.h>
16#include <plat/regs-clock.h>
17
18void (*s5pc1xx_idle)(void);
19
Byungho Min8acd1ad2009-06-23 21:40:15 +090020static void arch_idle(void)
21{
Kyungmin Parkc3fcf5d2009-11-17 08:41:17 +010022 if (s5pc1xx_idle)
23 s5pc1xx_idle();
Byungho Min8acd1ad2009-06-23 21:40:15 +090024}
25
26static void arch_reset(char mode, const char *cmd)
27{
Kyungmin Parkc3fcf5d2009-11-17 08:41:17 +010028 __raw_writel(S5PC100_SWRESET_RESETVAL, S5PC100_SWRESET);
29 return;
Byungho Min8acd1ad2009-06-23 21:40:15 +090030}
Byungho Min8acd1ad2009-06-23 21:40:15 +090031#endif /* __ASM_ARCH_IRQ_H */