2019-06-04 11:11:33 +03:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2005-11-06 18:03:23 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2005 Richard Purdie
|
|
|
|
*/
|
|
|
|
|
2007-10-18 14:04:39 +04:00
|
|
|
#include <linux/suspend.h>
|
|
|
|
|
2007-07-18 14:38:45 +04:00
|
|
|
struct pxa_cpu_pm_fns {
|
2008-05-03 00:17:06 +04:00
|
|
|
int save_count;
|
2007-07-18 14:38:45 +04:00
|
|
|
void (*save)(unsigned long *);
|
|
|
|
void (*restore)(unsigned long *);
|
|
|
|
int (*valid)(suspend_state_t state);
|
|
|
|
void (*enter)(suspend_state_t state);
|
2008-08-27 15:55:04 +04:00
|
|
|
int (*prepare)(void);
|
|
|
|
void (*finish)(void);
|
2007-07-18 14:38:45 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
extern struct pxa_cpu_pm_fns *pxa_cpu_pm_fns;
|
|
|
|
|
2007-07-18 14:40:13 +04:00
|
|
|
/* sleep.S */
|
2011-07-02 12:54:01 +04:00
|
|
|
extern int pxa25x_finish_suspend(unsigned long);
|
|
|
|
extern int pxa27x_finish_suspend(unsigned long);
|
2007-07-18 14:40:13 +04:00
|
|
|
|
2005-11-06 18:03:23 +03:00
|
|
|
extern int pxa_pm_enter(suspend_state_t state);
|
2009-06-11 19:25:09 +04:00
|
|
|
extern int pxa_pm_prepare(void);
|
|
|
|
extern void pxa_pm_finish(void);
|
2009-01-19 13:43:12 +03:00
|
|
|
|
2016-01-29 17:06:30 +03:00
|
|
|
extern const char pm_enter_standby_start[], pm_enter_standby_end[];
|
|
|
|
extern int pxa3xx_finish_suspend(unsigned long);
|
|
|
|
|
2009-01-19 13:43:12 +03: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
|