]> git.ipfire.org Git - people/ms/u-boot.git/blame - arch/arm/cpu/armv7/s5pc1xx/cache.S
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / arch / arm / cpu / armv7 / s5pc1xx / cache.S
CommitLineData
d8e5f554
MK
1/*
2 * Copyright (C) 2009 Samsung Electronics
3 * Minkyu Kang <mk7.kang@samsung.com>
4 *
f56348af 5 * based on arch/arm/cpu/armv7/omap3/cache.S
d8e5f554 6 *
1a459660 7 * SPDX-License-Identifier: GPL-2.0+
d8e5f554
MK
8 */
9
d8e5f554 10.align 5
d8e5f554 11
74236aca
A
12#include <linux/linkage.h>
13
137db2d7 14#ifndef CONFIG_SYS_L2CACHE_OFF
74236aca 15ENTRY(v7_outer_cache_enable)
d8e5f554
MK
16 push {r0, r1, r2, lr}
17 mrc 15, 0, r3, cr1, cr0, 1
18 orr r3, r3, #2
19 mcr 15, 0, r3, cr1, cr0, 1
20 pop {r1, r2, r3, pc}
74236aca 21ENDPROC(v7_outer_cache_enable)
d8e5f554 22
74236aca 23ENTRY(v7_outer_cache_disable)
d8e5f554
MK
24 push {r0, r1, r2, lr}
25 mrc 15, 0, r3, cr1, cr0, 1
26 bic r3, r3, #2
27 mcr 15, 0, r3, cr1, cr0, 1
28 pop {r1, r2, r3, pc}
74236aca 29ENDPROC(v7_outer_cache_disable)
137db2d7 30#endif