MLK-16797 imx8qm/qxp: Fix memory bank size calculation issue
authorYe Li <ye.li@nxp.com>
Fri, 10 Nov 2017 07:49:56 +0000 (01:49 -0600)
committerYe Li <ye.li@nxp.com>
Fri, 10 Nov 2017 08:32:34 +0000 (02:32 -0600)
commit58f55994a406694460767566395e7c160738d431
tree4c1cdf29b4a78557e9d29579b525a5ace60d2278
parent435807b41ae99bb9f4e0b2c7b9e5287c2bd520c0
MLK-16797 imx8qm/qxp: Fix memory bank size calculation issue

The calculation of memory bank size is wrong when the memory on the board is
less than 2GB. It causes memory bank exceeding the real DDR end, and cause
crash in kernel. Fix the issue in this patch.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
arch/arm/cpu/armv8/imx8/cpu.c