Commit 133598cb authored by Lin Huang's avatar Lin Huang
Browse files

rockchip/rk3399: improve pmu powermode configure when suspend



we need to enable PMU_WKUP_RST_EN for pmu powermode configure, since
enable wakeup reset will hold the soc status, so the SOC will not affect
by some power or other single glitch when resume, and keep the soc in the
right status. And it not need to enable DDRIO_RET_HW_DE_REQ, the ddr resume
will do it manual.

Change-Id: Ib4af897ffb3cb63dc2aa9a6002e5d9ef86ee4a49
Signed-off-by: default avatarLin Huang <hl@rock-chips.com>
parent da9d1d59
...@@ -836,6 +836,7 @@ static void sys_slp_config(void) ...@@ -836,6 +836,7 @@ static void sys_slp_config(void)
BIT_WITH_WMSK(PMU_CLR_GIC2_CORE_L_HW)); BIT_WITH_WMSK(PMU_CLR_GIC2_CORE_L_HW));
slp_mode_cfg = BIT(PMU_PWR_MODE_EN) | slp_mode_cfg = BIT(PMU_PWR_MODE_EN) |
BIT(PMU_WKUP_RST_EN) |
BIT(PMU_INPUT_CLAMP_EN) | BIT(PMU_INPUT_CLAMP_EN) |
BIT(PMU_POWER_OFF_REQ_CFG) | BIT(PMU_POWER_OFF_REQ_CFG) |
BIT(PMU_CPU0_PD_EN) | BIT(PMU_CPU0_PD_EN) |
...@@ -853,7 +854,6 @@ static void sys_slp_config(void) ...@@ -853,7 +854,6 @@ static void sys_slp_config(void)
BIT(PMU_DDRIO0_RET_DE_REQ) | BIT(PMU_DDRIO0_RET_DE_REQ) |
BIT(PMU_DDRIO1_RET_EN) | BIT(PMU_DDRIO1_RET_EN) |
BIT(PMU_DDRIO1_RET_DE_REQ) | BIT(PMU_DDRIO1_RET_DE_REQ) |
BIT(PMU_DDRIO_RET_HW_DE_REQ) |
BIT(PMU_CENTER_PD_EN) | BIT(PMU_CENTER_PD_EN) |
BIT(PMU_PERILP_PD_EN) | BIT(PMU_PERILP_PD_EN) |
BIT(PMU_CLK_PERILP_SRC_GATE_EN) | BIT(PMU_CLK_PERILP_SRC_GATE_EN) |
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment