rockchip: sysreset: rk3188: Make sure remap is off on warm-resets
authorHeiko Stübner <heiko@sntech.de>
Fri, 7 Apr 2017 10:38:52 +0000 (12:38 +0200)
committerSimon Glass <sjg@chromium.org>
Sat, 15 Apr 2017 16:13:17 +0000 (10:13 -0600)
commit4e5439ac25486e34568d96f99fefb464a857855c
treeeb46c0f05c02b99433492b96e86311c0a1191037
parent86d012657c008dbd1c632452fc0193e71e2be77e
rockchip: sysreset: rk3188: Make sure remap is off on warm-resets

The warm-reset of rk3188 socs keeps the remap setting as it was, so if
it was enabled, the cpu would start from address 0x0 of the sram instead
of address 0x0 of the bootrom, thus making the reset hang.

Therefore make sure the remap is disabled before attempting a warm reset.

Cold reset is not affected by this at all.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Simon Glass <sjg@chromium.org>
drivers/sysreset/sysreset_rk3188.c