diff options
author | Bai Ping <ping.bai@nxp.com> | 2018-03-07 16:09:41 +0800 |
---|---|---|
committer | Abel Vesa <abel.vesa@nxp.com> | 2018-06-11 10:33:02 +0300 |
commit | fccb3083469a33173b3d455b396875b50e667d85 (patch) | |
tree | 45b3e2b1e79ea1ce0ab56c28817a0a00f56e9bb4 /plat | |
parent | 02cba32824185a28605130e7a7ae6dd79f3e4fa6 (diff) |
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>
Diffstat (limited to 'plat')
-rw-r--r-- | plat/imx/imx8mq/ddr/lpddr4_dvfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plat/imx/imx8mq/ddr/lpddr4_dvfs.c b/plat/imx/imx8mq/ddr/lpddr4_dvfs.c index bd96bbac..7adbf924 100644 --- a/plat/imx/imx8mq/ddr/lpddr4_dvfs.c +++ b/plat/imx/imx8mq/ddr/lpddr4_dvfs.c @@ -31,7 +31,7 @@ static unsigned int init_fsp = 0x1; 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) |