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) 2015 Samsung Electronics Co., Ltd.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *		http://www.samsung.com
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  * Header for Exynos PMU Driver support
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #ifndef __EXYNOS_PMU_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #define __EXYNOS_PMU_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #include <linux/io.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #define PMU_TABLE_END	(-1U)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) struct exynos_pmu_conf {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 	unsigned int offset;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 	u8 val[NUM_SYS_POWERDOWN];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) struct exynos_pmu_data {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 	const struct exynos_pmu_conf *pmu_config;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	void (*pmu_init)(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	void (*powerdown_conf)(enum sys_powerdown);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 	void (*powerdown_conf_extra)(enum sys_powerdown);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) extern void __iomem *pmu_base_addr;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #ifdef CONFIG_EXYNOS_PMU_ARM_DRIVERS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) /* list of all exported SoC specific data */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) extern const struct exynos_pmu_data exynos3250_pmu_data;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) extern const struct exynos_pmu_data exynos4210_pmu_data;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) extern const struct exynos_pmu_data exynos4412_pmu_data;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) extern const struct exynos_pmu_data exynos5250_pmu_data;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) extern const struct exynos_pmu_data exynos5420_pmu_data;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) extern void pmu_raw_writel(u32 val, u32 offset);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) extern u32 pmu_raw_readl(u32 offset);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) #endif /* __EXYNOS_PMU_H */