Stephen Warren | 59d63f7 | 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 | 5b8031c | 2016-01-14 22:05:13 -0500 | [diff] [blame] | 7 | * SPDX-License-Identifier: GPL-2.0 |
Stephen Warren | 59d63f7 | 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 | ccd9d51 | 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 |