Message ID | 1439882840-31757-4-git-send-email-sr@denx.de |
---|---|
State | Accepted |
Delegated to: | Tom Rini |
Headers | show |
On Tue, Aug 18, 2015 at 09:27:19AM +0200, Stefan Roese wrote: > The designware ethernet driver supports d-cache now. So there is nothing > stopping us now to enable the caches completely on SPEAr. > > Tested on SPEAr600 x600 board. > > Signed-off-by: Stefan Roese <sr@denx.de> > Cc: Viresh Kumar <viresh.kumar@linaro.org> > Cc: Vipin Kumar <vk.vipin@gmail.com> Applied to u-boot/master, thanks!
diff --git a/arch/arm/cpu/arm926ejs/spear/cpu.c b/arch/arm/cpu/arm926ejs/spear/cpu.c index 3037084..e39cdba 100644 --- a/arch/arm/cpu/arm926ejs/spear/cpu.c +++ b/arch/arm/cpu/arm926ejs/spear/cpu.c @@ -56,6 +56,16 @@ int arch_cpu_init(void) return 0; } +void enable_caches(void) +{ +#ifndef CONFIG_SYS_ICACHE_OFF + icache_enable(); +#endif +#ifndef CONFIG_SYS_DCACHE_OFF + dcache_enable(); +#endif +} + #ifdef CONFIG_DISPLAY_CPUINFO int print_cpuinfo(void) {
The designware ethernet driver supports d-cache now. So there is nothing stopping us now to enable the caches completely on SPEAr. Tested on SPEAr600 x600 board. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Viresh Kumar <viresh.kumar@linaro.org> Cc: Vipin Kumar <vk.vipin@gmail.com> --- arch/arm/cpu/arm926ejs/spear/cpu.c | 10 ++++++++++ 1 file changed, 10 insertions(+)