ARM: imx: Do not hard-code MX8M MMU table DRAM entry offset
authorMarek Vasut <marex@denx.de>
Sat, 27 Feb 2021 13:59:00 +0000 (14:59 +0100)
committerStefano Babic <sbabic@denx.de>
Mon, 1 Mar 2021 09:21:36 +0000 (10:21 +0100)
commit076dc92ac62dacd3903afe95258ee510dc0e2abf
treed874fe892da144c70f6ca7c87f7cf59d977f64b5
parent5d42ea5535348c1e65abedfdf1241471f66d002b
ARM: imx: Do not hard-code MX8M MMU table DRAM entry offset

Instead of hard-coding the offset of DRAM entries in MMU table all over
the code, auto-detect the offset. This removes error-prone code which
would break e.g. in case the MMU table is modified.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Ye Li <ye.li@nxp.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
arch/arm/mach-imx/imx8m/soc.c