Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * Copyright (c) 2005 Richard Purdie
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) #include <linux/suspend.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) struct pxa_cpu_pm_fns {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 	int	save_count;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 	void	(*save)(unsigned long *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 	void	(*restore)(unsigned long *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 	int	(*valid)(suspend_state_t state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 	void	(*enter)(suspend_state_t state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 	int	(*prepare)(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 	void	(*finish)(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) extern struct pxa_cpu_pm_fns *pxa_cpu_pm_fns;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) /* sleep.S */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) extern int pxa25x_finish_suspend(unsigned long);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) extern int pxa27x_finish_suspend(unsigned long);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) extern int pxa_pm_enter(suspend_state_t state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) extern int pxa_pm_prepare(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) extern void pxa_pm_finish(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) extern const char pm_enter_standby_start[], pm_enter_standby_end[];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) extern int pxa3xx_finish_suspend(unsigned long);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) /* NOTE: this is for PM debugging on Lubbock,  it's really a big
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)  * ugly, but let's keep the crap minimum here, instead of direct
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33)  * accessing the LUBBOCK CPLD registers in arch/arm/mach-pxa/pm.c
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) #ifdef CONFIG_ARCH_LUBBOCK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) extern void lubbock_set_hexled(uint32_t value);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) #define lubbock_set_hexled(x)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) #endif