diff options
author | Jacky Bai <ping.bai@nxp.com> | 2020-04-13 17:44:50 +0800 |
---|---|---|
committer | Jacky Bai <ping.bai@nxp.com> | 2020-05-09 15:25:12 +0800 |
commit | bc9bc03f38fecbf5a2e4d938ed6f45fb3ec0b574 (patch) | |
tree | c7ac1a71b34db4b2e9670ca850f92e9d61878c65 /plat/imx/imx8m/include/dram.h | |
parent | 3432f444e283ccd83c7a28aa58ff1c5c67d5167f (diff) |
MLK-23821-01 plat: imx8m: Correct the rank number get from mstr
the bitfield of active_ranks in MSTR is defined as below.
Correct the rank num get in dram_info.
0x01: one rank;
0x11: two rank;
Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Anson Huang <anson.huang@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 c384cb1d..d221d27e 100644 --- a/plat/imx/imx8m/include/dram.h +++ b/plat/imx/imx8m/include/dram.h @@ -19,6 +19,8 @@ #define DDRC_DDR3L BIT(0) #define DDR_TYPE_MASK U(0x3f) #define ACTIVE_RANK_MASK U(0x3) +#define DDRC_ACTIVE_ONE_RANK U(0x1) +#define DDRC_ACTIVE_TWO_RANK U(0x2) /* reg & config param */ struct dram_cfg_param { |