2018-05-07 06:58:06 +09:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2012-09-02 01:27:56 +09:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2012 Stephen Warren
|
|
|
|
*
|
|
|
|
* See file CREDITS for list of people who contributed to this
|
|
|
|
* project.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <common.h>
|
|
|
|
|
2019-11-20 00:01:03 +09:00
|
|
|
unsigned long rpi_bcm283x_base;
|
|
|
|
|
2012-09-02 01:27:56 +09:00
|
|
|
int arch_cpu_init(void)
|
|
|
|
{
|
|
|
|
icache_enable();
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2016-03-16 23:41:23 +09:00
|
|
|
|
2019-11-20 00:01:03 +09:00
|
|
|
int mach_cpu_init(void)
|
|
|
|
{
|
|
|
|
rpi_bcm283x_base = CONFIG_BCM283x_BASE;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2016-03-16 23:41:23 +09:00
|
|
|
#ifdef CONFIG_ARMV7_LPAE
|
|
|
|
void enable_caches(void)
|
|
|
|
{
|
|
|
|
dcache_enable();
|
|
|
|
}
|
|
|
|
#endif
|