Commit ae126e71 authored by Jacky Bai's avatar Jacky Bai

MLK-21219 plat: imx8m: fix the ddr4 retention hang

Fix the ddr4 retention exit hang caused by improper
init flow.
Signed-off-by: default avatarJacky Bai <ping.bai@nxp.com>
parent 1a43400e
...@@ -144,6 +144,7 @@ void ddr4_exit_retention(void) ...@@ -144,6 +144,7 @@ void ddr4_exit_retention(void)
mmio_clrbits_32(DDRC_DFIMISC(0), 1); mmio_clrbits_32(DDRC_DFIMISC(0), 1);
mmio_write_32(SRC_DDRC_RCR_ADDR, 0x8F000004); mmio_write_32(SRC_DDRC_RCR_ADDR, 0x8F000004);
mmio_write_32(SRC_DDRC_RCR_ADDR, 0x8F000000); /* release all reset */ mmio_write_32(SRC_DDRC_RCR_ADDR, 0x8F000000); /* release all reset */
mmio_write_32(DDRC_DBG1(0), 0x00000000);
/* restore the ddr phy config */ /* restore the ddr phy config */
dram_phy_init(); dram_phy_init();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment