summaryrefslogtreecommitdiffstats
path: root/arch/arm/cpu/armv7/kona-common/hwinit-common.c
diff options
context:
space:
mode:
authorDarwin Rambo <drambo@broadcom.com>2014-02-11 11:06:33 -0800
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2014-02-22 19:30:18 +0100
commitb3134fce890754ceb33fe79d7b0d8f78ee83129f (patch)
tree560a4e0b41be662231458c2faf93df7f3048c126 /arch/arm/cpu/armv7/kona-common/hwinit-common.c
parent1998a1a6c32d5e3ed729e0e08867d6f8fa97df50 (diff)
downloadblackbird-obmc-uboot-b3134fce890754ceb33fe79d7b0d8f78ee83129f.tar.gz
blackbird-obmc-uboot-b3134fce890754ceb33fe79d7b0d8f78ee83129f.zip
arch: kona: Initial commit of kona-common architecture code
The Kona architecture is present on a number of Broadcom mobile SoCs including the bcm281xx family of chips. Signed-off-by: Darwin Rambo <drambo@broadcom.com> Reviewed-by: Steve Rae <srae@broadcom.com> Reviewed-by: Tim Kryger <tkryger@linaro.org>
Diffstat (limited to 'arch/arm/cpu/armv7/kona-common/hwinit-common.c')
-rw-r--r--arch/arm/cpu/armv7/kona-common/hwinit-common.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/kona-common/hwinit-common.c b/arch/arm/cpu/armv7/kona-common/hwinit-common.c
new file mode 100644
index 0000000000..f8b1e063cd
--- /dev/null
+++ b/arch/arm/cpu/armv7/kona-common/hwinit-common.c
@@ -0,0 +1,16 @@
+/*
+ * Copyright 2013 Broadcom Corporation.
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#include <common.h>
+#include <asm/sizes.h>
+
+#ifndef CONFIG_SYS_DCACHE_OFF
+void enable_caches(void)
+{
+ /* Enable D-cache. I-cache is already enabled in start.S */
+ dcache_enable();
+}
+#endif
OpenPOWER on IntegriCloud