diff options
author | Jacky Bai <ping.bai@nxp.com> | 2020-01-07 16:44:46 +0800 |
---|---|---|
committer | Jacky Bai <ping.bai@nxp.com> | 2020-02-09 20:58:49 +0800 |
commit | e73e454d11dab13a87b6068a24509a1f118ac812 (patch) | |
tree | bdbef88443b7359053a13ab066877e75e762c9a3 /plat/imx/imx8m/ddr/clock.c | |
parent | 059a9519ad1cb49f3c04210d59e89773221704a3 (diff) |
plat: imx8mq: Add the dram retention support for imx8mq
Add the dram retention support for i.MX8MQ. As there is
no enough ocram space available before entering TF-A,
so the timing info need to be copied from dram into ocram.
Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Diffstat (limited to 'plat/imx/imx8m/ddr/clock.c')
-rw-r--r-- | plat/imx/imx8m/ddr/clock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plat/imx/imx8m/ddr/clock.c b/plat/imx/imx8m/ddr/clock.c index c462bb45..b724d2f6 100644 --- a/plat/imx/imx8m/ddr/clock.c +++ b/plat/imx/imx8m/ddr/clock.c @@ -73,7 +73,7 @@ void dram_pll_init(unsigned int drate) /* unbypass the PLL */ mmio_clrbits_32(HW_DRAM_PLL_CFG0, 0x30); - while(!(mmio_read_32(HW_DRAM_PLL_CFG0) & (1 << 31))) + while(!(mmio_read_32(HW_DRAM_PLL_CFG0) & BIT(31))) ; } #else |