summaryrefslogtreecommitdiff
path: root/plat/imx/imx8m/ddr/ddr4_dvfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'plat/imx/imx8m/ddr/ddr4_dvfs.c')
-rw-r--r--plat/imx/imx8m/ddr/ddr4_dvfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plat/imx/imx8m/ddr/ddr4_dvfs.c b/plat/imx/imx8m/ddr/ddr4_dvfs.c
index 4f55d2fe..86347928 100644
--- a/plat/imx/imx8m/ddr/ddr4_dvfs.c
+++ b/plat/imx/imx8m/ddr/ddr4_dvfs.c
@@ -180,8 +180,8 @@ void ddr4_swffc(struct dram_info *dram_info, unsigned int pstate)
* 12. Wait until STAT.operating_mode[1:0]!=11 indicating that the
* controller is not in self-refresh mode.
*/
- while ((mmio_read_32(DDRC_STAT(0)) & 0x3) == 0x3)
- ;
+ if ((mmio_read_32(DDRC_STAT(0)) & 0x3) == 0x3)
+ printf("C: Error DRAM should not in Self Refresh\n");
/*
* 13. Assert PWRCTL.selfref_sw for the DWC_ddr_umctl2 core to enter