| 
									
										
										
										
											2005-11-06 15:03:23 +00:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * Copyright (c) 2005 Richard Purdie | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * This program is free software; you can redistribute it and/or modify | 
					
						
							|  |  |  |  * it under the terms of the GNU General Public License version 2 as | 
					
						
							|  |  |  |  * published by the Free Software Foundation. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-10-18 03:04:39 -07:00
										 |  |  | #include <linux/suspend.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-07-18 11:38:45 +01:00
										 |  |  | struct pxa_cpu_pm_fns { | 
					
						
							| 
									
										
										
										
											2008-05-02 21:17:06 +01:00
										 |  |  | 	int	save_count; | 
					
						
							| 
									
										
										
										
											2007-07-18 11:38:45 +01:00
										 |  |  | 	void	(*save)(unsigned long *); | 
					
						
							|  |  |  | 	void	(*restore)(unsigned long *); | 
					
						
							|  |  |  | 	int	(*valid)(suspend_state_t state); | 
					
						
							|  |  |  | 	void	(*enter)(suspend_state_t state); | 
					
						
							| 
									
										
										
										
											2008-08-27 12:55:04 +01:00
										 |  |  | 	int	(*prepare)(void); | 
					
						
							|  |  |  | 	void	(*finish)(void); | 
					
						
							| 
									
										
										
										
											2007-07-18 11:38:45 +01:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | extern struct pxa_cpu_pm_fns *pxa_cpu_pm_fns; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2007-07-18 11:40:13 +01:00
										 |  |  | /* sleep.S */ | 
					
						
							| 
									
										
										
										
											2011-07-02 09:54:01 +01:00
										 |  |  | extern int pxa25x_finish_suspend(unsigned long); | 
					
						
							|  |  |  | extern int pxa27x_finish_suspend(unsigned long); | 
					
						
							| 
									
										
										
										
											2007-07-18 11:40:13 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-11-06 15:03:23 +00:00
										 |  |  | extern int pxa_pm_enter(suspend_state_t state); | 
					
						
							| 
									
										
										
										
											2009-06-11 23:25:09 +08:00
										 |  |  | extern int pxa_pm_prepare(void); | 
					
						
							|  |  |  | extern void pxa_pm_finish(void); | 
					
						
							| 
									
										
										
										
											2009-01-19 18:43:12 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | /* NOTE: this is for PM debugging on Lubbock,  it's really a big
 | 
					
						
							|  |  |  |  * ugly, but let's keep the crap minimum here, instead of direct | 
					
						
							|  |  |  |  * accessing the LUBBOCK CPLD registers in arch/arm/mach-pxa/pm.c | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | #ifdef CONFIG_ARCH_LUBBOCK
 | 
					
						
							|  |  |  | extern void lubbock_set_hexled(uint32_t value); | 
					
						
							|  |  |  | #else
 | 
					
						
							|  |  |  | #define lubbock_set_hexled(x)
 | 
					
						
							|  |  |  | #endif
 |