 c3fcf5d1a4
			
		
	
	
	c3fcf5d1a4
	
	
	
		
			
			Add CPU idle support by a call to SoC build-in power management core. Add system reset support by a simple write to system controll register. Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Ben Dooks <ben-linux@fluff.org>
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			622 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			622 B
			
		
	
	
	
		
			C
		
	
	
	
	
	
| /* linux/arch/arm/mach-s5pc100/include/mach/system.h
 | |
|  *
 | |
|  * Copyright 2009 Samsung Electronics Co.
 | |
|  *      Byungho Min <bhmin@samsung.com>
 | |
|  *
 | |
|  * S5PC1XX - system implementation
 | |
|  *
 | |
|  * Based on mach-s3c6400/include/mach/system.h
 | |
|  */
 | |
| 
 | |
| #ifndef __ASM_ARCH_SYSTEM_H
 | |
| #define __ASM_ARCH_SYSTEM_H __FILE__
 | |
| 
 | |
| #include <linux/io.h>
 | |
| #include <mach/map.h>
 | |
| #include <plat/regs-clock.h>
 | |
| 
 | |
| void (*s5pc1xx_idle)(void);
 | |
| 
 | |
| static void arch_idle(void)
 | |
| {
 | |
| 	if (s5pc1xx_idle)
 | |
| 		s5pc1xx_idle();
 | |
| }
 | |
| 
 | |
| static void arch_reset(char mode, const char *cmd)
 | |
| {
 | |
| 	__raw_writel(S5PC100_SWRESET_RESETVAL, S5PC100_SWRESET);
 | |
| 	return;
 | |
| }
 | |
| #endif /* __ASM_ARCH_IRQ_H */
 |