mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-03 21:48:15 +00:00 
			
		
		
		
	Use the ZDMA channel 0 to initialize the DRAM banks. This avoid spurious ECC errors that can occur when accessing unitialized memory. The feature is enabled by setting the option CONFIG_SPL_ZYNQMP_DRAM_ECC_INIT and providing the following data: SPL_ZYNQMP_DRAM_BANK1_BASE: start of memory to initialize SPL_ZYNQMP_DRAM_BANK1_LEN : len of memory to initialize (hex) SPL_ZYNQMP_DRAM_BANK2_BASE: start of memory to initialize SPL_ZYNQMP_DRAM_BANK2_LEN : len of memory to initialize (hex) Setting SPL_ZYNQMP_DRAM_BANK_LEN to 0 takes no action. Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
		
			
				
	
	
		
			14 lines
		
	
	
		
			236 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			236 B
		
	
	
	
		
			C
		
	
	
	
	
	
/* SPDX-License-Identifier: MIT */
 | 
						|
/*
 | 
						|
 *  Copyright(c) 2015 - 2020 Xilinx, Inc.
 | 
						|
 *
 | 
						|
 *  Jorge Ramirez-Ortiz <jorge@foundries.io>
 | 
						|
 */
 | 
						|
 | 
						|
#ifndef __ARCH_ZYNQMP_ECC_INIT_H
 | 
						|
#define __ARCH_ZYNQMP_ECC_INIT_H
 | 
						|
 | 
						|
void zynqmp_ecc_init(void);
 | 
						|
 | 
						|
#endif
 |