rockchip/rk3399: save and restore pd_alive register
authorLin Huang <hl@rock-chips.com>
Thu, 18 May 2017 10:04:25 +0000 (18:04 +0800)
committerCaesar Wang <wxt@rock-chips.com>
Tue, 29 Aug 2017 07:00:40 +0000 (15:00 +0800)
commit2adcad64dc44959e0c1a84654a2c2464af083e99
treeff9f4b9b3a1a48ff470c2ba4533ea805afc3562a
parent9aadf25c2251d3fe66ea743b97cf32e1728b3ae4
rockchip/rk3399: save and restore pd_alive register

pd_alive control cru, grf, timer, gpio and wdt, when
turn off logic power rail, these register value will
back to reset value, we need to save them value in suspend
and restore them when resuem, since timer will reinitial
in kernel, so it not need to save/restore.

Change-Id: I0fc2a011d3cdc04b66ffbf728e769eb28b51ee38
Signed-off-by: Lin Huang <hl@rock-chips.com>
plat/rockchip/common/include/plat_private.h
plat/rockchip/rk3399/drivers/gpio/rk3399_gpio.c
plat/rockchip/rk3399/drivers/pmu/pmu.c
plat/rockchip/rk3399/drivers/soc/soc.h
plat/rockchip/rk3399/include/shared/addressmap_shared.h