Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Darwin Rambo | 5d6c315 | 2014-02-11 11:06:33 -0800 | [diff] [blame] | 2 | /* |
| 3 | * Copyright 2013 Broadcom Corporation. |
Darwin Rambo | 5d6c315 | 2014-02-11 11:06:33 -0800 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #include <common.h> |
Simon Glass | 1d91ba7 | 2019-11-14 12:57:37 -0700 | [diff] [blame] | 7 | #include <cpu_func.h> |
Alexey Brodkin | 267d8e2 | 2014-02-26 17:47:58 +0400 | [diff] [blame] | 8 | #include <linux/sizes.h> |
Darwin Rambo | 5d6c315 | 2014-02-11 11:06:33 -0800 | [diff] [blame] | 9 | |
Trevor Woerner | 43ec7e0 | 2019-05-03 09:41:00 -0400 | [diff] [blame] | 10 | #if !CONFIG_IS_ENABLED(SYS_DCACHE_OFF) |
Darwin Rambo | 5d6c315 | 2014-02-11 11:06:33 -0800 | [diff] [blame] | 11 | void enable_caches(void) |
| 12 | { |
| 13 | /* Enable D-cache. I-cache is already enabled in start.S */ |
| 14 | dcache_enable(); |
| 15 | } |
| 16 | #endif |