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