Skip to content

Commit 4cfd4a7

Browse files
alexanderwachtercarlescufi
authored andcommitted
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 <[email protected]>
1 parent 57bd091 commit 4cfd4a7

File tree

10 files changed

+36
-1
lines changed

10 files changed

+36
-1
lines changed

drivers/hwinfo/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ config HWINFO_STM32
2323
bool "STM32 hwinfo"
2424
default y
2525
depends on SOC_FAMILY_STM32
26-
select USE_STM32_LL_UTILS
2726
select HWINFO_HAS_DRIVER
2827
help
2928
Enable STM32 hwinfo driver.

soc/arm/st_stm32/stm32f0/soc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@
7171
#include <stm32f0xx_ll_dma.h>
7272
#endif
7373

74+
#ifdef CONFIG_HWINFO_STM32
75+
#include <stm32f0xx_ll_utils.h>
76+
#endif
77+
7478
#endif /* !_ASMLANGUAGE */
7579

7680
#endif /* _STM32F0_SOC_H_ */

soc/arm/st_stm32/stm32f1/soc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@
7171
#include <stm32f1xx_ll_dma.h>
7272
#endif
7373

74+
#ifdef CONFIG_HWINFO_STM32
75+
#include <stm32f1xx_ll_utils.h>
76+
#endif
77+
7478
#endif /* !_ASMLANGUAGE */
7579

7680
#endif /* _STM32F1_SOC_H_ */

soc/arm/st_stm32/stm32f2/soc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@
6262
#include <stm32f2xx_ll_dma.h>
6363
#endif
6464

65+
#ifdef CONFIG_HWINFO_STM32
66+
#include <stm32f2xx_ll_utils.h>
67+
#endif
68+
6569
#endif /* !_ASMLANGUAGE */
6670

6771
#endif /* _STM32F2_SOC_H_ */

soc/arm/st_stm32/stm32f3/soc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@
7878
#include <stm32f3xx_ll_dma.h>
7979
#endif
8080

81+
#ifdef CONFIG_HWINFO_STM32
82+
#include <stm32f3xx_ll_utils.h>
83+
#endif
84+
8185
#endif /* !_ASMLANGUAGE */
8286

8387
#endif /* _STM32F3_SOC_H_ */

soc/arm/st_stm32/stm32f4/soc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@
8080
#include <stm32f4xx_ll_dma.h>
8181
#endif
8282

83+
#ifdef CONFIG_HWINFO_STM32
84+
#include <stm32f4xx_ll_utils.h>
85+
#endif
86+
8387
#endif /* !_ASMLANGUAGE */
8488

8589
#endif /* _STM32F4_SOC_H_ */

soc/arm/st_stm32/stm32f7/soc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@
7979
#include <stm32f7xx_ll_dma.h>
8080
#endif
8181

82+
#ifdef CONFIG_HWINFO_STM32
83+
#include <stm32f7xx_ll_utils.h>
84+
#endif
85+
8286
#endif /* !_ASMLANGUAGE */
8387

8488
#endif /* _STM32F7_SOC_H_ */

soc/arm/st_stm32/stm32g0/soc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@
5252
#include <stm32g0xx_ll_usart.h>
5353
#endif
5454

55+
#ifdef CONFIG_HWINFO_STM32
56+
#include <stm32g0xx_ll_utils.h>
57+
#endif
58+
5559
/* Add include for DTS generated information */
5660
#include <devicetree.h>
5761

soc/arm/st_stm32/stm32g4/soc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@
7878
#include <stm32g4xx_ll_pwr.h>
7979
#endif
8080

81+
#ifdef CONFIG_HWINFO_STM32
82+
#include <stm32g4xx_ll_utils.h>
83+
#endif
84+
8185
#endif /* !_ASMLANGUAGE */
8286

8387
#endif /* _STM32G4_SOC_H_ */

soc/arm/st_stm32/stm32h7/soc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@
6060
#include <stm32h7xx_ll_usart.h>
6161
#endif /* CONFIG_SERIAL_HAS_DRIVER */
6262

63+
#ifdef CONFIG_HWINFO_STM32
64+
#include <stm32h7xx_ll_utils.h>
65+
#endif
66+
6367
#endif /* !_ASMLANGUAGE */
6468

6569
#endif /* _STM32F7_SOC_H7_ */

0 commit comments

Comments
 (0)