summaryrefslogtreecommitdiff
path: root/plat/imx/imx8m/include/dram.h
diff options
context:
space:
mode:
authorJacky Bai <ping.bai@nxp.com>2020-09-08 09:55:59 +0800
committerJacky Bai <ping.bai@nxp.com>2020-09-08 16:06:53 +0800
commit1597f80de42f2669e579bed1eafed69ea1389660 (patch)
tree94099f070e8a2318e6137e267ef5932722227116 /plat/imx/imx8m/include/dram.h
parent3f3abbf9dff9152bede95c02c945aa84c53f4bd3 (diff)
MLK-24721 plat: imx8m: Fix the out of bound access to rank setting array
Fix the out of bound access to the rank setting array. Signed-off-by: Jacky Bai <ping.bai@nxp.com> Reviewed-by: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'plat/imx/imx8m/include/dram.h')
-rw-r--r--plat/imx/imx8m/include/dram.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/plat/imx/imx8m/include/dram.h b/plat/imx/imx8m/include/dram.h
index d0d5bf81..144316af 100644
--- a/plat/imx/imx8m/include/dram.h
+++ b/plat/imx/imx8m/include/dram.h
@@ -22,6 +22,8 @@
#define DDRC_ACTIVE_ONE_RANK U(0x1)
#define DDRC_ACTIVE_TWO_RANK U(0x2)
+#define MAX_FSP_NUM U(3)
+
/* reg & config param */
struct dram_cfg_param {
unsigned int reg;