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) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2)  * Header providing constants for Rockchip suspend bindings.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  * Copyright (C) 2017, Fuzhou Rockchip Electronics Co., Ltd
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * Author: XiaoDong.Huang
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  * This program is free software; you can redistribute it and/or modify
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)  * it under the terms of the GNU General Public License as published by
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9)  * the Free Software Foundation; either version 2 of the License, or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)  * (at your option) any later version.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)  * This program is distributed in the hope that it will be useful,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)  * but WITHOUT ANY WARRANTY; without even the implied warranty of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)  * GNU General Public License for more details.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #ifndef __DT_BINDINGS_ROCKCHIP_PM_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #define __DT_BINDINGS_ROCKCHIP_PM_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) /******************************bits ops************************************/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #ifndef BIT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #define BIT(nr)				(1 << (nr))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #define RKPM_SLP_ARMPD			BIT(0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #define RKPM_SLP_ARMOFF			BIT(1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #define RKPM_SLP_ARMOFF_DDRPD		BIT(2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #define RKPM_SLP_ARMOFF_LOGOFF		BIT(3)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) /* all plls except ddr's pll*/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #define RKPM_SLP_PMU_HW_PLLS_PD		BIT(8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) #define RKPM_SLP_PMU_PMUALIVE_32K	BIT(9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #define RKPM_SLP_PMU_DIS_OSC		BIT(10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) #define RKPM_SLP_CLK_GT			BIT(16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) #define RKPM_SLP_PMIC_LP		BIT(17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) #define RKPM_SLP_32K_EXT		BIT(24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) #define RKPM_SLP_TIME_OUT_WKUP		BIT(25)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) #define RKPM_SLP_PMU_DBG		BIT(26)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) /* the wake up source */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) #define RKPM_CLUSTER_WKUP_EN		BIT(0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) #define RKPM_GPIO_WKUP_EN		BIT(2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) #define RKPM_SDIO_WKUP_EN		BIT(3)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) #define RKPM_SDMMC_WKUP_EN		BIT(4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) #define RKPM_UART0_WKUP_EN		BIT(5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) #define RKPM_TIMER_WKUP_EN		BIT(6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) #define RKPM_USB_WKUP_EN		BIT(7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) #define RKPM_SFT_WKUP_EN		BIT(8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) #define RKPM_TIME_OUT_WKUP_EN		BIT(10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) #endif