]> Git Repo - J-u-boot.git/blob - arch/arm/mach-exynos/soc.c
Merge patch series "Complete decoupling of zboot logic from commands"
[J-u-boot.git] / arch / arm / mach-exynos / soc.c
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Copyright (c) 2010 Samsung Electronics.
4  * Minkyu Kang <[email protected]>
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 #include <asm/arch/cpu.h>
13
14 #ifdef CONFIG_TARGET_ESPRESSO7420
15 /*
16  * Exynos7420 uses CPU0 of Cluster-1 as boot CPU. Due to this, branch_if_master
17  * fails to identify as the boot CPU as the master CPU. As temporary workaround,
18  * setup the slave CPU boot address as "_main".
19  */
20 extern void _main(void);
21 void *secondary_boot_addr = (void *)_main;
22 #endif /* CONFIG_TARGET_ESPRESSO7420 */
23
24 #if !CONFIG_IS_ENABLED(SYSRESET)
25 void reset_cpu(void)
26 {
27 #ifdef CONFIG_CPU_V7A
28         writel(0x1, samsung_get_base_swreset());
29 #endif
30 }
31 #endif
32
33 #if !CONFIG_IS_ENABLED(SYS_DCACHE_OFF)
34 void enable_caches(void)
35 {
36         /* Enable D-cache. I-cache is already enabled in start.S */
37         dcache_enable();
38 }
39 #endif
This page took 0.02613 seconds and 4 git commands to generate.