Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Scott Branden | 5653a82 | 2014-08-11 13:58:22 -0700 | [diff] [blame] | 2 | /* |
| 3 | * Copyright 2014 Broadcom Corporation. |
Scott Branden | 5653a82 | 2014-08-11 13:58:22 -0700 | [diff] [blame] | 4 | */ |
| 5 | |
Simon Glass | 1d91ba7 | 2019-11-14 12:57:37 -0700 | [diff] [blame] | 6 | #include <cpu_func.h> |
Simon Glass | 274e0b0 | 2020-05-10 11:39:56 -0600 | [diff] [blame] | 7 | #include <asm/cache.h> |
Scott Branden | 5653a82 | 2014-08-11 13:58:22 -0700 | [diff] [blame] | 8 | |
Trevor Woerner | 43ec7e0 | 2019-05-03 09:41:00 -0400 | [diff] [blame] | 9 | #if !CONFIG_IS_ENABLED(SYS_DCACHE_OFF) |
Scott Branden | 5653a82 | 2014-08-11 13:58:22 -0700 | [diff] [blame] | 10 | void enable_caches(void) |
| 11 | { |
| 12 | /* Enable D-cache. I-cache is already enabled in start.S */ |
| 13 | dcache_enable(); |
| 14 | } |
| 15 | #endif |