blob: cfc7c9fbc64bb6b4bcb6c0c4f8a92b88aa26645e [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Darwin Rambo5d6c3152014-02-11 11:06:33 -08002/*
3 * Copyright 2013 Broadcom Corporation.
Darwin Rambo5d6c3152014-02-11 11:06:33 -08004 */
5
6#include <common.h>
Simon Glass1d91ba72019-11-14 12:57:37 -07007#include <cpu_func.h>
Simon Glass274e0b02020-05-10 11:39:56 -06008#include <asm/cache.h>
Alexey Brodkin267d8e22014-02-26 17:47:58 +04009#include <linux/sizes.h>
Darwin Rambo5d6c3152014-02-11 11:06:33 -080010
Trevor Woerner43ec7e02019-05-03 09:41:00 -040011#if !CONFIG_IS_ENABLED(SYS_DCACHE_OFF)
Darwin Rambo5d6c3152014-02-11 11:06:33 -080012void enable_caches(void)
13{
14 /* Enable D-cache. I-cache is already enabled in start.S */
15 dcache_enable();
16}
17#endif