ARM: DRA7: emif: Fix DDR init sequence during warm reset
authorLokesh Vutla <lokeshvutla@ti.com>
Sat, 5 Mar 2016 12:02:29 +0000 (17:32 +0530)
committerTom Rini <trini@konsulko.com>
Mon, 14 Mar 2016 23:18:46 +0000 (19:18 -0400)
commit4571c519b4581cffc49f40d4066c328df4d6cdf0
treef4ed344a8b6fbe9d0b0617246bd2eab4d1a739da
parentde095474788d6731f71bf4ce2187d047e0e8ee9b
ARM: DRA7: emif: Fix DDR init sequence during warm reset

Commit (20fae0a - ARM: DRA7: DDR: Enable SR in Power Management Control)
enables Self refresh mode by default and during warm reset the EMIF
contents are preserved. After warm reset EMIF sees that it is idle and
puts DDR in self-refresh. When in SR, leveling operations cannot be done
as DDR can only accept SR exit command, so its hanging during warm reset.
In order to fix this reset the power management control register before
EMIF initialization if it is a warm reset.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
arch/arm/cpu/armv7/omap-common/emif-common.c