The board is the T1042D4RDB. It's possible ECC is on. Maybe disabling that will prevent this error?
I have tried modifying drivers/ddr/fsl/ctrl_regs.c and by looking at chapter 14 of the manual, I would think setting d_init to 0 in set_ddr_sdram_cfg_2(), would give me what I want. Since when this isn't set, ddr_data_init isn't used. But this also results in a similar error. Most of the time it's stuck at:
"DDR Chip-Select Interleaving Mode: CS0+CS1"
But d_init clearly is the data initialization bit. In the same function I see ddr->ddr_data_init = CONFIG_MEM_INIT_VALUE; which is 0xdeadbeef. So I know I'm close but I can't see what else I need to set so I don't get an error.
Note: I also tried setting ecc_en to 1 in set_ddr_sdram_cfg() which also didn't help.