boards: arm: Add wdog support on mimxrt595_evk
Add watchdog support to the mimxrt595 platform. The mimxrt595 platform is excluded from the watchdog test case because the test case uses variables in the noinit section that need to be retained through a reset but the rt595 does not retain this memory through a reset. Signed-off-by: Chay Guo <changyi.guo@nxp.com>
This commit is contained in:
parent
fdca36e1cc
commit
c846537820
6 changed files with 14 additions and 2 deletions
|
@ -83,6 +83,8 @@ features:
|
|||
+-----------+------------+-------------------------------------+
|
||||
| CTIMER | on-chip | counter |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| WDT | on-chip | watchdog |
|
||||
+-----------+------------+-------------------------------------+
|
||||
|
||||
The default configuration can be found in the defconfig file:
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
led1 = &blue_led;
|
||||
led2 = &red_led;
|
||||
usart-0 = &flexcomm0;
|
||||
watchdog0 = &wwdt0;
|
||||
};
|
||||
|
||||
chosen {
|
||||
|
@ -220,6 +221,10 @@ arduino_serial: &flexcomm12 {
|
|||
status = "okay";
|
||||
};
|
||||
|
||||
&wwdt0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&flexspi {
|
||||
mx25um51345g: mx25um51345g@2 {
|
||||
compatible = "nxp,imx-flexspi-mx25um51345g";
|
||||
|
|
|
@ -23,3 +23,4 @@ supported:
|
|||
- gpio
|
||||
- i2c
|
||||
- spi
|
||||
- watchdog
|
||||
|
|
|
@ -80,7 +80,7 @@ static int mcux_wwdt_install_timeout(const struct device *dev,
|
|||
return -ENOMEM;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_SOC_MIMXRT685S_CM33)
|
||||
#if defined(CONFIG_SOC_MIMXRT685S_CM33) || defined(CONFIG_SOC_MIMXRT595S_CM33)
|
||||
clock_freq = CLOCK_GetWdtClkFreq(0);
|
||||
#else
|
||||
const struct mcux_wwdt_config *config = dev->config;
|
||||
|
|
|
@ -40,6 +40,10 @@ config COUNTER_MCUX_CTIMER
|
|||
default y
|
||||
depends on COUNTER
|
||||
|
||||
config WDT_MCUX_WWDT
|
||||
default y
|
||||
depends on WATCHDOG
|
||||
|
||||
if MCUX_OS_TIMER
|
||||
|
||||
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
||||
|
|
|
@ -4,7 +4,7 @@ common:
|
|||
tests:
|
||||
drivers.watchdog:
|
||||
filter: not (CONFIG_WDT_SAM or dt_compat_enabled("st,stm32-window-watchdog") or dt_compat_enabled("st,stm32-watchdog"))
|
||||
platform_exclude: mec15xxevb_assy6853 mimxrt685_evk_cm33
|
||||
platform_exclude: mec15xxevb_assy6853 mimxrt685_evk_cm33 mimxrt595_evk_cm33
|
||||
drivers.watchdog.stm32wwdg:
|
||||
filter: dt_compat_enabled("st,stm32-window-watchdog") or dt_compat_enabled("st,stm32-watchdog")
|
||||
extra_args: DTC_OVERLAY_FILE="boards/stm32_wwdg.overlay"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue