 6d7eff8023
			
		
	
	
		6d7eff8023
		
	
	
	
	
		
			
			AM335X SoCs support power-off via a power management chip (PMIC). An alarm in the real time clock is used to trigger the PMIC to cut the power. To ensure the alarm goes off when the system is in a safe state, the RTC is frozen when the alarm is set. At the last moment, the kernel unfreezes the RTC to let the alarm go off. This patch adds a mini driver for unfreezing the RTC as well as code to handle RBT_POWEROFF on Minix/arm. Change-Id: I7d48e75791e3a81bdd2f7704997193a269409fe8
		
			
				
	
	
		
			8 lines
		
	
	
		
			123 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			123 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef __OMAP_RTC_H
 | |
| #define __OMAP_RTC_H
 | |
| 
 | |
| void omap3_rtc_init(void);
 | |
| void omap3_rtc_run(void);
 | |
| 
 | |
| #endif /* __OMAP_RTC_H */
 |