ARM: rockchip: rv1106: support CONFIG_RV1106_PMU_WAKEUP_TIMEOUT

Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: I66859ef75a39e71de20a1efab5fc840bfa296346
This commit is contained in:
XiaoDong Huang
2023-12-04 15:53:31 +08:00
committed by XiaoDongHuang
parent 164aa84b56
commit ad7b71f2e2
3 changed files with 9 additions and 3 deletions
+6
View File
@@ -28,3 +28,9 @@ config RV1106_HPMCU_FAST_WAKEUP
depends on PM_SLEEP && CPU_RV1106
help
This config aims to support HPMCU fast wakeup.
config RV1106_PMU_WAKEUP_TIMEOUT
bool "Rockchip RV1106 pmu timeout wakeup support"
depends on PM_SLEEP && CPU_RV1106
help
This config aims to support pmu timeout wakeup.
+2 -2
View File
@@ -712,8 +712,8 @@ static void pmu_sleep_config(void)
/* BIT(RV1106_PMU_WAKEUP_CPU_INT_EN) | */
BIT(RV1106_PMU_WAKEUP_GPIO_INT_EN) |
0;
if (IS_ENABLED(CONFIG_RV1106_HPMCU_FAST_WAKEUP))
pmu_wkup_con |= BIT(RV1106_PMU_WAKEUP_TIMEROUT_EN);
if (IS_ENABLED(CONFIG_RV1106_PMU_WAKEUP_TIMEOUT))
pmu_wkup_con |= BIT(RV1106_PMU_WAKEUP_TIMEOUT_EN);
pmu_pwr_con =
BIT(RV1106_PMU_PWRMODE_EN) |
+1 -1
View File
@@ -238,7 +238,7 @@ enum rv1106_wakeup_init_con {
RV1106_PMU_WAKEUP_USBDEV_EN,
RV1106_PMU_WAKEUP_TIMER_EN,
RV1106_PMU_WAKEUP_TIMEROUT_EN,
RV1106_PMU_WAKEUP_TIMEOUT_EN,
RV1106_PMU_WAKEUP_SFT_WAKEUP_CFG,
};