Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Copyright (c) 2005 Richard Purdie
0004  */
0005 
0006 #include <linux/suspend.h>
0007 
0008 struct pxa_cpu_pm_fns {
0009     int save_count;
0010     void    (*save)(unsigned long *);
0011     void    (*restore)(unsigned long *);
0012     int (*valid)(suspend_state_t state);
0013     void    (*enter)(suspend_state_t state);
0014     int (*prepare)(void);
0015     void    (*finish)(void);
0016 };
0017 
0018 extern struct pxa_cpu_pm_fns *pxa_cpu_pm_fns;
0019 
0020 /* sleep.S */
0021 extern int pxa25x_finish_suspend(unsigned long);
0022 extern int pxa27x_finish_suspend(unsigned long);
0023 
0024 extern int pxa_pm_enter(suspend_state_t state);
0025 extern int pxa_pm_prepare(void);
0026 extern void pxa_pm_finish(void);
0027 
0028 extern const char pm_enter_standby_start[], pm_enter_standby_end[];
0029 extern int pxa3xx_finish_suspend(unsigned long);
0030 
0031 /* NOTE: this is for PM debugging on Lubbock,  it's really a big
0032  * ugly, but let's keep the crap minimum here, instead of direct
0033  * accessing the LUBBOCK CPLD registers in arch/arm/mach-pxa/pm.c
0034  */
0035 #ifdef CONFIG_ARCH_LUBBOCK
0036 extern void lubbock_set_hexled(uint32_t value);
0037 #else
0038 #define lubbock_set_hexled(x)
0039 #endif