forked from nuttx/nuttx-update
imx9: add config for waking WFI at systick
This commit is contained in:
parent
c7ccc0f9ec
commit
01e05c2660
2 changed files with 10 additions and 0 deletions
|
@ -46,6 +46,13 @@ config IMX9_IOMUX_OVER_SCMI
|
|||
|
||||
endif
|
||||
|
||||
config IMX9_WFI_AWAKES_AT_SYSTICK
|
||||
bool "WFI awakes at systick interrupts"
|
||||
default y
|
||||
---help---
|
||||
Configure the GPC to wake up from systick interrupts at WFI
|
||||
instruction
|
||||
|
||||
menu "i.MX9 Peripheral Selection"
|
||||
|
||||
config IMX9_EDMA
|
||||
|
|
|
@ -78,6 +78,8 @@
|
|||
|
||||
void imx9_clockconfig(void)
|
||||
{
|
||||
#ifdef CONFIG_IMX9_WFI_AWAKES_AT_SYSTICK
|
||||
|
||||
/* Keep the system clock running so SYSTICK can wake up the system from
|
||||
* wfi.
|
||||
*/
|
||||
|
@ -90,6 +92,7 @@ void imx9_clockconfig(void)
|
|||
|
||||
modifyreg32(IMX9_GPC_CTRL_CMC_MISC(IMX9_GPC_CTRL_CM7_BASE),
|
||||
IMX9_GPC_CTRL_CMC_MISC_SLEEP_HOLD_EN_FLAG, 0);
|
||||
#endif
|
||||
|
||||
/* Cortex-M33 with SM does PLL initalization */
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue