2 * Copyright (C) 2014 Samsung Electronics
3 * Minkyu Kang <mk7.kang@samsung.com>
4 * Robert Baldyga <r.baldyga@samsung.com>
6 * based on arch/arm/cpu/armv7/omap3/cache.S
8 * SPDX-License-Identifier: GPL-2.0+
13 #ifndef CONFIG_SYS_DCACHE_OFF
14 void enable_caches(void)
19 void disable_caches(void)
25 #ifndef CONFIG_SYS_L2CACHE_OFF
26 void v7_outer_cache_enable(void)
29 "push {r0, r1, r2, lr}\n\t"
30 "mrc 15, 0, r3, cr1, cr0, 1\n\t"
32 "mcr 15, 0, r3, cr1, cr0, 1\n\t"
33 "pop {r1, r2, r3, pc}"
37 void v7_outer_cache_disable(void)
40 "push {r0, r1, r2, lr}\n\t"
41 "mrc 15, 0, r3, cr1, cr0, 1\n\t"
43 "mcr 15, 0, r3, cr1, cr0, 1\n\t"
44 "pop {r1, r2, r3, pc}"