arm, arm926ejs: Flush the data cache before disabling it
authorSughosh Ganu <urwithsughosh@gmail.com>
Thu, 2 Feb 2012 00:44:38 +0000 (00:44 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sun, 12 Feb 2012 09:11:33 +0000 (10:11 +0100)
commitda104e04ecc30b90fdc121737f220f0d9c252196
treee86b6dccc5a566b6ac4abe7e3019fd3fb1bd2c48
parent27b66622b51f350ce6c143f82d104860ee887f5c
arm, arm926ejs: Flush the data cache before disabling it

The current implementation invalidates the data cache before turning it
off and causes problems on the hawkboard. See the discussion in
http://lists.denx.de/pipermail/u-boot/2012-January/115212.html

According to the ARM926EJ-S Technical Reference Manual, the cache should
be flushed instead.

Also fix the comments to match code.

Signed-off-by: Sughosh Ganu <urwithsughosh@gmail.com>
Rebased and corrected commit message.

Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Cc: Tom Rini <trini@ti.com>
Acked-by: Heiko Schocher <hs@denx.de>
Tested-by: Heiko Schocher <hs@denx.de>
arch/arm/cpu/arm926ejs/start.S