1 /* 2 * Header providing constants for Rockchip suspend bindings. 3 * 4 * Copyright (C) 2017, Fuzhou Rockchip Electronics Co., Ltd 5 * Author: Tony.Xie 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation; either version 2 of the License, or 10 * (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 */ 17 18 #ifndef __DT_BINDINGS_SUSPEND_ROCKCHIP_RK3399_H__ 19 #define __DT_BINDINGS_SUSPEND_ROCKCHIP_RK3399_H__ 20 21 /* the suspend mode */ 22 #define RKPM_SLP_WFI (1 << 0) 23 #define RKPM_SLP_ARMPD (1 << 1) 24 #define RKPM_SLP_PERILPPD (1 << 2) 25 #define RKPM_SLP_DDR_RET (1 << 3) 26 #define RKPM_SLP_PLLPD (1 << 4) 27 #define RKPM_SLP_OSC_DIS (1 << 5) 28 #define RKPM_SLP_CENTER_PD (1 << 6) 29 #define RKPM_SLP_AP_PWROFF (1 << 7) 30 31 /* the wake up source */ 32 #define RKPM_CLUSTER_L_WKUP_EN (1 << 0) 33 #define RKPM_CLUSTER_B_WKUPB_EN (1 << 1) 34 #define RKPM_GPIO_WKUP_EN (1 << 2) 35 #define RKPM_SDIO_WKUP_EN (1 << 3) 36 #define RKPM_SDMMC_WKUP_EN (1 << 4) 37 #define RKPM_TIMER_WKUP_EN (1 << 6) 38 #define RKPM_USB_WKUP_EN (1 << 7) 39 #define RKPM_SFT_WKUP_EN (1 << 8) 40 #define RKPM_WDT_M0_WKUP_EN (1 << 9) 41 #define RKPM_TIME_OUT_WKUP_EN (1 << 10) 42 #define RKPM_PWM_WKUP_EN (1 << 11) 43 #define RKPM_PCIE_WKUP_EN (1 << 13) 44 #define RKPM_USB_LINESTATE_WKUP_EN (1 << 14) 45 46 /* the pwm regulator */ 47 #define PWM0_REGULATOR_EN (1 << 0) 48 #define PWM1_REGULATOR_EN (1 << 1) 49 #define PWM2_REGULATOR_EN (1 << 2) 50 #define PWM3A_REGULATOR_EN (1 << 3) 51 #define PWM3B_REGULATOR_EN (1 << 4) 52 53 /* the APIO voltage domain */ 54 #define RKPM_APIO0_SUSPEND (1 << 0) 55 #define RKPM_APIO1_SUSPEND (1 << 1) 56 #define RKPM_APIO2_SUSPEND (1 << 2) 57 #define RKPM_APIO3_SUSPEND (1 << 3) 58 #define RKPM_APIO4_SUSPEND (1 << 4) 59 #define RKPM_APIO5_SUSPEND (1 << 5) 60 61 #endif 62