xref: /openbmc/u-boot/arch/arm/mach-bcm283x/init.c (revision 83d290c56fab2d38cd1ab4c4cc7099559c1d5046)
1*83d290c5STom Rini // SPDX-License-Identifier: GPL-2.0
2ddf6bd48SMasahiro Yamada /*
3ddf6bd48SMasahiro Yamada  * (C) Copyright 2012 Stephen Warren
4ddf6bd48SMasahiro Yamada  *
5ddf6bd48SMasahiro Yamada  * See file CREDITS for list of people who contributed to this
6ddf6bd48SMasahiro Yamada  * project.
7ddf6bd48SMasahiro Yamada  */
8ddf6bd48SMasahiro Yamada 
9ddf6bd48SMasahiro Yamada #include <common.h>
10ddf6bd48SMasahiro Yamada 
arch_cpu_init(void)11ddf6bd48SMasahiro Yamada int arch_cpu_init(void)
12ddf6bd48SMasahiro Yamada {
13ddf6bd48SMasahiro Yamada 	icache_enable();
14ddf6bd48SMasahiro Yamada 
15ddf6bd48SMasahiro Yamada 	return 0;
16ddf6bd48SMasahiro Yamada }
17ccd9d51eSAlexander Graf 
18ccd9d51eSAlexander Graf #ifdef CONFIG_ARMV7_LPAE
enable_caches(void)19ccd9d51eSAlexander Graf void enable_caches(void)
20ccd9d51eSAlexander Graf {
21ccd9d51eSAlexander Graf 	dcache_enable();
22ccd9d51eSAlexander Graf }
23ccd9d51eSAlexander Graf #endif
24