xref: /OK3568_Linux_fs/u-boot/include/dt-bindings/suspend/rockchip-rv1126.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
2 /*
3  * Header providing constants for Rockchip suspend bindings.
4  *
5  * Copyright (C) 2020, Fuzhou Rockchip Electronics Co., Ltd
6  * Author: XiaoDong.Huang
7  */
8 
9 #ifndef __DT_BINDINGS_RV1126_PM_H__
10 #define __DT_BINDINGS_RV1126_PM_H__
11 /******************************bits ops************************************/
12 
13 #ifndef BIT
14 #define BIT(nr)				(1 << (nr))
15 #endif
16 
17 #define RKPM_SLP_ARMPD			BIT(0)
18 #define RKPM_SLP_ARMOFF			BIT(1)
19 #define RKPM_SLP_ARMOFF_DDRPD		BIT(2)
20 #define RKPM_SLP_ARMOFF_LOGOFF		BIT(3)
21 
22 /* all plls except ddr's pll*/
23 #define RKPM_SLP_PMU_HW_PLLS_PD		BIT(8)
24 #define RKPM_SLP_PMU_PMUALIVE_32K	BIT(9)
25 #define RKPM_SLP_PMU_DIS_OSC		BIT(10)
26 
27 #define RKPM_SLP_CLK_GT			BIT(16)
28 #define RKPM_SLP_PMIC_LP		BIT(17)
29 
30 #define RKPM_SLP_32K_EXT		BIT(24)
31 #define RKPM_SLP_TIME_OUT_WKUP		BIT(25)
32 #define RKPM_SLP_PMU_DBG		BIT(26)
33 
34 /* the wake up source */
35 #define RKPM_CPU0_WKUP_EN		BIT(0)
36 #define RKPM_CPU1_WKUP_EN		BIT(1)
37 #define RKPM_CPU2_WKUP_EN		BIT(2)
38 #define RKPM_CPU3_WKUP_EN		BIT(3)
39 #define RKPM_GPIO_WKUP_EN		BIT(4)
40 #define RKPM_SDMMC_WKUP_EN		BIT(5)
41 #define RKPM_SDIO_WKUP_EN		BIT(6)
42 #define RKPM_USB_WKUP_EN		BIT(7)
43 #define RKPM_UART1_WKUP_EN		BIT(8)
44 #define RKPM_SYSINT_WKUP_EN		BIT(9)
45 #define RKPM_TIME_OUT_WKUP_EN		BIT(10)
46 #endif
47