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,071件の閲覧回数
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,059件の閲覧回数
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