Watchdog / AP cores on imx8QM MEK

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

Watchdog / AP cores on imx8QM MEK

Jump to solution
859 Views
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 Kudos
1 Solution
849 Views
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

View solution in original post

0 Kudos
1 Reply
850 Views
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 Kudos