mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
ARM: zynq: ddrc: Setup half of memory only for ECC case
Setup half of memory from ram_size for ECC case. All the time the same board can be configured with or without ECC. Based on ECC case detection use half of memory with the same configuration. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
555c7c066f
commit
3ad87ca182
1 changed files with 2 additions and 0 deletions
|
@ -42,6 +42,8 @@ void zynq_ddrc_init(void)
|
|||
*/
|
||||
/* cppcheck-suppress nullPointer */
|
||||
memset((void *)0, 0, 1 * 1024 * 1024);
|
||||
|
||||
gd->ram_size /= 2;
|
||||
} else {
|
||||
puts("ECC disabled ");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue