• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
2 /*
3  * Header providing constants for Rockchip suspend bindings.
4  *
5  * Copyright (C) 2022, Rockchip Electronics Co., Ltd
6  * Author: XiaoDong.Huang
7  */
8 
9 #ifndef __DT_BINDINGS_RK3588_PM_H__
10 #define __DT_BINDINGS_RK3588_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 #define RKPM_SLP_ARMOFF_PMUOFF		BIT(4)
22 
23 /* all plls except ddr's pll*/
24 #define RKPM_SLP_PMU_HW_PLLS_PD		BIT(8)
25 #define RKPM_SLP_PMU_PMUALIVE_32K	BIT(9)
26 #define RKPM_SLP_PMU_DIS_OSC		BIT(10)
27 
28 #define RKPM_SLP_CLK_GT			BIT(16)
29 #define RKPM_SLP_PMIC_LP		BIT(17)
30 
31 #define RKPM_SLP_32K_EXT		BIT(24)
32 #define RKPM_SLP_TIME_OUT_WKUP		BIT(25)
33 #define RKPM_SLP_PMU_DBG		BIT(26)
34 
35 /* the wake up source */
36 #define RKPM_CPU0_WKUP_EN		BIT(0)
37 #define RKPM_CPU1_WKUP_EN		BIT(1)
38 #define RKPM_CPU2_WKUP_EN		BIT(2)
39 #define RKPM_CPU3_WKUP_EN		BIT(3)
40 #define RKPM_CPU4_WKUP_EN		BIT(4)
41 #define RKPM_CPU5_WKUP_EN		BIT(5)
42 #define RKPM_CPU6_WKUP_EN		BIT(6)
43 #define RKPM_CPU7_WKUP_EN		BIT(7)
44 #define RKPM_GPIO_WKUP_EN		BIT(8)
45 #define RKPM_SDMMC_WKUP_EN		BIT(9)
46 #define RKPM_SDIO_WKUP_EN		BIT(10)
47 #define RKPM_USB_WKUP_EN		BIT(11)
48 #define RKPM_UART0_WKUP_EN		BIT(12)
49 #define RKPM_VAD_WKUP_EN		BIT(13)
50 #define RKPM_TIMER_WKUP_EN		BIT(14)
51 #define RKPM_SYSINT_WKUP_EN		BIT(15)
52 #define RKPM_TIME_OUT_WKUP_EN		BIT(16)
53 #endif
54