mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
drivers: ddr: imx Workaround for i.MX8M DDRPHY rank to rank issue
Add logic to automatically update umctl2's setting based on phy training CDD value for rank to rank space issue Acked-by: Ye Li <ye.li@nxp.com> Signed-off-by: Oliver Chen <Oliver.Chen@nxp.com> Signed-off-by: Jacky Bai <ping.bai@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
parent
3f63d27c17
commit
b335966958
4 changed files with 177 additions and 0 deletions
|
@ -190,6 +190,9 @@ int ddr_init(struct dram_timing_info *dram_timing)
|
|||
/* Step15: Set SWCTL.sw_done to 0 */
|
||||
reg32_write(DDRC_SWCTL(0), 0x00000000);
|
||||
|
||||
/* Apply rank-to-rank workaround */
|
||||
update_umctl2_rank_space_setting(dram_timing->fsp_msg_num - 1);
|
||||
|
||||
/* Step16: Set DFIMISC.dfi_init_start to 1 */
|
||||
setbits_le32(DDRC_DFIMISC(0), (0x1 << 5));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue