]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
feat(imx8m): fix the ddr4 dvfs random hang on imx8m
authorJacky Bai <ping.bai@nxp.com>
Mon, 13 Apr 2020 03:07:40 +0000 (11:07 +0800)
committerJacky Bai <ping.bai@nxp.com>
Mon, 27 Feb 2023 03:20:23 +0000 (11:20 +0800)
Remove the while loop waiting in step12 to align with what
we did before, just use a 'if' condition check for debug
purpose.

Tested-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Change-Id: Id2685c5f628270a24944470d675a5c8706f39f13

plat/imx/imx8m/ddr/ddr4_dvfs.c

index cdc7dc2ddba64e0900c65e6ffacddecab957535c..3ee68e4f2e366fc1165573450ac08f19ebd2b484 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2018-2022 NXP
+ * Copyright 2018-2023 NXP
  *
  * SPDX-License-Identifier: BSD-3-Clause
  */
@@ -189,8 +189,8 @@ void ddr4_swffc(struct dram_info *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) {
+               VERBOSE("DRAM is in Self Refresh\n");
        }
 
        /*