1 // SPDX-License-Identifier: GPL-2.0 2 /* 3 * Copyright (C) 2018 MediaTek Inc. 4 */ 5 6 #include <common.h> 7 #include <cpu_func.h> 8 #include <dm.h> 9 #include <init.h> 10 #include <wdt.h> 11 #include <dm/uclass-internal.h> 12 arch_cpu_init(void)13int arch_cpu_init(void) 14 { 15 icache_enable(); 16 17 return 0; 18 } 19 enable_caches(void)20void enable_caches(void) 21 { 22 /* Enable D-cache. I-cache is already enabled in start.S */ 23 dcache_enable(); 24 } 25