diff options
author | Robert Baldyga <r.baldyga@samsung.com> | 2014-09-19 12:17:55 +0200 |
---|---|---|
committer | Minkyu Kang <mk7.kang@samsung.com> | 2014-10-08 19:42:04 +0900 |
commit | dab067c32307d7f78ab00ef19690fecbc3ad607a (patch) | |
tree | 73002a9bd0eca44898b5e0f07f0f59d8e0ec01a9 /arch/arm/cpu/armv7/s5pc1xx/cache.S | |
parent | 2ecd779742e3eda5b8d1355b56ddc1ea836c8407 (diff) | |
download | u-boot-dab067c32307d7f78ab00ef19690fecbc3ad607a.tar.gz |
armv7: s5pc1xx: improve cache handling
Move cache handling code to C file, and add enable_caches() and
disable_caches() functions.
Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'arch/arm/cpu/armv7/s5pc1xx/cache.S')
-rw-r--r-- | arch/arm/cpu/armv7/s5pc1xx/cache.S | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/arch/arm/cpu/armv7/s5pc1xx/cache.S b/arch/arm/cpu/armv7/s5pc1xx/cache.S deleted file mode 100644 index 3089592eb1..0000000000 --- a/arch/arm/cpu/armv7/s5pc1xx/cache.S +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (C) 2009 Samsung Electronics - * Minkyu Kang <mk7.kang@samsung.com> - * - * based on arch/arm/cpu/armv7/omap3/cache.S - * - * SPDX-License-Identifier: GPL-2.0+ - */ - -.align 5 - -#include <linux/linkage.h> - -#ifndef CONFIG_SYS_L2CACHE_OFF -ENTRY(v7_outer_cache_enable) - push {r0, r1, r2, lr} - mrc 15, 0, r3, cr1, cr0, 1 - orr r3, r3, #2 - mcr 15, 0, r3, cr1, cr0, 1 - pop {r1, r2, r3, pc} -ENDPROC(v7_outer_cache_enable) - -ENTRY(v7_outer_cache_disable) - push {r0, r1, r2, lr} - mrc 15, 0, r3, cr1, cr0, 1 - bic r3, r3, #2 - mcr 15, 0, r3, cr1, cr0, 1 - pop {r1, r2, r3, pc} -ENDPROC(v7_outer_cache_disable) -#endif |