summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-bcm283x
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2016-03-16 15:41:23 +0100
committerTom Rini <trini@konsulko.com>2016-03-27 09:12:18 -0400
commitccd9d51ede69f08f60d9ab3c824b93ceda73afc8 (patch)
tree437a33813d9b4d62405c81fb91b9ed6e4c87ead8 /arch/arm/mach-bcm283x
parentf8f58fbb09bcec7a77dddbcfab62153b102ae775 (diff)
downloadtalos-obmc-uboot-ccd9d51ede69f08f60d9ab3c824b93ceda73afc8.tar.gz
talos-obmc-uboot-ccd9d51ede69f08f60d9ab3c824b93ceda73afc8.zip
RPi: Enable caches for rpi2
Now that we have support for running with caches enabled in HYP mode, opt in to that on the Raspberry Pi 2. This brings a significant performance boost. Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/arm/mach-bcm283x')
-rw-r--r--arch/arm/mach-bcm283x/Kconfig1
-rw-r--r--arch/arm/mach-bcm283x/init.c7
2 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-bcm283x/Kconfig b/arch/arm/mach-bcm283x/Kconfig
index 2315a13438..1a7baf69e5 100644
--- a/arch/arm/mach-bcm283x/Kconfig
+++ b/arch/arm/mach-bcm283x/Kconfig
@@ -12,6 +12,7 @@ config TARGET_RPI
config TARGET_RPI_2
bool "Raspberry Pi 2"
select CPU_V7
+ select ARMV7_LPAE
endchoice
diff --git a/arch/arm/mach-bcm283x/init.c b/arch/arm/mach-bcm283x/init.c
index d2d366ba4f..4fa94dbeeb 100644
--- a/arch/arm/mach-bcm283x/init.c
+++ b/arch/arm/mach-bcm283x/init.c
@@ -15,3 +15,10 @@ int arch_cpu_init(void)
return 0;
}
+
+#ifdef CONFIG_ARMV7_LPAE
+void enable_caches(void)
+{
+ dcache_enable();
+}
+#endif
OpenPOWER on IntegriCloud