]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
arm: mvebu: Flush caches and disable MMU only on A38x
authorStefan Roese <sr@denx.de>
Wed, 1 Jul 2015 11:23:52 +0000 (13:23 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 08:24:13 +0000 (10:24 +0200)
commit6337799a4b6f403a350d8f9630d7dce0fcf916c1
tree6152dbe35386bb8b1ee48a7b359ca1a708cf1c8d
parentfd5457de3c02be55d86e6ccdbcff8e0e965cd97b
arm: mvebu: Flush caches and disable MMU only on A38x

Only with disabled MMU its possible to switch the base register address
on Armada 38x. Without this the SDRAM located at >= 0x4000.0000 is also
not accessible, as its still locked to cache.

So to fully release / unlock this area from cache, we need to first
flush all caches, then disable the MMU and disable the L2 cache.

On Armada XP this does not seem to be needed. Even worse, with this
code added, I sometimes see strange input charactes loss from the
console.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Luka Perkov <luka.perkov@sartura.hr>
arch/arm/mach-mvebu/cpu.c