mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-26 06:50:10 +00:00
Merge "fix(imx8m): update poweroff related SNVS_LPCR bits only" into integration
This commit is contained in:
commit
f1a583836b
1 changed files with 5 additions and 2 deletions
|
@ -229,8 +229,11 @@ int imx_system_reset2(int is_vendor, int reset_type, u_register_t cookie)
|
||||||
|
|
||||||
void __dead2 imx_system_off(void)
|
void __dead2 imx_system_off(void)
|
||||||
{
|
{
|
||||||
mmio_write_32(IMX_SNVS_BASE + SNVS_LPCR, SNVS_LPCR_SRTC_ENV |
|
uint32_t val;
|
||||||
SNVS_LPCR_DP_EN | SNVS_LPCR_TOP);
|
|
||||||
|
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)
|
while (1)
|
||||||
;
|
;
|
||||||
|
|
Loading…
Add table
Reference in a new issue