]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(imx8m): add ddr4 dvfs sw workaround for ERR050712
authorJacky Bai <ping.bai@nxp.com>
Tue, 16 Mar 2021 08:42:54 +0000 (16:42 +0800)
committerJacky Bai <ping.bai@nxp.com>
Tue, 28 Feb 2023 06:27:28 +0000 (14:27 +0800)
commite00fe11df3fee04c7f3137817294d464466dab22
tree6b4ce897827c97cfa229c617c336adbeccfccee6
parent0331b1c6111d198195298a2885dbd93cac1ad26a
fix(imx8m): add ddr4 dvfs sw workaround for ERR050712

APB Write data corruption following MRCTRL0.mr_wr=1 while
hardware-driven MR access is occurring

When performing a software driven MR access, the following
sequence must be done automatically before performing other
APB register accesses:

1. Set MRCTRL0.mr_wr=1
2. Check for MRSTAT.mr_wr_busy=0. If not, go to step (2)
3. Check for MRSTAT.mr_wr_busy=0 again (for the second time),
   if not, go to step (2).

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
Change-Id: Ie26e08bcc83d3ed4844ed04a853162308dcdccd0
plat/imx/imx8m/ddr/ddr4_dvfs.c