ddr: socfpga: Disable the useeccasdata when ECC is enabled
PATCH 1/1 ddr: socfpga: Disable the useeccasdata when ECC is enabled
From: Tien Fong Chee <[email protected]>
This field allows the FPGA ports to directly access the extra data bits that are normally used to hold the ECC code, so this field must be clear when it's used for ECC data.
Signed-off-by Tien Fong Chee <[email protected]>
Signed-off-by Teik Heng Chong <[email protected]>
--- drivers/ddr/altera/sdram_gen5.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/ddr/altera/sdram_gen5.c +3 -0
@@ -659,6 +659,9 @@ static int altera_gen5_sdram_probe(struct udevice *dev)debug ("SDRAM: %ld MiB\n" , sdram_size >>20 );if (sdram_is_ecc_enabled (sdr_ctrl)) { +/* Must set USEECCASDATA to 0 if ECC is enabled */ +clrbits_le32 (&sdr_ctrl->static_cfg, +SDR_CTRLGRP_STATICCFG_USEECCASDATA_MASK );sdram_init_ecc_bits (sdram_size); }
Signature · 1 line
2.26.2