mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-10-31 03:58:17 +00:00 
			
		
		
		
	Currently CPU_V7 kconfig symbol supports only ARMv7A architectures under armv7 folder. This led to a misconception of creating separate folders for armv7m and armv7r. There is no reason to create separate folder for other armv7 based architectures when it can co-exist with few Kconfig symbols. As a first step towards a common folder, rename CPU_V7 as CPUV7A. Later separate Kconfig symbols can be added for CPU_V7R and CPU_V7M and can co exist in the same folder. Reviewed-by: Tom Rini <trini@konsulko.com> Tested-by: Michal Simek <michal.simek@xilinx.com> Suggested-by: Alexander Graf <agraf@suse.de> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
		
			
				
	
	
		
			35 lines
		
	
	
		
			798 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			798 B
		
	
	
	
		
			C
		
	
	
	
	
	
| // SPDX-License-Identifier: GPL-2.0+
 | |
| /*
 | |
|  * Copyright (c) 2010 Samsung Electronics.
 | |
|  * Minkyu Kang <mk7.kang@samsung.com>
 | |
|  */
 | |
| 
 | |
| #include <common.h>
 | |
| #include <asm/io.h>
 | |
| #include <asm/system.h>
 | |
| 
 | |
| #ifdef CONFIG_TARGET_ESPRESSO7420
 | |
| /*
 | |
|  * Exynos7420 uses CPU0 of Cluster-1 as boot CPU. Due to this, branch_if_master
 | |
|  * fails to identify as the boot CPU as the master CPU. As temporary workaround,
 | |
|  * setup the slave CPU boot address as "_main".
 | |
|  */
 | |
| extern void _main(void);
 | |
| void *secondary_boot_addr = (void *)_main;
 | |
| #endif /* CONFIG_TARGET_ESPRESSO7420 */
 | |
| 
 | |
| void reset_cpu(ulong addr)
 | |
| {
 | |
| #ifdef CONFIG_CPU_V7A
 | |
| 	writel(0x1, samsung_get_base_swreset());
 | |
| #endif
 | |
| }
 | |
| 
 | |
| #ifndef CONFIG_SYS_DCACHE_OFF
 | |
| void enable_caches(void)
 | |
| {
 | |
| 	/* Enable D-cache. I-cache is already enabled in start.S */
 | |
| 	dcache_enable();
 | |
| }
 | |
| #endif
 |