plat: imx8mq: correct the reg offset of ddr type register
correct the ddr type register's offset.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
(cherry picked from commit 14ff6f1b629d0e321695c4f0735ae2d32c51239c)
diff --git a/plat/freescale/imx8mq/ddr/lpddr4_dvfs.c b/plat/freescale/imx8mq/ddr/lpddr4_dvfs.c
index c8a8dfd..4cb525b 100644
--- a/plat/freescale/imx8mq/ddr/lpddr4_dvfs.c
+++ b/plat/freescale/imx8mq/ddr/lpddr4_dvfs.c
@@ -30,7 +30,7 @@
static inline int get_ddr_type(void)
{
- return mmio_read_32(IMX_DDRC_BASE + DDRC_MSTR(0)) & DDR_TYPE_MASK;
+ return mmio_read_32(DDRC_MSTR(0)) & DDR_TYPE_MASK;
}
void lpddr4_switch_to_3200(void)