Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Andy Yan | 2d982da | 2017-06-01 18:00:55 +0800 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2016 Rockchip Electronics Co., Ltd |
| 4 | * Author: Andy Yan <andy.yan@rock-chips.com> |
Andy Yan | 2d982da | 2017-06-01 18:00:55 +0800 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include <common.h> |
| 8 | |
Trevor Woerner | 43ec7e0 | 2019-05-03 09:41:00 -0400 | [diff] [blame] | 9 | #if !CONFIG_IS_ENABLED(SYS_DCACHE_OFF) |
Andy Yan | 2d982da | 2017-06-01 18:00:55 +0800 | [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 |