arm: mvebu: Enable L2 cache on Armada XP
authorStefan Roese <sr@denx.de>
Thu, 3 Dec 2015 11:39:45 +0000 (12:39 +0100)
committerStefan Roese <sr@denx.de>
Thu, 14 Jan 2016 13:08:59 +0000 (14:08 +0100)
commit3e5ce7ceeb940926518378ff31913b263d41c354
tree00f414daead26369c45fa710eca5e48082fdf628
parentaf2728abe638535d5fd4a3e0378d1f9fc7ecc571
arm: mvebu: Enable L2 cache on Armada XP

Until now, the L2 cache was never enabled again in U-Boot. To get
even better performance (bootup time), lets enable the L2 cache
in U-Boot. This code was taken from the Linux kernel.

A performance gain was measured on the DB-MV784MP-GP board by testing
with tftpboot and sata commands.

This patch also cleans up the L2 cache related code. And makes sure that
the L2 cache is only disabled once.

Please note that A38x still runs with L2 cache disabled. And needs
to be enabled for this SoC in a separate patch if needed or desired.

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