Byungho Min | 8acd1ad | 2009-06-23 21:40:15 +0900 | [diff] [blame] | 1 | /* 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 Park | c3fcf5d | 2009-11-17 08:41:17 +0100 | [diff] [blame^] | 14 | #include <linux/io.h> |
| 15 | #include <mach/map.h> |
| 16 | #include <plat/regs-clock.h> |
| 17 | |
| 18 | void (*s5pc1xx_idle)(void); |
| 19 | |
Byungho Min | 8acd1ad | 2009-06-23 21:40:15 +0900 | [diff] [blame] | 20 | static void arch_idle(void) |
| 21 | { |
Kyungmin Park | c3fcf5d | 2009-11-17 08:41:17 +0100 | [diff] [blame^] | 22 | if (s5pc1xx_idle) |
| 23 | s5pc1xx_idle(); |
Byungho Min | 8acd1ad | 2009-06-23 21:40:15 +0900 | [diff] [blame] | 24 | } |
| 25 | |
| 26 | static void arch_reset(char mode, const char *cmd) |
| 27 | { |
Kyungmin Park | c3fcf5d | 2009-11-17 08:41:17 +0100 | [diff] [blame^] | 28 | __raw_writel(S5PC100_SWRESET_RESETVAL, S5PC100_SWRESET); |
| 29 | return; |
Byungho Min | 8acd1ad | 2009-06-23 21:40:15 +0900 | [diff] [blame] | 30 | } |
Byungho Min | 8acd1ad | 2009-06-23 21:40:15 +0900 | [diff] [blame] | 31 | #endif /* __ASM_ARCH_IRQ_H */ |