rockchip/rk3399: set ddr clock source back to dpll when ddr resume
authorLin Huang <hl@rock-chips.com>
Wed, 17 May 2017 08:14:37 +0000 (16:14 +0800)
committerCaesar Wang <wxt@rock-chips.com>
Tue, 29 Aug 2017 03:53:29 +0000 (11:53 +0800)
commit9aadf25c2251d3fe66ea743b97cf32e1728b3ae4
treecbe6853dc666dbf4a1e64fc7e8e03db1eaf2acff
parent74c3d79dc2ce8c04cf45dcb709199926fa162f29
rockchip/rk3399: set ddr clock source back to dpll when ddr resume

when logic power rail shutdown, CRU register will back to reset
value, ddr use abpll as clock source when do suspend, we need to save
and dpll value in pmusram, then set back these ddr clock back to dpll
when dddr resume.

Change-Id: I95dc0173649e8515859cfa46b40a606e0cc2fe3f
Signed-off-by: Lin Huang <hl@rock-chips.com>
plat/rockchip/common/pmusram/pmu_sram_cpus_on.S
plat/rockchip/rk3399/drivers/dram/suspend.c
plat/rockchip/rk3399/drivers/dram/suspend.h
plat/rockchip/rk3399/drivers/pmu/pmu.c
plat/rockchip/rk3399/drivers/soc/soc.c
plat/rockchip/rk3399/drivers/soc/soc.h