u-boot-brain/arch/arm/mach-bcm283x/init.c

32 lines
432 B
C
Raw Normal View History

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