d36017e823bf0bfb2752c6f2c1b579025907ba72
[oweals/u-boot.git] / arch / arm / mach-bcm283x / init.c
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * (C) Copyright 2012 Stephen Warren
4  *
5  * See file CREDITS for list of people who contributed to this
6  * project.
7  */
8
9 #include <common.h>
10
11 unsigned long rpi_bcm283x_base;
12
13 int arch_cpu_init(void)
14 {
15         icache_enable();
16
17         return 0;
18 }
19
20 int mach_cpu_init(void)
21 {
22         rpi_bcm283x_base = CONFIG_BCM283x_BASE;
23
24         return 0;
25 }
26 #ifdef CONFIG_ARMV7_LPAE
27 void enable_caches(void)
28 {
29         dcache_enable();
30 }
31 #endif