summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-kirkwood/cache.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2015-02-20 17:04:06 +0900
committerTom Rini <trini@ti.com>2015-02-21 08:23:51 -0500
commit56f86e39e80c5cbb17bec42cf6931cd203176830 (patch)
treeffbea779443e952e83c1515b51238bca64353a35 /arch/arm/mach-kirkwood/cache.c
parent601fbec7cf815bc2b26ba2546ac5e8501fc7edae (diff)
downloadblackbird-obmc-uboot-56f86e39e80c5cbb17bec42cf6931cd203176830.tar.gz
blackbird-obmc-uboot-56f86e39e80c5cbb17bec42cf6931cd203176830.zip
ARM: kirkwood: move SOC sources to mach-kirkwood
Move arch/arm/cpu/arm926ejs/kirkwood/* -> arch/arm/mach-kirkwood/* Note: Perhaps, can we merge arch/arm/mach-kirkwood and arch/arm/mvebu-common into arch/arm/mach-mvebu, like Linux? Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by: Stefan Roese <sr@denx.de> Cc: Prafulla Wadaskar <prafulla@marvell.com> Cc: Luka Perkov <luka.perkov@sartura.hr>
Diffstat (limited to 'arch/arm/mach-kirkwood/cache.c')
-rw-r--r--arch/arm/mach-kirkwood/cache.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/mach-kirkwood/cache.c b/arch/arm/mach-kirkwood/cache.c
new file mode 100644
index 0000000000..e18a3097dc
--- /dev/null
+++ b/arch/arm/mach-kirkwood/cache.c
@@ -0,0 +1,19 @@
+/*
+ * Copyright (c) 2012 Michael Walle
+ * Michael Walle <michael@walle.cc>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+#include <common.h>
+#include <asm/arch/cpu.h>
+
+#define FEROCEON_EXTRA_FEATURE_L2C_EN (1<<22)
+
+void l2_cache_disable()
+{
+ u32 ctrl;
+
+ ctrl = readfr_extra_feature_reg();
+ ctrl &= ~FEROCEON_EXTRA_FEATURE_L2C_EN;
+ writefr_extra_feature_reg(ctrl);
+}
OpenPOWER on IntegriCloud