Browse Source

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: Lin Huang <hl@rock-chips.com>
pull/1070/head
Lin Huang 8 years ago
committed by Caesar Wang
parent
commit
dbc0f2dcc0
  1. 2
      plat/rockchip/rk3399/drivers/pmu/pmu.c

2
plat/rockchip/rk3399/drivers/pmu/pmu.c

@ -1413,6 +1413,8 @@ int rockchip_soc_sys_pwr_dm_resume(void)
enable_dvfs_plls();
secure_watchdog_enable();
secure_sgrf_init();
secure_sgrf_ddr_rgn_init();
/* restore clk_ddrc_bpll_src_en gate */
mmio_write_32(CRU_BASE + CRU_CLKGATE_CON(3),

Loading…
Cancel
Save