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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,048 次查看
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 项奖励
回复
1 回复

1,036 次查看
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