How to modify the register about the power button presses time in imx8mp?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to modify the register about the power button presses time in imx8mp?

478 Views
charleshuang
Senior Contributor II

Hi NXP 

About IMX8M-Plus evk board, How to modify the register about the power button presses time?

Our customer need to modify the button presses 0.2 sec, system will be start up. 

Thanks.

 

 

0 Kudos
1 Reply

466 Views
weikeng-jimmy
Contributor III

Hi Clayder,

You should modify ON-TIME parameter from 500ms to 0ms from SNVS LPCR register.

I suggest you can parser imx-atf source code , and try to modified something as below.

imx/imx8m/imx8m_psci_common.c

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 | 0x00300000);

while (1)
;
}

 

螢幕截圖 2022-07-28 17.52.35.png