Commit dbc0f2dc authored by Lin Huang's avatar Lin Huang Committed by Caesar Wang
Browse files

rockchip/rk3399: reinitilize secure sgrf when resume



when shutdown logic power rail, the some sgrf register
value will reset, so need to reinitilize secure.

Change-Id: I8ad0570432e54441fe1c60dd2960a81fd58f7163
Signed-off-by: default avatarLin Huang <hl@rock-chips.com>
parent a7bb3388
...@@ -1413,6 +1413,8 @@ int rockchip_soc_sys_pwr_dm_resume(void) ...@@ -1413,6 +1413,8 @@ int rockchip_soc_sys_pwr_dm_resume(void)
enable_dvfs_plls(); enable_dvfs_plls();
secure_watchdog_enable(); secure_watchdog_enable();
secure_sgrf_init();
secure_sgrf_ddr_rgn_init();
/* restore clk_ddrc_bpll_src_en gate */ /* restore clk_ddrc_bpll_src_en gate */
mmio_write_32(CRU_BASE + CRU_CLKGATE_CON(3), mmio_write_32(CRU_BASE + CRU_CLKGATE_CON(3),
......
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