diff options
author | Jacky Bai <ping.bai@nxp.com> | 2020-09-08 09:55:59 +0800 |
---|---|---|
committer | Jacky Bai <ping.bai@nxp.com> | 2020-09-08 16:06:53 +0800 |
commit | 1597f80de42f2669e579bed1eafed69ea1389660 (patch) | |
tree | 94099f070e8a2318e6137e267ef5932722227116 /plat/imx/imx8m/include/dram.h | |
parent | 3f3abbf9dff9152bede95c02c945aa84c53f4bd3 (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.h | 2 |
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; |