Watchdog / AP cores on imx8QM MEK

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

Watchdog / AP cores on imx8QM MEK

跳至解决方案
882 次查看
rkohli2000
Contributor III

Hi,

The AP (A53/A73) complex in the iMX8QM Ref manual (Rev F) has no mention of WDOG timer.

What is the mechanism to reconfigure/disable/enable/reset the WDOG for the AP complex ?

Is there any example for A53/A72 cores I can reference ? Is the SCU WDOG to be used (is SCU WDOG re-configurable?) ?  

Thanks.

0 项奖励
1 解答
872 次查看
igorpadykov
NXP Employee
NXP Employee

Hi rkohli2000

 

in latest linux wdog driver it is possible to reset A partition (AP complex ), with

arm_smccc_smc(IMX_SIP_TIMER, IMX_SIP_TIMER_SET_WDOG_ACT, SC_TIMER_WDOG_ACTION_PARTITION, 0, 0, 0, 0, 0, &res);

https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/watchdog/imx_sc_wdt.c?h=imx_5.4.24...

In previous releases with arm_smccc_smc(FSL_SIP_SRTC, FSL_SIP_SRTC_START_WDOG, 0, 0, 0, 0, 0, 0,&res);  PMIC WDI was used :

https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/watchdog/imx8_wdt.c?h=imx_4.14.98_...

Partition concept is described on 

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/System-Controller-Firmware-101-Resource-...

Wdog APIs are described in SCFW Porting Kit​

 

Best regards
igor

在原帖中查看解决方案

0 项奖励
1 回复
873 次查看
igorpadykov
NXP Employee
NXP Employee

Hi rkohli2000

 

in latest linux wdog driver it is possible to reset A partition (AP complex ), with

arm_smccc_smc(IMX_SIP_TIMER, IMX_SIP_TIMER_SET_WDOG_ACT, SC_TIMER_WDOG_ACTION_PARTITION, 0, 0, 0, 0, 0, &res);

https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/watchdog/imx_sc_wdt.c?h=imx_5.4.24...

In previous releases with arm_smccc_smc(FSL_SIP_SRTC, FSL_SIP_SRTC_START_WDOG, 0, 0, 0, 0, 0, 0,&res);  PMIC WDI was used :

https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/watchdog/imx8_wdt.c?h=imx_4.14.98_...

Partition concept is described on 

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/System-Controller-Firmware-101-Resource-...

Wdog APIs are described in SCFW Porting Kit​

 

Best regards
igor

0 项奖励