1 // SPDX-License-Identifier: GPL-2.0+ 2 /* 3 * Copyright (c) 2010 Samsung Electronics. 4 * Minkyu Kang <mk7.kang@samsung.com> 5 */ 6 7 #include <common.h> 8 #include <cpu_func.h> 9 #include <asm/cache.h> 10 #include <asm/io.h> 11 #include <asm/system.h> 12 13 #ifdef CONFIG_TARGET_ESPRESSO7420 14 /* 15 * Exynos7420 uses CPU0 of Cluster-1 as boot CPU. Due to this, branch_if_master 16 * fails to identify as the boot CPU as the master CPU. As temporary workaround, 17 * setup the slave CPU boot address as "_main". 18 */ 19 extern void _main(void); 20 void *secondary_boot_addr = (void *)_main; 21 #endif /* CONFIG_TARGET_ESPRESSO7420 */ 22 reset_cpu(void)23void reset_cpu(void) 24 { 25 #ifdef CONFIG_CPU_V7A 26 writel(0x1, samsung_get_base_swreset()); 27 #endif 28 } 29 30 #if !CONFIG_IS_ENABLED(SYS_DCACHE_OFF) enable_caches(void)31void enable_caches(void) 32 { 33 /* Enable D-cache. I-cache is already enabled in start.S */ 34 dcache_enable(); 35 } 36 #endif 37