imx9: Calculate DDR size from DDRC setting
authorYe Li <ye.li@nxp.com>
Fri, 28 Apr 2023 04:08:45 +0000 (12:08 +0800)
committerStefano Babic <sbabic@denx.de>
Sun, 21 May 2023 14:54:41 +0000 (16:54 +0200)
commitdace5e9fdc17786a3c4a857e63032d7d012e316d
treec3d291d230b6572ae9505b937a1e515f682c5828
parent212a4e19615102277718f6adaa0282b2a69d7320
imx9: Calculate DDR size from DDRC setting

To avoid using static setting for ECC enabled DDR size, switch
to calculate DDR size from DDRC setting

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/imx9/soc.c