summaryrefslogtreecommitdiff
path: root/arch/arm/mach-rockchip/rv1108/rv1108.c
diff options
context:
space:
mode:
authorAndy Yan <andy.yan@rock-chips.com>2017-06-01 10:00:55 (GMT)
committerSimon Glass <sjg@chromium.org>2017-06-07 13:29:25 (GMT)
commit2c1e11dd52e7d1db79b33e3e4c2fded573b70a9d (patch)
treea9455228f9398503057b848850b5ec2303e99895 /arch/arm/mach-rockchip/rv1108/rv1108.c
parentbae2f282a96e400a2bbcc8a545598289f36e1c32 (diff)
downloadu-boot-fsl-qoriq-2c1e11dd52e7d1db79b33e3e4c2fded573b70a9d.tar.xz
rockchip: Add core Soc start-up code for rv1108
RV1108 is embedded with an ARM Cortex-A7 single core and a DSP core from Rockchip. It is designed for varies application scenario such as car DVR, sports DV, secure camera and UAV camera. Signed-off-by: Andy Yan <andy.yan@rock-chips.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/arm/mach-rockchip/rv1108/rv1108.c')
-rw-r--r--arch/arm/mach-rockchip/rv1108/rv1108.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/mach-rockchip/rv1108/rv1108.c b/arch/arm/mach-rockchip/rv1108/rv1108.c
new file mode 100644
index 0000000..868cdd5
--- /dev/null
+++ b/arch/arm/mach-rockchip/rv1108/rv1108.c
@@ -0,0 +1,15 @@
+/*
+ * (C) Copyright 2016 Rockchip Electronics Co., Ltd
+ * Author: Andy Yan <andy.yan@rock-chips.com>
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#include <common.h>
+
+#ifndef CONFIG_SYS_DCACHE_OFF
+void enable_caches(void)
+{
+ /* Enable D-cache. I-cache is already enabled in start.S */
+ dcache_enable();
+}
+#endif