Skip to content
Snippets Groups Projects
Commit ccd9d51e authored by Alexander Graf's avatar Alexander Graf Committed by Tom Rini
Browse files

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: default avatarAlexander Graf <agraf@suse.de>
parent f8f58fbb
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,7 @@ config TARGET_RPI ...@@ -12,6 +12,7 @@ config TARGET_RPI
config TARGET_RPI_2 config TARGET_RPI_2
bool "Raspberry Pi 2" bool "Raspberry Pi 2"
select CPU_V7 select CPU_V7
select ARMV7_LPAE
endchoice endchoice
......
...@@ -15,3 +15,10 @@ int arch_cpu_init(void) ...@@ -15,3 +15,10 @@ int arch_cpu_init(void)
return 0; return 0;
} }
#ifdef CONFIG_ARMV7_LPAE
void enable_caches(void)
{
dcache_enable();
}
#endif
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
#define CONFIG_SKIP_LOWLEVEL_INIT #define CONFIG_SKIP_LOWLEVEL_INIT
#define CONFIG_BCM2836 #define CONFIG_BCM2836
#define CONFIG_SYS_CACHELINE_SIZE 64 #define CONFIG_SYS_CACHELINE_SIZE 64
#define CONFIG_SYS_DCACHE_OFF
#include "rpi-common.h" #include "rpi-common.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment