MLK-21485 imx8qm/qxp: Extend image size for bootaux M4

iMX8 has consective address for TCML and TCMU, so the M4 image size
could exceed the TCML boundary and put its data section in TCMU.

So change the size limitation in bootaux to 256KB to include TCMU.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit cdc80200841055b949677ae8633c6d64fe0d0985)
diff --git a/arch/arm/mach-imx/imx8/cpu.c b/arch/arm/mach-imx/imx8/cpu.c
index 7666546..07a7801 100644
--- a/arch/arm/mach-imx/imx8/cpu.c
+++ b/arch/arm/mach-imx/imx8/cpu.c
@@ -129,7 +129,7 @@
 {
 	sc_rsrc_t core_rsrc, mu_rsrc;
 	sc_faddr_t tcml_addr;
-	u32 tcml_size = SZ_128K;
+	u32 tcm_size = SZ_256K; /* TCML + TCMU */
 	ulong addr;
 
 
@@ -151,7 +151,7 @@
 
 	addr = (sc_faddr_t)boot_private_data;
 
-	if (addr >= tcml_addr && addr <= tcml_addr + tcml_size) {
+	if (addr >= tcml_addr && addr <= tcml_addr + tcm_size) {
 		printf("Wrong image address 0x%lx, should not in TCML\n",
 			addr);
 		return -EINVAL;
@@ -168,7 +168,7 @@
 	printf("Copy M4 image from 0x%lx to TCML 0x%lx\n", addr, (ulong)tcml_addr);
 
 	if (addr != tcml_addr)
-		memcpy((void *)tcml_addr, (void *)addr, tcml_size);
+		memcpy((void *)tcml_addr, (void *)addr, tcm_size);
 
 	printf("Start M4 %u\n", core_id);
 	if (sc_pm_cpu_start(-1, core_rsrc, true, tcml_addr) != SC_ERR_NONE)
@@ -241,7 +241,7 @@
 		core_rsrc = SC_R_M4_0_PID0;
 		aux_core_ram = 0x34FE0000;
 		mu_rsrc = SC_R_M4_0_MU_1A;
-		size = SZ_128K;
+		size = SZ_256K;
 		break;
 	case 1:
 		core_rsrc = SC_R_DSP;