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:
Alexander Wachter 2020-02-20 12:37:03 +01:00 committed by Carles Cufí
commit 4cfd4a707d
10 changed files with 36 additions and 1 deletions

View file

@ -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.

View file

@ -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_ */

View file

@ -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_ */

View file

@ -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_ */

View file

@ -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_ */

View file

@ -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_ */

View file

@ -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_ */

View file

@ -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>

View file

@ -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_ */

View file

@ -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_ */