1 /* 2 * Header providing constants for Rockchip suspend bindings. 3 * 4 * Copyright (C) 2017, Fuzhou Rockchip Electronics Co., Ltd 5 * Author: XiaoDong.Huang 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 #ifndef __DT_BINDINGS_ROCKCHIP_PM_H__ 18 #define __DT_BINDINGS_ROCKCHIP_PM_H__ 19 /******************************bits ops************************************/ 20 21 #ifndef BIT 22 #define BIT(nr) (1 << (nr)) 23 #endif 24 25 #define RKPM_SLP_ARMPD BIT(0) 26 #define RKPM_SLP_ARMOFF BIT(1) 27 #define RKPM_SLP_ARMOFF_DDRPD BIT(2) 28 #define RKPM_SLP_ARMOFF_LOGOFF BIT(3) 29 30 /* all plls except ddr's pll*/ 31 #define RKPM_SLP_PMU_HW_PLLS_PD BIT(8) 32 #define RKPM_SLP_PMU_PMUALIVE_32K BIT(9) 33 #define RKPM_SLP_PMU_DIS_OSC BIT(10) 34 35 #define RKPM_SLP_CLK_GT BIT(16) 36 #define RKPM_SLP_PMIC_LP BIT(17) 37 38 #define RKPM_SLP_32K_EXT BIT(24) 39 #define RKPM_SLP_TIME_OUT_WKUP BIT(25) 40 #define RKPM_SLP_PMU_DBG BIT(26) 41 42 /* the wake up source */ 43 #define RKPM_CLUSTER_WKUP_EN BIT(0) 44 #define RKPM_GPIO_WKUP_EN BIT(2) 45 #define RKPM_SDIO_WKUP_EN BIT(3) 46 #define RKPM_SDMMC_WKUP_EN BIT(4) 47 #define RKPM_UART0_WKUP_EN BIT(5) 48 #define RKPM_TIMER_WKUP_EN BIT(6) 49 #define RKPM_USB_WKUP_EN BIT(7) 50 #define RKPM_SFT_WKUP_EN BIT(8) 51 #define RKPM_TIME_OUT_WKUP_EN BIT(10) 52 53 #endif 54