diff options
Diffstat (limited to 'roms/u-boot/arch/arm/cpu/armv7/s5pc1xx/cache.S')
| -rw-r--r-- | roms/u-boot/arch/arm/cpu/armv7/s5pc1xx/cache.S | 30 | 
1 files changed, 30 insertions, 0 deletions
| diff --git a/roms/u-boot/arch/arm/cpu/armv7/s5pc1xx/cache.S b/roms/u-boot/arch/arm/cpu/armv7/s5pc1xx/cache.S new file mode 100644 index 00000000..3089592e --- /dev/null +++ b/roms/u-boot/arch/arm/cpu/armv7/s5pc1xx/cache.S @@ -0,0 +1,30 @@ +/* + * 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 | 
