summaryrefslogtreecommitdiff
path: root/drivers/ddr/imx/imx8m
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-01-25 09:02:35 -0500
committerTom Rini <trini@konsulko.com>2021-01-25 09:02:35 -0500
commit4057b98ff2f3fd112f05024cad5ccf970fa9bed4 (patch)
treeaa18deef065e5469986c3326733c03e01fd914c2 /drivers/ddr/imx/imx8m
parent7f10b8eed450fcac6296ef53432d3b30c407cc39 (diff)
parent4f37aa957939937f9f5b472f829ab81ef13c479a (diff)
Merge tag 'u-boot-imx-20210125' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx
Changes for 2020.04 ------------------- - new board: Phytec phyCORE-i.MX8MP i.MX8MN Beacon EmbeddedWorks devkit - Fixes: several nanbcb fixes fix for imx8mm_beacon - further switch to distro boot commands - DM: DM Ether for MX6UL CI: https://gitlab.denx.de/u-boot/custodians/u-boot-imx/-/pipelines/6013
Diffstat (limited to 'drivers/ddr/imx/imx8m')
-rw-r--r--drivers/ddr/imx/imx8m/ddr_init.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/ddr/imx/imx8m/ddr_init.c b/drivers/ddr/imx/imx8m/ddr_init.c
index 99a67edfb0a..b70bcc383fa 100644
--- a/drivers/ddr/imx/imx8m/ddr_init.c
+++ b/drivers/ddr/imx/imx8m/ddr_init.c
@@ -235,8 +235,6 @@ int ddr_init(struct dram_timing_info *dram_timing)
/* Step26: Set back register in Step4 to the original values if desired */
reg32_write(DDRC_RFSHCTL3(0), 0x0000000);
- /* enable selfref_en by default */
- setbits_le32(DDRC_PWRCTL(0), 0x1);
/* enable port 0 */
reg32_write(DDRC_PCTRL_0(0), 0x00000001);
@@ -244,6 +242,9 @@ int ddr_init(struct dram_timing_info *dram_timing)
board_dram_ecc_scrub();
+ /* enable selfref_en by default */
+ setbits_le32(DDRC_PWRCTL(0), 0x1);
+
/* save the dram timing config into memory */
dram_config_save(dram_timing, CONFIG_SAVED_DRAM_TIMING_BASE);