ARM: imx8mp: verdin-imx8mp: Add memory size detection
authorFrancesco Dolcini <francesco.dolcini@toradex.com>
Wed, 7 Sep 2022 09:51:05 +0000 (11:51 +0200)
committerStefano Babic <sbabic@denx.de>
Thu, 20 Oct 2022 15:35:51 +0000 (17:35 +0200)
commit5a16797105b3c80821f498252dcfbdf0dbc593d5
tree66d6aa21c9fa05150015e24d9a8f8a48c4ea15f9
parent6a64bcfae058b19a4275fc1963954f399951bce1
ARM: imx8mp: verdin-imx8mp: Add memory size detection

Add RAM auto-sizing, without this change memory size for all SKU is set
to 8GB and the system will crash on SKU with less memory as soon as the
non existent memory addresses are accessed.

Fixes: 2bc2f817cea7 ("board: toradex: add verdin imx8m plus support")
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
board/toradex/verdin-imx8mp/verdin-imx8mp.c