On 23.06.22 12:30, Ahmad Fatoum wrote: > This fixes issues of wrong DRAM size calculation for imx8mq-evk, > phytec-som-imx8mq, zii-imx8mq-dev as well as an out-of-tree > i.MX8MM board I have. > > For i.MX8MN-EVK, DDR4 size is correctly calculated, but not LPDDR4. > I can't see where the issue is though, so I am disabling detection > there until it's figured out. Device Tree already contains correct > RAM size. i.MX8MN has only 16-bit wide bus, which would explain the discrepancy. v2 incoming.. > > Ahmad Fatoum (4): > ARM: i.MX8M: esdctl: ignore ADDRMAP8 for non-DDR4 > ARM: i.MX8MQ: initialize ADDRMAP7 > ddr: imx8m: workaround old spreadsheets not initializing ADDRMAP7 > ARM: i.MX8M: imx8mn-evk: disable DDRC memory detection > > arch/arm/boards/nxp-imx8mn-evk/board.c | 7 +++++++ > arch/arm/boards/nxp-imx8mq-evk/ddr_init.c | 3 ++- > arch/arm/boards/phytec-som-imx8mq/ddr_init.c | 1 + > arch/arm/boards/zii-imx8mq-dev/ddr_init.c | 3 ++- > arch/arm/mach-imx/esdctl.c | 8 +++++++- > drivers/ddr/imx8m/ddr_init.c | 18 ++++++++++++++++++ > drivers/ddr/imx8m/helper.c | 6 ++++++ > include/soc/imx8m/ddr.h | 1 + > 8 files changed, 44 insertions(+), 3 deletions(-) > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |