imx: imx8ulp: Change LPAV assignment for dual boot

Assign the LPAV owner to RTD, and assign LPAV masters and peripherals
to APD. So except the masters and peripherals, other resources
(like DDR, cgc2, pcc5) in LPAV won't be reset during reboot and suspend.

No needs to initialize DDR again after reboot.

Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
Ye Li 2022-04-06 14:30:17 +08:00 committed by Stefano Babic
parent 043d11a459
commit c916fb1747

View File

@ -524,10 +524,10 @@ static int trdc_set_access(void)
return 0; return 0;
} }
void lpav_configure(void) void lpav_configure(bool lpav_to_m33)
{ {
/* LPAV to APD */ if (!lpav_to_m33)
setbits_le32(SIM_SEC_BASE_ADDR + 0x44, BIT(7)); setbits_le32(SIM_SEC_BASE_ADDR + 0x44, BIT(7)); /* LPAV to APD */
/* PXP/GPU 2D/3D/DCNANO/MIPI_DSI/EPDC/HIFI4 to APD */ /* PXP/GPU 2D/3D/DCNANO/MIPI_DSI/EPDC/HIFI4 to APD */
setbits_le32(SIM_SEC_BASE_ADDR + 0x4c, 0x7F); setbits_le32(SIM_SEC_BASE_ADDR + 0x4c, 0x7F);
@ -584,8 +584,9 @@ int arch_cpu_init(void)
release_rdc(RDC_TRDC); release_rdc(RDC_TRDC);
trdc_set_access(); trdc_set_access();
lpav_configure(false);
lpav_configure(); } else {
lpav_configure(true);
} }
/* Release xrdc, then allow A35 to write SRAM2 */ /* Release xrdc, then allow A35 to write SRAM2 */