imx8m: fix cache setup for dynamic sdram size