Stephen Warren | dad11a9 | 2012-09-01 16:27:56 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2012 Stephen Warren |
| 3 | * |
| 4 | * See file CREDITS for list of people who contributed to this |
| 5 | * project. |
| 6 | * |
Tom Rini | e237880 | 2016-01-14 22:05:13 -0500 | [diff] [blame] | 7 | * SPDX-License-Identifier: GPL-2.0 |
Stephen Warren | dad11a9 | 2012-09-01 16:27:56 +0000 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #include <common.h> |
| 11 | |
| 12 | int arch_cpu_init(void) |
| 13 | { |
| 14 | icache_enable(); |
| 15 | |
| 16 | return 0; |
| 17 | } |
Alexander Graf | 169892f | 2016-03-16 15:41:23 +0100 | [diff] [blame] | 18 | |
| 19 | #ifdef CONFIG_ARMV7_LPAE |
| 20 | void enable_caches(void) |
| 21 | { |
| 22 | dcache_enable(); |
| 23 | } |
| 24 | #endif |