SoC: stm32: Include LL utilities if HWINFO is selected
Include stm32XXxx_ll_utils.h in soc.h for every stm32 SoC, if CONFIG_HWINFO_STM32 is selected. Signed-off-by: Alexander Wachter <alexander@wachter.cloud>
This commit is contained in:
parent
57bd09186b
commit
4cfd4a707d
10 changed files with 36 additions and 1 deletions
|
@ -23,7 +23,6 @@ config HWINFO_STM32
|
|||
bool "STM32 hwinfo"
|
||||
default y
|
||||
depends on SOC_FAMILY_STM32
|
||||
select USE_STM32_LL_UTILS
|
||||
select HWINFO_HAS_DRIVER
|
||||
help
|
||||
Enable STM32 hwinfo driver.
|
||||
|
|
|
@ -71,6 +71,10 @@
|
|||
#include <stm32f0xx_ll_dma.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_HWINFO_STM32
|
||||
#include <stm32f0xx_ll_utils.h>
|
||||
#endif
|
||||
|
||||
#endif /* !_ASMLANGUAGE */
|
||||
|
||||
#endif /* _STM32F0_SOC_H_ */
|
||||
|
|
|
@ -71,6 +71,10 @@
|
|||
#include <stm32f1xx_ll_dma.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_HWINFO_STM32
|
||||
#include <stm32f1xx_ll_utils.h>
|
||||
#endif
|
||||
|
||||
#endif /* !_ASMLANGUAGE */
|
||||
|
||||
#endif /* _STM32F1_SOC_H_ */
|
||||
|
|
|
@ -62,6 +62,10 @@
|
|||
#include <stm32f2xx_ll_dma.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_HWINFO_STM32
|
||||
#include <stm32f2xx_ll_utils.h>
|
||||
#endif
|
||||
|
||||
#endif /* !_ASMLANGUAGE */
|
||||
|
||||
#endif /* _STM32F2_SOC_H_ */
|
||||
|
|
|
@ -78,6 +78,10 @@
|
|||
#include <stm32f3xx_ll_dma.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_HWINFO_STM32
|
||||
#include <stm32f3xx_ll_utils.h>
|
||||
#endif
|
||||
|
||||
#endif /* !_ASMLANGUAGE */
|
||||
|
||||
#endif /* _STM32F3_SOC_H_ */
|
||||
|
|
|
@ -80,6 +80,10 @@
|
|||
#include <stm32f4xx_ll_dma.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_HWINFO_STM32
|
||||
#include <stm32f4xx_ll_utils.h>
|
||||
#endif
|
||||
|
||||
#endif /* !_ASMLANGUAGE */
|
||||
|
||||
#endif /* _STM32F4_SOC_H_ */
|
||||
|
|
|
@ -79,6 +79,10 @@
|
|||
#include <stm32f7xx_ll_dma.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_HWINFO_STM32
|
||||
#include <stm32f7xx_ll_utils.h>
|
||||
#endif
|
||||
|
||||
#endif /* !_ASMLANGUAGE */
|
||||
|
||||
#endif /* _STM32F7_SOC_H_ */
|
||||
|
|
|
@ -52,6 +52,10 @@
|
|||
#include <stm32g0xx_ll_usart.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_HWINFO_STM32
|
||||
#include <stm32g0xx_ll_utils.h>
|
||||
#endif
|
||||
|
||||
/* Add include for DTS generated information */
|
||||
#include <devicetree.h>
|
||||
|
||||
|
|
|
@ -78,6 +78,10 @@
|
|||
#include <stm32g4xx_ll_pwr.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_HWINFO_STM32
|
||||
#include <stm32g4xx_ll_utils.h>
|
||||
#endif
|
||||
|
||||
#endif /* !_ASMLANGUAGE */
|
||||
|
||||
#endif /* _STM32G4_SOC_H_ */
|
||||
|
|
|
@ -60,6 +60,10 @@
|
|||
#include <stm32h7xx_ll_usart.h>
|
||||
#endif /* CONFIG_SERIAL_HAS_DRIVER */
|
||||
|
||||
#ifdef CONFIG_HWINFO_STM32
|
||||
#include <stm32h7xx_ll_utils.h>
|
||||
#endif
|
||||
|
||||
#endif /* !_ASMLANGUAGE */
|
||||
|
||||
#endif /* _STM32F7_SOC_H7_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue