Merge "fix(imx8m): update poweroff related SNVS_LPCR bits only" into integration

This commit is contained in:
Madhukar Pappireddy 2022-10-27 15:24:57 +02:00 committed by TrustedFirmware Code Review
commit f1a583836b

View file

@ -229,8 +229,11 @@ int imx_system_reset2(int is_vendor, int reset_type, u_register_t cookie)
void __dead2 imx_system_off(void)
{
mmio_write_32(IMX_SNVS_BASE + SNVS_LPCR, SNVS_LPCR_SRTC_ENV |
SNVS_LPCR_DP_EN | SNVS_LPCR_TOP);
uint32_t val;
val = mmio_read_32(IMX_SNVS_BASE + SNVS_LPCR);
val |= SNVS_LPCR_SRTC_ENV | SNVS_LPCR_DP_EN | SNVS_LPCR_TOP;
mmio_write_32(IMX_SNVS_BASE + SNVS_LPCR, val);
while (1)
;