]> git.dujemihanovic.xyz Git - u-boot.git/commit
imx: ddr: imx8m: Move selfref_en after DDR scrub
authorYe Li <ye.li@nxp.com>
Wed, 30 Sep 2020 04:55:32 +0000 (21:55 -0700)
committerStefano Babic <sbabic@denx.de>
Sat, 23 Jan 2021 10:30:30 +0000 (11:30 +0100)
commit7c4f9b37556e8519216c4fd94913c9374d1ab610
tree8aaf451caa443ce47a6857f74a909318db0e123e
parent846b77e7df4b0c24ed9f3bbc3c1d88aa03265f7c
imx: ddr: imx8m: Move selfref_en after DDR scrub

When doing DDR scrub, the DDR may enter into self refresh if the
selfref_en is enabled before DDR scrub. This will cause scrub
can't complete that SBRSTAT.scrub_done won't be set.

Since the selfref_en can be programmed during the course of
normal operation, move it after DDR scrub

Signed-off-by: Ye Li <ye.li@nxp.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/ddr/imx/imx8m/ddr_init.c