mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-12 07:57:21 +00:00
01c7714a7b
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>
13 lines
236 B
C
13 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
|