soc: arm: stm32f2 add rtc feature on this serie
This patch enables the rtc on the stm32f2 soc series from STMicroelectronics Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
parent
732df68fff
commit
5debc6a94d
2 changed files with 16 additions and 0 deletions
|
@ -142,6 +142,16 @@
|
|||
};
|
||||
};
|
||||
|
||||
rtc: rtc@40002800 {
|
||||
compatible = "st,stm32-rtc";
|
||||
reg = <0x40002800 0x400>;
|
||||
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x10000000>;
|
||||
interrupts = <41 0>;
|
||||
prescaler = <32768>;
|
||||
status = "disabled";
|
||||
label = "RTC_0";
|
||||
};
|
||||
|
||||
iwdg: watchdog@40003000 {
|
||||
compatible = "st,stm32-watchdog";
|
||||
reg = <0x40003000 0x400>;
|
||||
|
|
|
@ -54,6 +54,12 @@
|
|||
#include <stm32f2xx_ll_wwdg.h>
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_COUNTER_RTC_STM32)
|
||||
#include <stm32f2xx_ll_rtc.h>
|
||||
#include <stm32f2xx_ll_exti.h>
|
||||
#include <stm32f2xx_ll_pwr.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ADC_STM32
|
||||
#include <stm32f2xx_ll_adc.h>
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue