2009-12-18 06:03:51 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2009 Samsung Electronics
|
|
|
|
* Minkyu Kang <mk7.kang@samsung.com>
|
|
|
|
*
|
2010-06-18 04:50:01 +00:00
|
|
|
* based on arch/arm/cpu/armv7/omap3/cache.S
|
2009-12-18 06:03:51 +00:00
|
|
|
*
|
2013-07-08 07:37:19 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2009-12-18 06:03:51 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
.align 5
|
|
|
|
|
2012-03-08 07:20:18 +00:00
|
|
|
#include <linux/linkage.h>
|
|
|
|
|
2011-06-16 23:30:54 +00:00
|
|
|
#ifndef CONFIG_SYS_L2CACHE_OFF
|
2012-03-08 07:20:18 +00:00
|
|
|
ENTRY(v7_outer_cache_enable)
|
2009-12-18 06:03:51 +00:00
|
|
|
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}
|
2012-03-08 07:20:18 +00:00
|
|
|
ENDPROC(v7_outer_cache_enable)
|
2009-12-18 06:03:51 +00:00
|
|
|
|
2012-03-08 07:20:18 +00:00
|
|
|
ENTRY(v7_outer_cache_disable)
|
2009-12-18 06:03:51 +00:00
|
|
|
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}
|
2012-03-08 07:20:18 +00:00
|
|
|
ENDPROC(v7_outer_cache_disable)
|
2011-06-16 23:30:54 +00:00
|
|
|
#endif
|