mirror of
https://xff.cz/git/u-boot/
synced 2025-10-18 16:32:07 +02:00
driver/ddr/fsl: Add workaround for erratum A-009801
The initial training for the DDRC may provide results that are not optimized. The workaround provides better read timing margins. Signed-off-by: Shengzhou Liu <Shengzhou.Liu@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
This commit is contained in:
@@ -251,6 +251,13 @@ void fsl_ddr_set_memctl_regs(const fsl_ddr_cfg_regs_t *regs,
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SYS_FSL_ERRATUM_A009801
|
||||
temp32 = ddr_in32(&ddr->debug[25]);
|
||||
temp32 &= ~DDR_CAS_TO_PRE_SUB_MASK;
|
||||
temp32 |= 9 << DDR_CAS_TO_PRE_SUB_SHIFT;
|
||||
ddr_out32(&ddr->debug[25], temp32);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SYS_FSL_ERRATUM_A009942
|
||||
ddr_freq = get_ddr_freq(ctrl_num) / 1000000;
|
||||
tmp = ddr_in32(&ddr->debug[28]);
|
||||
|
Reference in New Issue
Block a user