u-boot-brain/arch/arm/mach-bcm283x/init.c
Alexander Graf ccd9d51ede 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>
2016-03-27 09:12:18 -04:00

25 lines
321 B
C

/*
* (C) Copyright 2012 Stephen Warren
*
* See file CREDITS for list of people who contributed to this
* project.
*
* SPDX-License-Identifier: GPL-2.0
*/
#include <common.h>
int arch_cpu_init(void)
{
icache_enable();
return 0;
}
#ifdef CONFIG_ARMV7_LPAE
void enable_caches(void)
{
dcache_enable();
}
#endif