OMAP3: PM: Program SDRC to send self refresh on timeout of AUTO_CNT
commitf265dc4c5d39f2bd369d97c87a7bd89061b159d4
authorRajendra Nayak <rnayak@ti.com>
Tue, 9 Jun 2009 17:00:41 +0000 (9 22:30 +0530)
committerKevin Hilman <khilman@deeprootsystems.com>
Wed, 11 Nov 2009 22:42:28 +0000 (11 14:42 -0800)
treedb16053ad7010c141a054ab0c8b5c243c311962f
parent3a7ec26bb44988051d97479f6dfcfd4942a99049
OMAP3: PM: Program SDRC to send self refresh on timeout of AUTO_CNT

Due to an OMAP3 errata (1.142), on HS/EMU devices SDRC should be
programed to issue automatic self refresh on timeout
of AUTO_CNT = 1 prior to any transition to OFF mode.
This is needed only on sil rev's ES3.0 and above.

This patch enables the above needed WA in the SDRC power register
value stored in scratchpad, so that ROM code restores this value
in SDRC POWER on the wakeup path.
The original SDRC POWER register value is stored and restored back
in omap_sram_idle() function.

This fixes some random crashes observed while stressing suspend
on HS/EMU devices.

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Kalle Jokiniemi <kalle.jokiniemi@digia.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-omap2/control.c
arch/arm/mach-omap2/pm34xx.c
arch/arm/plat-omap/include/plat/sdrc.h