aboutsummaryrefslogtreecommitdiffstats
path: root/roms/u-boot/arch/arm/mach-mediatek/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'roms/u-boot/arch/arm/mach-mediatek/cpu.c')
-rw-r--r--roms/u-boot/arch/arm/mach-mediatek/cpu.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/roms/u-boot/arch/arm/mach-mediatek/cpu.c b/roms/u-boot/arch/arm/mach-mediatek/cpu.c
new file mode 100644
index 000000000..c329e7cc9
--- /dev/null
+++ b/roms/u-boot/arch/arm/mach-mediatek/cpu.c
@@ -0,0 +1,24 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2018 MediaTek Inc.
+ */
+
+#include <common.h>
+#include <cpu_func.h>
+#include <dm.h>
+#include <init.h>
+#include <wdt.h>
+#include <dm/uclass-internal.h>
+
+int arch_cpu_init(void)
+{
+ icache_enable();
+
+ return 0;
+}
+
+void enable_caches(void)
+{
+ /* Enable D-cache. I-cache is already enabled in start.S */
+ dcache_enable();
+}