mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 02:15:45 +01:00 
			
		
		
		
	zynq: Use arch_cpu_init() instead of lowlevel_init()
Zynq lowlevel_init() was implemented in C but stack pointer is setup after function call in _main(). Move architecture setup to arch_cpu_init() which is call as the first function in board_init_f() which already have correct stack pointer. Reported-by: Sven Schwermer <sven.schwermer@tuhh.de> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
		
				
					committed by
					
						 Albert ARIBAUD
						Albert ARIBAUD
					
				
			
			
				
	
			
			
			
						parent
						
							183acb7003
						
					
				
				
					commit
					262f08d6ea
				
			| @@ -10,6 +10,10 @@ | ||||
| #include <asm/arch/hardware.h> | ||||
|  | ||||
| void lowlevel_init(void) | ||||
| { | ||||
| } | ||||
|  | ||||
| int arch_cpu_init(void) | ||||
| { | ||||
| 	zynq_slcr_unlock(); | ||||
| 	/* remap DDR to zero, FILTERSTART */ | ||||
| @@ -31,6 +35,8 @@ void lowlevel_init(void) | ||||
| 	writel(0xC, &slcr_base->ddr_urgent); | ||||
|  | ||||
| 	zynq_slcr_lock(); | ||||
|  | ||||
| 	return 0; | ||||
| } | ||||
|  | ||||
| void reset_cpu(ulong addr) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user