Skip to content

Commit

Permalink
MA-20141 imx8m: enable alarm when shutdown
Browse files Browse the repository at this point in the history
Enable SNVS_LPCR_LPTA_EN and SNVS_LPCR_LPWUI_EN during shutdown
proces.

Change-Id: I566ce759ce7d121a476209836429aeee07cfe49d
Signed-off-by: Ji Luo <ji.luo@nxp.com>
  • Loading branch information
TE-N-JiLuo authored and JackyBai committed Mar 21, 2023
1 parent fc4ccf3 commit 4fe65a0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plat/imx/imx8m/imx8m_psci_common.c
Expand Up @@ -251,7 +251,8 @@ void __dead2 imx_system_off(void)
uint32_t val;

val = mmio_read_32(IMX_SNVS_BASE + SNVS_LPCR);
val |= SNVS_LPCR_SRTC_ENV | SNVS_LPCR_DP_EN | SNVS_LPCR_TOP;
val |= SNVS_LPCR_SRTC_ENV | SNVS_LPCR_DP_EN | SNVS_LPCR_TOP |
SNVS_LPCR_LPTA_EN | SNVS_LPCR_LPWUI_EN;
mmio_write_32(IMX_SNVS_BASE + SNVS_LPCR, val);

while (1)
Expand Down
2 changes: 2 additions & 0 deletions plat/imx/imx8m/imx8mm/include/platform_def.h
Expand Up @@ -153,6 +153,8 @@

#define SNVS_LPCR U(0x38)
#define SNVS_LPCR_SRTC_ENV BIT(0)
#define SNVS_LPCR_LPTA_EN BIT(1)
#define SNVS_LPCR_LPWUI_EN BIT(3)
#define SNVS_LPCR_DP_EN BIT(5)
#define SNVS_LPCR_TOP BIT(6)

Expand Down
2 changes: 2 additions & 0 deletions plat/imx/imx8m/imx8mn/include/platform_def.h
Expand Up @@ -130,6 +130,8 @@

#define SNVS_LPCR U(0x38)
#define SNVS_LPCR_SRTC_ENV BIT(0)
#define SNVS_LPCR_LPTA_EN BIT(1)
#define SNVS_LPCR_LPWUI_EN BIT(3)
#define SNVS_LPCR_DP_EN BIT(5)
#define SNVS_LPCR_TOP BIT(6)

Expand Down
2 changes: 2 additions & 0 deletions plat/imx/imx8m/imx8mp/include/platform_def.h
Expand Up @@ -167,6 +167,8 @@

#define SNVS_LPCR U(0x38)
#define SNVS_LPCR_SRTC_ENV BIT(0)
#define SNVS_LPCR_LPTA_EN BIT(1)
#define SNVS_LPCR_LPWUI_EN BIT(3)
#define SNVS_LPCR_DP_EN BIT(5)
#define SNVS_LPCR_TOP BIT(6)

Expand Down
2 changes: 2 additions & 0 deletions plat/imx/imx8m/imx8mq/include/platform_def.h
Expand Up @@ -129,6 +129,8 @@

#define SNVS_LPCR U(0x38)
#define SNVS_LPCR_SRTC_ENV BIT(0)
#define SNVS_LPCR_LPTA_EN BIT(1)
#define SNVS_LPCR_LPWUI_EN BIT(3)
#define SNVS_LPCR_DP_EN BIT(5)
#define SNVS_LPCR_TOP BIT(6)

Expand Down

0 comments on commit 4fe65a0

Please sign in to comment.