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 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * Copyright (C) 2013 Samsung Electronics Co., Ltd.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *	Tomasz Figa <t.figa@samsung.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * Copyright (c) 2004 Simtec Electronics
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  *	http://armlinux.simtec.co.uk/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  *	Written by Ben Dooks, <ben@simtec.co.uk>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #ifndef __PLAT_SAMSUNG_PM_COMMON_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #define __PLAT_SAMSUNG_PM_COMMON_H __FILE__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #include <linux/irq.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #include <linux/soc/samsung/s3c-pm.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) /* sleep save info */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)  * struct sleep_save - save information for shared peripherals.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)  * @reg: Pointer to the register to save.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)  * @val: Holder for the value saved from reg.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)  * This describes a list of registers which is used by the pm core and
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)  * other subsystem to save and restore register values over suspend.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) struct sleep_save {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 	void __iomem	*reg;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	unsigned long	val;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #define SAVE_ITEM(x) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 	{ .reg = (x) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) /* helper functions to save/restore lists of registers. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) extern void s3c_pm_do_save(struct sleep_save *ptr, int count);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) extern void s3c_pm_do_restore(const struct sleep_save *ptr, int count);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) extern void s3c_pm_do_restore_core(const struct sleep_save *ptr, int count);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) #endif