Commit 0bbdb5b4 authored by Peng Fan's avatar Peng Fan Committed by Jason Liu
Browse files

MLK-15323-4: imx8m: evk: invoke board_late_mmc_env_init



Invoke board_late_mmc_init to support dynamically changing mmcroot.
Add board_mmc_get_env_dev to read/save env into correct mmc/sd device.
Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
parent 43eb1a83
......@@ -127,11 +127,11 @@ void lpddr4_800MHz_cfg_umctl2(void)
/* performance setting */
dwc_ddrphy_apb_wr(DDRC_ODTCFG(0), 0x0b060908);
dwc_ddrphy_apb_wr(DDRC_ODTMAP(0), 0x00000000);
dwc_ddrphy_apb_wr(DDRC_SCHED(0), 0x29511505);
dwc_ddrphy_apb_wr(DDRC_SCHED1(0), 0x0000002c);
dwc_ddrphy_apb_wr(DDRC_PERFHPR1(0), 0x5900575b);
dwc_ddrphy_apb_wr(DDRC_PERFLPR1(0), 0x900093e7);
dwc_ddrphy_apb_wr(DDRC_PERFWR1(0), 0x02005574);
dwc_ddrphy_apb_wr(DDRC_SCHED(0), 0x00001005);
dwc_ddrphy_apb_wr(DDRC_SCHED1(0), 0x00000040);
dwc_ddrphy_apb_wr(DDRC_PERFHPR1(0), 0x20000800);
dwc_ddrphy_apb_wr(DDRC_PERFLPR1(0), 0x20000800);
dwc_ddrphy_apb_wr(DDRC_PERFWR1(0), 0x20000800);
dwc_ddrphy_apb_wr(DDRC_DBG0(0), 0x00000016);
dwc_ddrphy_apb_wr(DDRC_DBG1(0), 0x00000000);
dwc_ddrphy_apb_wr(DDRC_DBGCMD(0), 0x00000000);
......
......@@ -375,7 +375,9 @@ int board_late_init(void)
set_wdog_reset(wdog);
#ifdef CONFIG_ENV_IS_IN_MMC
board_late_mmc_env_init();
#endif
return 0;
}
......
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