soc: stm32l1: Add support for STM32 IWDG
The driver for STM32's independent watchdog already exists and is compatible with the stm32l1 SoC. Enable the independent watchdog for the stm32l1 series for use with this driver. Signed-off-by: Kwon Tae-young <tykwon@m2i.co.kr>
This commit is contained in:
parent
637582dfae
commit
271bd8bcea
3 changed files with 13 additions and 0 deletions
|
@ -173,6 +173,13 @@
|
|||
};
|
||||
};
|
||||
|
||||
iwdg: watchdog@40003000 {
|
||||
compatible = "st,stm32-watchdog";
|
||||
reg = <0x40003000 0x400>;
|
||||
label = "IWDG";
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
wwdg: watchdog@40002c00 {
|
||||
compatible = "st,stm32-window-watchdog";
|
||||
reg = <0x40002C00 0x400>;
|
||||
|
|
|
@ -123,6 +123,8 @@
|
|||
#define DT_SPI_2_CLOCK_BITS DT_ST_STM32_SPI_40003800_CLOCK_BITS
|
||||
#define DT_SPI_2_CLOCK_BUS DT_ST_STM32_SPI_40003800_CLOCK_BUS
|
||||
|
||||
#define DT_WDT_0_NAME DT_INST_0_ST_STM32_WATCHDOG_LABEL
|
||||
|
||||
#define DT_WWDT_0_BASE_ADDRESS DT_INST_0_ST_STM32_WINDOW_WATCHDOG_BASE_ADDRESS
|
||||
#define DT_WWDT_0_NAME DT_INST_0_ST_STM32_WINDOW_WATCHDOG_LABEL
|
||||
#define DT_WWDT_0_IRQ DT_INST_0_ST_STM32_WINDOW_WATCHDOG_IRQ_0
|
||||
|
|
|
@ -61,6 +61,10 @@
|
|||
#include <stm32l1xx_ll_spi.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_IWDG_STM32
|
||||
#include <stm32l1xx_ll_iwdg.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_WWDG_STM32
|
||||
#include <stm32l1xx_ll_wwdg.h>
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue