Skip to content
Snippets Groups Projects
Commit 03606ff4 authored by Michal Simek's avatar Michal Simek
Browse files

ARM: zynq: Show ECC status on the same line as DRAM size


Without this patch is DRAM size one line below DRAM:
which is not nice

Origin:
I2C:   ready
DRAM:  Memory: ECC disabled
1 GiB
MMC:   zynq_sdhci: 0

Fixed by this patch:
I2C:   ready
DRAM:  ECC disabled 1 GiB
MMC:   zynq_sdhci: 0

Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
Tested-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
parent 2b257216
No related branches found
No related tags found
Loading
...@@ -34,7 +34,7 @@ void zynq_ddrc_init(void) ...@@ -34,7 +34,7 @@ void zynq_ddrc_init(void)
/* ECC is enabled when memory is in 16bit mode and it is enabled */ /* ECC is enabled when memory is in 16bit mode and it is enabled */
if ((ecctype == ZYNQ_DDRC_ECC_SCRUBREG_ECCMODE_SECDED) && if ((ecctype == ZYNQ_DDRC_ECC_SCRUBREG_ECCMODE_SECDED) &&
(width == ZYNQ_DDRC_CTRLREG_BUSWIDTH_16BIT)) { (width == ZYNQ_DDRC_CTRLREG_BUSWIDTH_16BIT)) {
puts("Memory: ECC enabled\n"); puts("ECC enabled ");
/* /*
* Clear the first 1MB because it is not initialized from * Clear the first 1MB because it is not initialized from
* first stage bootloader. To get ECC to work all memory has * first stage bootloader. To get ECC to work all memory has
...@@ -42,6 +42,6 @@ void zynq_ddrc_init(void) ...@@ -42,6 +42,6 @@ void zynq_ddrc_init(void)
*/ */
memset((void *)0, 0, 1 * 1024 * 1024); memset((void *)0, 0, 1 * 1024 * 1024);
} else { } else {
puts("Memory: ECC disabled\n"); puts("ECC disabled ");
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment