drivers/gpio: stm32: Remove Kconfig based device declaration

Use device node declaration instead.
Clean up GPIO_STM32_PORT* Kconfig symbols.

On some boards some gpio ports where disabled using Kconfig symbols.
Disable them now via device tree nodes in boards dts files.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2020-04-01 11:47:04 +02:00 committed by Kumar Gala
commit e26767fc06
63 changed files with 41 additions and 755 deletions

View file

@ -12,19 +12,6 @@ config UART_2
default y
depends on UART_CONSOLE
# Disable ports D and F to allow kernel test cases common and
# contex to run on nucleo_f030r8.
# Test cases fail due to 'SRAM' region overflow.
if GPIO
config GPIO_STM32_PORTD
default n
config GPIO_STM32_PORTF
default n
endif # GPIO
if I2C
config I2C_1

View file

@ -41,6 +41,11 @@
};
};
/* Due to limited available memory, don't enable gpiod and gpiof */
/* (Test cases fail due to 'SRAM' region overflow) */
&gpiod {status = "disabled";};
&gpiof {status = "disabled";};
&usart1 {
current-speed = <115200>;
status = "okay";

View file

@ -12,19 +12,6 @@ config UART_2
default y
depends on UART_CONSOLE
# Disable ports D and H to allow kernel test cases common and
# contex to run on nucleo_l053r8.
# Test cases fail due to 'SRAM' region overflow.
if GPIO
config GPIO_STM32_PORTD
default n
config GPIO_STM32_PORTH
default n
endif # GPIO
config I2C_1
default y
depends on I2C

View file

@ -42,6 +42,11 @@
};
};
/* Due to limited available memory, don't enable gpiod and gpiof */
/* (Test cases fail due to 'SRAM' region overflow) */
&gpiod {status = "disabled";};
&gpioh {status = "disabled";};
&usart1 {
current-speed = <115200>;
};

View file

@ -31,6 +31,11 @@
};
};
/* Due to limited available memory, don't enable gpioc,d,e,f */
&gpioc {status = "disabled";};
&gpiod {status = "disabled";};
&gpiof {status = "disabled";};
&usart1 {
current-speed = <115200>;
status = "okay";

View file

@ -29,10 +29,6 @@ CONFIG_PINMUX=y
# GPIO Controller
CONFIG_GPIO=y
CONFIG_GPIO_STM32_PORTC=n
CONFIG_GPIO_STM32_PORTD=n
CONFIG_GPIO_STM32_PORTE=n
CONFIG_GPIO_STM32_PORTF=n
# Clock configuration
CONFIG_CLOCK_CONTROL=y

View file

@ -46,6 +46,10 @@
};
};
/* Due to limited available memory, don't enable gpiod and gpiof */
&gpiod {status = "disabled";};
&gpiof {status = "disabled";};
&usart1 {
current-speed = <115200>;
status = "okay";

View file

@ -29,8 +29,6 @@ CONFIG_PINMUX=y
# GPIO Controller
CONFIG_GPIO=y
CONFIG_GPIO_STM32_PORTD=n
CONFIG_GPIO_STM32_PORTF=n
# Clock configuration
CONFIG_CLOCK_CONTROL=y

View file

@ -12,39 +12,6 @@ menuconfig GPIO_STM32
if GPIO_STM32
config GPIO_STM32_PORTA
bool "Enable GPIO port A support"
config GPIO_STM32_PORTB
bool "Enable GPIO port B support"
config GPIO_STM32_PORTC
bool "Enable GPIO port C support"
config GPIO_STM32_PORTD
bool "Enable GPIO port D support"
config GPIO_STM32_PORTE
bool "Enable GPIO port E support"
config GPIO_STM32_PORTF
bool "Enable GPIO port F support"
config GPIO_STM32_PORTG
bool "Enable GPIO port G support"
config GPIO_STM32_PORTH
bool "Enable GPIO port H support"
config GPIO_STM32_PORTI
bool "Enable GPIO port I support"
config GPIO_STM32_PORTJ
bool "Enable GPIO port J support"
config GPIO_STM32_PORTK
bool "Enable GPIO port K support"
choice GPIO_STM32_SWJ
prompt "Serial wire JTAG configuration"
depends on SOC_SERIES_STM32F1X

View file

@ -595,49 +595,49 @@ static int gpio_stm32_init(struct device *device)
DT_CLOCKS_CELL(DT_NODELABEL(gpio##__suffix), bits),\
DT_CLOCKS_CELL(DT_NODELABEL(gpio##__suffix), bus))
#ifdef CONFIG_GPIO_STM32_PORTA
#if DT_HAS_NODE(DT_NODELABEL(gpioa))
GPIO_DEVICE_INIT_STM32(a, A);
#endif /* CONFIG_GPIO_STM32_PORTA */
#endif /* DT_HAS_NODE(DT_NODELABEL(gpioa)) */
#ifdef CONFIG_GPIO_STM32_PORTB
#if DT_HAS_NODE(DT_NODELABEL(gpiob))
GPIO_DEVICE_INIT_STM32(b, B);
#endif /* CONFIG_GPIO_STM32_PORTB */
#endif /* DT_HAS_NODE(DT_NODELABEL(gpiob)) */
#ifdef CONFIG_GPIO_STM32_PORTC
#if DT_HAS_NODE(DT_NODELABEL(gpioc))
GPIO_DEVICE_INIT_STM32(c, C);
#endif /* CONFIG_GPIO_STM32_PORTC */
#endif /* DT_HAS_NODE(DT_NODELABEL(gpioc)) */
#ifdef CONFIG_GPIO_STM32_PORTD
#if DT_HAS_NODE(DT_NODELABEL(gpiod))
GPIO_DEVICE_INIT_STM32(d, D);
#endif /* CONFIG_GPIO_STM32_PORTD */
#endif /* DT_HAS_NODE(DT_NODELABEL(gpiod)) */
#ifdef CONFIG_GPIO_STM32_PORTE
#if DT_HAS_NODE(DT_NODELABEL(gpioe))
GPIO_DEVICE_INIT_STM32(e, E);
#endif /* CONFIG_GPIO_STM32_PORTE */
#endif /* DT_HAS_NODE(DT_NODELABEL(gpioe)) */
#ifdef CONFIG_GPIO_STM32_PORTF
#if DT_HAS_NODE(DT_NODELABEL(gpiof))
GPIO_DEVICE_INIT_STM32(f, F);
#endif /* CONFIG_GPIO_STM32_PORTF */
#endif /* DT_HAS_NODE(DT_NODELABEL(gpiof)) */
#ifdef CONFIG_GPIO_STM32_PORTG
#if DT_HAS_NODE(DT_NODELABEL(gpiog))
GPIO_DEVICE_INIT_STM32(g, G);
#endif /* CONFIG_GPIO_STM32_PORTG */
#endif /* DT_HAS_NODE(DT_NODELABEL(gpiog)) */
#ifdef CONFIG_GPIO_STM32_PORTH
#if DT_HAS_NODE(DT_NODELABEL(gpioh))
GPIO_DEVICE_INIT_STM32(h, H);
#endif /* CONFIG_GPIO_STM32_PORTH */
#endif /* DT_HAS_NODE(DT_NODELABEL(gpioh)) */
#ifdef CONFIG_GPIO_STM32_PORTI
#if DT_HAS_NODE(DT_NODELABEL(gpioi))
GPIO_DEVICE_INIT_STM32(i, I);
#endif /* CONFIG_GPIO_STM32_PORTI */
#endif /* DT_HAS_NODE(DT_NODELABEL(gpioi)) */
#ifdef CONFIG_GPIO_STM32_PORTJ
#if DT_HAS_NODE(DT_NODELABEL(gpioj))
GPIO_DEVICE_INIT_STM32(j, J);
#endif /* CONFIG_GPIO_STM32_PORTJ */
#endif /* DT_HAS_NODE(DT_NODELABEL(gpioj)) */
#ifdef CONFIG_GPIO_STM32_PORTK
#if DT_HAS_NODE(DT_NODELABEL(gpiok))
GPIO_DEVICE_INIT_STM32(k, K);
#endif /* CONFIG_GPIO_STM32_PORTK */
#endif /* DT_HAS_NODE(DT_NODELABEL(gpiok)) */
#if defined(CONFIG_SOC_SERIES_STM32F1X)

View file

@ -25,15 +25,6 @@ if GPIO
config GPIO_STM32
default y
config GPIO_STM32_PORTA
default y
config GPIO_STM32_PORTB
default y
config GPIO_STM32_PORTC
default y
endif # GPIO
config PINMUX_STM32

View file

@ -12,18 +12,6 @@ source "soc/arm/st_stm32/stm32f0/Kconfig.defconfig.stm32f0*"
config SOC_SERIES
default "stm32f0"
if GPIO_STM32
# GPIO ports A, B and C are set in ../common/Kconfig.defconfig.series
config GPIO_STM32_PORTD
default y
config GPIO_STM32_PORTF
default y
endif # GPIO_STM32
config I2C_STM32_V2
default y
depends on I2C_STM32

View file

@ -12,12 +12,6 @@ source "soc/arm/st_stm32/stm32f1/Kconfig.defconfig.stm32f1*"
config SOC_SERIES
default "stm32f1"
# GPIO ports A, B and C are set in ../common/Kconfig.defconfig.series
config GPIO_STM32_PORTD
default y
depends on GPIO_STM32
config I2C_STM32_V1
default y
depends on I2C_STM32

View file

@ -11,10 +11,6 @@ config SOC
config NUM_IRQS
default 43
config GPIO_STM32_PORTE
default y
depends on GPIO_STM32
endif # SOC_STM32F103XB || SOC_STM32F103X8
if SOC_STM32F103XE
@ -25,17 +21,4 @@ config SOC
config NUM_IRQS
default 60
if GPIO_STM32
config GPIO_STM32_PORTE
default y
config GPIO_STM32_PORTF
default y
config GPIO_STM32_PORTG
default y
endif # GPIO_STM32
endif # SOC_STM32F103XE

View file

@ -11,8 +11,4 @@ config SOC
config NUM_IRQS
default 68
config GPIO_STM32_PORTE
default y
depends on GPIO_STM32
endif # SOC_STM32F107XC

View file

@ -12,30 +12,6 @@ source "soc/arm/st_stm32/stm32f2/Kconfig.defconfig.stm32f2*"
config SOC_SERIES
default "stm32f2"
if GPIO_STM32
# GPIO ports A, B and C are set in ../common/Kconfig.defconfig.series
config GPIO_STM32_PORTD
default y
config GPIO_STM32_PORTE
default y
config GPIO_STM32_PORTF
default y
config GPIO_STM32_PORTG
default y
config GPIO_STM32_PORTH
default y
config GPIO_STM32_PORTI
default y
endif # GPIO_STM32
config DMA_STM32_V1
default y
depends on DMA_STM32

View file

@ -12,12 +12,6 @@ source "soc/arm/st_stm32/stm32f3/Kconfig.defconfig.stm32f3*"
config SOC_SERIES
default "stm32f3"
# GPIO ports A, B and C are set in ../common/Kconfig.defconfig.series
config GPIO_STM32_PORTD
default y
depends on GPIO_STM32
config I2C_STM32_V2
default y
depends on I2C_STM32

View file

@ -11,8 +11,4 @@ config SOC
config NUM_IRQS
default 82
config GPIO_STM32_PORTF
default y
depends on GPIO_STM32
endif # SOC_STM32F302X8

View file

@ -11,14 +11,4 @@ config SOC
config NUM_IRQS
default 82
if GPIO_STM32
config GPIO_STM32_PORTE
default y
config GPIO_STM32_PORTF
default y
endif # GPIO_STM32
endif # SOC_STM32F303XC

View file

@ -11,11 +11,4 @@ config SOC
config NUM_IRQS
default 85
if GPIO_STM32
config GPIO_STM32_PORTF
default y
endif # GPIO_STM32
endif # SOC_STM32F303XE

View file

@ -11,8 +11,4 @@ config SOC
config NUM_IRQS
default 82
config GPIO_STM32_PORTF
default y
depends on GPIO_STM32
endif # SOC_STM32F334X8

View file

@ -11,14 +11,4 @@ config SOC
config NUM_IRQS
default 82
if GPIO_STM32
config GPIO_STM32_PORTE
default y
config GPIO_STM32_PORTF
default y
endif # GPIO_STM32
endif # SOC_STM32F373XC

View file

@ -12,21 +12,6 @@ source "soc/arm/st_stm32/stm32f4/Kconfig.defconfig.stm32f4*"
config SOC_SERIES
default "stm32f4"
if GPIO_STM32
# GPIO ports A, B and C are set in ../common/Kconfig.defconfig.series
config GPIO_STM32_PORTD
default y
config GPIO_STM32_PORTE
default y
config GPIO_STM32_PORTH
default y
endif # GPIO_STM32
config I2C_STM32_V1
default y
depends on I2C_STM32

View file

@ -11,19 +11,6 @@ config SOC
config NUM_IRQS
default 82
if GPIO_STM32
config GPIO_STM32_PORTF
default y
config GPIO_STM32_PORTG
default y
config GPIO_STM32_PORTI
default y
endif # GPIO_STM32
config ENTROPY_STM32_RNG
default y
depends on ENTROPY_GENERATOR

View file

@ -25,19 +25,6 @@ config SOC
config NUM_IRQS
default 82
if GPIO_STM32
config GPIO_STM32_PORTF
default y
config GPIO_STM32_PORTG
default y
config GPIO_STM32_PORTI
default y
endif # GPIO_STM32
config ENTROPY_STM32_RNG
default y
depends on ENTROPY_GENERATOR

View file

@ -11,19 +11,6 @@ config SOC
config NUM_IRQS
default 97
if GPIO_STM32
config GPIO_STM32_PORTD
default n
config GPIO_STM32_PORTE
default n
config GPIO_STM32_PORTH
default n
endif # GPIO_STM32
config ENTROPY_STM32_RNG
default y
depends on ENTROPY_GENERATOR

View file

@ -11,16 +11,6 @@ config SOC
config NUM_IRQS
default 97
if GPIO_STM32
config GPIO_STM32_PORTF
default y
config GPIO_STM32_PORTG
default y
endif # GPIO_STM32
config ENTROPY_STM32_RNG
default y
depends on ENTROPY_GENERATOR

View file

@ -11,16 +11,6 @@ config SOC
config NUM_IRQS
default 102
if GPIO_STM32
config GPIO_STM32_PORTF
default y
config GPIO_STM32_PORTG
default y
endif # GPIO_STM32
config ENTROPY_STM32_RNG
default y
depends on ENTROPY_GENERATOR

View file

@ -11,19 +11,6 @@ config SOC
config NUM_IRQS
default 82
if GPIO_STM32
config GPIO_STM32_PORTF
default y
config GPIO_STM32_PORTG
default y
config GPIO_STM32_PORTI
default y
endif # GPIO_STM32
config ENTROPY_STM32_RNG
default y
depends on ENTROPY_GENERATOR

View file

@ -11,25 +11,6 @@ config SOC
config NUM_IRQS
default 91
if GPIO_STM32
config GPIO_STM32_PORTF
default y
config GPIO_STM32_PORTG
default y
config GPIO_STM32_PORTI
default y
config GPIO_STM32_PORTJ
default y
config GPIO_STM32_PORTK
default y
endif # GPIO_STM32
config ENTROPY_STM32_RNG
default y
depends on ENTROPY_GENERATOR

View file

@ -11,25 +11,6 @@ config SOC
config NUM_IRQS
default 91
if GPIO_STM32
config GPIO_STM32_PORTF
default y
config GPIO_STM32_PORTG
default y
config GPIO_STM32_PORTI
default y
config GPIO_STM32_PORTJ
default y
config GPIO_STM32_PORTK
default y
endif # GPIO_STM32
config ENTROPY_STM32_RNG
default y
depends on ENTROPY_GENERATOR

View file

@ -11,14 +11,4 @@ config SOC
config NUM_IRQS
default 97
if GPIO_STM32
config GPIO_STM32_PORTE
default y
config GPIO_STM32_PORTH
default y
endif # GPIO_STM32
endif # SOC_STM32F446XX

View file

@ -11,25 +11,6 @@ config SOC
config NUM_IRQS
default 93
if GPIO_STM32
config GPIO_STM32_PORTF
default y
config GPIO_STM32_PORTG
default y
config GPIO_STM32_PORTI
default y
config GPIO_STM32_PORTJ
default y
config GPIO_STM32_PORTK
default y
endif # GPIO_STM32
config ENTROPY_STM32_RNG
default y
depends on ENTROPY_GENERATOR

View file

@ -12,30 +12,6 @@ source "soc/arm/st_stm32/stm32f7/Kconfig.defconfig.stm32f7*"
config SOC_SERIES
default "stm32f7"
if GPIO_STM32
# GPIO ports A, B and C are set in ../common/Kconfig.defconfig.series
config GPIO_STM32_PORTD
default y
config GPIO_STM32_PORTE
default y
config GPIO_STM32_PORTF
default y
config GPIO_STM32_PORTG
default y
config GPIO_STM32_PORTH
default y
config GPIO_STM32_PORTI
default y
endif # GPIO_STM32
config I2C_STM32_V2
default y
depends on I2C_STM32

View file

@ -8,16 +8,6 @@ if SOC_STM32F746XX
config SOC
default "stm32f746xx"
if GPIO_STM32
config GPIO_STM32_PORTJ
default y
config GPIO_STM32_PORTK
default y
endif # GPIO_STM32
config NUM_IRQS
default 98

View file

@ -8,16 +8,6 @@ if SOC_STM32F756XX
config SOC
default "stm32f756xx"
if GPIO_STM32
config GPIO_STM32_PORTJ
default y
config GPIO_STM32_PORTK
default y
endif # GPIO_STM32
config NUM_IRQS
default 98

View file

@ -8,16 +8,6 @@ if SOC_STM32F767XX
config SOC
default "stm32f767xx"
if GPIO_STM32
config GPIO_STM32_PORTJ
default y
config GPIO_STM32_PORTK
default y
endif # GPIO_STM32
config NUM_IRQS
default 110

View file

@ -8,16 +8,6 @@ if SOC_STM32F769XX
config SOC
default "stm32f769xx"
if GPIO_STM32
config GPIO_STM32_PORTJ
default y
config GPIO_STM32_PORTK
default y
endif # GPIO_STM32
config NUM_IRQS
default 110

View file

@ -11,20 +11,8 @@ source "soc/arm/st_stm32/stm32g0/Kconfig.defconfig.stm32g0*"
config SOC_SERIES
default "stm32g0"
if GPIO_STM32
# GPIO ports A, B and C are set in ../common/Kconfig.defconfig.series
config GPIO_STM32_PORTD
default y
config GPIO_STM32_PORTF
default y
config I2C_STM32_V2
default y
depends on I2C_STM32
endif # GPIO_STM32
endif # SOC_SERIES_STM32G0X

View file

@ -12,7 +12,4 @@ config SOC
config NUM_IRQS
default 32
if GPIO_STM32
endif # GPIO_STM32
endif # SOC_STM32G071XX

View file

@ -10,22 +10,6 @@ source "soc/arm/st_stm32/stm32g4/Kconfig.defconfig.stm32g4*"
config SOC_SERIES
default "stm32g4"
if GPIO_STM32
# GPIO ports A, B and C are set in ../common/Kconfig.defconfig.series
config GPIO_STM32_PORTD
default y
config GPIO_STM32_PORTE
default y
config GPIO_STM32_PORTF
default y
config GPIO_STM32_PORTG
default y
config I2C_STM32_V2
default y
depends on I2C_STM32
@ -34,5 +18,4 @@ config ENTROPY_STM32_RNG
default y
depends on ENTROPY_GENERATOR
endif # GPIO_STM32
endif # SOC_SERIES_STM32G4X

View file

@ -12,36 +12,6 @@ source "soc/arm/st_stm32/stm32h7/Kconfig.defconfig.stm32h7*"
config SOC_SERIES
default "stm32h7"
if GPIO_STM32
# GPIO ports A, B and C are set in ../common/Kconfig.defconfig.series
config GPIO_STM32_PORTD
default y
config GPIO_STM32_PORTE
default y
config GPIO_STM32_PORTF
default y
config GPIO_STM32_PORTG
default y
config GPIO_STM32_PORTH
default y
config GPIO_STM32_PORTI
default y
config GPIO_STM32_PORTJ
default y
config GPIO_STM32_PORTK
default y
endif # GPIO_STM32
config I2C_STM32_V2
default y
depends on I2C_STM32

View file

@ -12,12 +12,6 @@ source "soc/arm/st_stm32/stm32l0/Kconfig.defconfig.stm32l0*"
config SOC_SERIES
default "stm32l0"
if GPIO_STM32
# GPIO ports A, B and C are set in ../common/Kconfig.defconfig.series
endif # GPIO_STM32
config I2C_STM32_V2
default y
depends on I2C_STM32

View file

@ -11,14 +11,4 @@ config SOC
config NUM_IRQS
default 32
if GPIO_STM32
config GPIO_STM32_PORTD
default y
config GPIO_STM32_PORTH
default y
endif # GPIO_STM32
endif # SOC_STM32L053XX

View file

@ -11,17 +11,4 @@ config SOC
config NUM_IRQS
default 32
if GPIO_STM32
config GPIO_STM32_PORTD
default y
config GPIO_STM32_PORTE
default y
config GPIO_STM32_PORTH
default y
endif # GPIO_STM32
endif # SOC_STM32L072XX

View file

@ -11,17 +11,4 @@ config SOC
config NUM_IRQS
default 32
if GPIO_STM32
config GPIO_STM32_PORTD
default y
config GPIO_STM32_PORTE
default y
config GPIO_STM32_PORTH
default y
endif # GPIO_STM32
endif # SOC_STM32L073XX

View file

@ -11,17 +11,4 @@ config SOC
config NUM_IRQS
default 45
if GPIO_STM32
config GPIO_STM32_PORTD
default y
config GPIO_STM32_PORTE
default y
config GPIO_STM32_PORTH
default y
endif # GPIO_STM32
endif # SOC_STM32L151X8A

View file

@ -11,17 +11,4 @@ config SOC
config NUM_IRQS
default 45
if GPIO_STM32
config GPIO_STM32_PORTD
default y
config GPIO_STM32_PORTE
default y
config GPIO_STM32_PORTH
default y
endif # GPIO_STM32
endif # SOC_STM32L151XB

View file

@ -11,17 +11,4 @@ config SOC
config NUM_IRQS
default 45
if GPIO_STM32
config GPIO_STM32_PORTD
default y
config GPIO_STM32_PORTE
default y
config GPIO_STM32_PORTH
default y
endif # GPIO_STM32
endif # SOC_STM32L151XBA

View file

@ -13,17 +13,4 @@ config NUM_IRQS
int
default 45
if GPIO_STM32
config GPIO_STM32_PORTD
default y
config GPIO_STM32_PORTE
default y
config GPIO_STM32_PORTH
default y
endif # GPIO_STM32
endif # SOC_STM32L152XE

View file

@ -13,13 +13,6 @@ source "soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l4*"
config SOC_SERIES
default "stm32l4"
# GPIO ports A, B and C are set in ../common/Kconfig.defconfig.series
config GPIO_STM32_PORTH
default y
depends on GPIO_STM32
config I2C_STM32_V2
default y
depends on I2C_STM32

View file

@ -12,8 +12,4 @@ config SOC
config NUM_IRQS
default 83
config GPIO_STM32_PORTH
default y
depends on GPIO_STM32
endif # SOC_STM32L432XX

View file

@ -11,14 +11,4 @@ config SOC
config NUM_IRQS
default 83
if GPIO_STM32
config GPIO_STM32_PORTD
default y
config GPIO_STM32_PORTE
default y
endif # GPIO_STM32
endif # SOC_STM32L433XX

View file

@ -11,14 +11,4 @@ config SOC
config NUM_IRQS
default 85
if GPIO_STM32
config GPIO_STM32_PORTD
default y
config GPIO_STM32_PORTE
default y
endif # GPIO_STM32
endif # SOC_STM32L452XX

View file

@ -11,14 +11,4 @@ config SOC
config NUM_IRQS
default 85
if GPIO_STM32
config GPIO_STM32_PORTD
default y
config GPIO_STM32_PORTE
default y
endif # GPIO_STM32
endif # SOC_STM32L462XX

View file

@ -11,20 +11,4 @@ config SOC
config NUM_IRQS
default 82
if GPIO_STM32
config GPIO_STM32_PORTD
default y
config GPIO_STM32_PORTE
default y
config GPIO_STM32_PORTF
default y
config GPIO_STM32_PORTG
default y
endif # GPIO_STM32
endif # SOC_STM32L471XX

View file

@ -11,20 +11,4 @@ config SOC
config NUM_IRQS
default 82
if GPIO_STM32
config GPIO_STM32_PORTD
default y
config GPIO_STM32_PORTE
default y
config GPIO_STM32_PORTF
default y
config GPIO_STM32_PORTG
default y
endif # GPIO_STM32
endif # SOC_STM32L475XX

View file

@ -12,20 +12,4 @@ config SOC
config NUM_IRQS
default 82
if GPIO_STM32
config GPIO_STM32_PORTD
default y
config GPIO_STM32_PORTE
default y
config GPIO_STM32_PORTF
default y
config GPIO_STM32_PORTG
default y
endif # GPIO_STM32
endif # SOC_STM32L476XX

View file

@ -13,23 +13,4 @@ config SOC
config NUM_IRQS
default 91
if GPIO_STM32
config GPIO_STM32_PORTD
default y
config GPIO_STM32_PORTE
default y
config GPIO_STM32_PORTF
default y
config GPIO_STM32_PORTG
default y
config GPIO_STM32_PORTI
default y
endif # GPIO_STM32
endif # SOC_STM32L496XX

View file

@ -11,20 +11,4 @@ config SOC
config NUM_IRQS
default 95
if GPIO_STM32
config GPIO_STM32_PORTD
default y
config GPIO_STM32_PORTE
default y
config GPIO_STM32_PORTF
default y
config GPIO_STM32_PORTG
default y
endif # GPIO_STM32
endif # SOC_STM32L4R5XX

View file

@ -11,20 +11,4 @@ config SOC
config NUM_IRQS
default 95
if GPIO_STM32
config GPIO_STM32_PORTD
default y
config GPIO_STM32_PORTE
default y
config GPIO_STM32_PORTF
default y
config GPIO_STM32_PORTG
default y
endif # GPIO_STM32
endif # SOC_STM32L4R9XX

View file

@ -10,34 +10,6 @@ source "soc/arm/st_stm32/stm32mp1/Kconfig.defconfig.stm32mp15_m4"
config SOC_SERIES
default "stm32mp1"
if GPIO_STM32
config GPIO_STM32_PORTD
default y
config GPIO_STM32_PORTE
default y
config GPIO_STM32_PORTF
default y
config GPIO_STM32_PORTG
default y
config GPIO_STM32_PORTH
default y
config GPIO_STM32_PORTI
default y
config GPIO_STM32_PORTJ
default y
config GPIO_STM32_PORTK
default y
endif # GPIO_STM32
config IPM_STM32_IPCC
default y
depends on IPM

View file

@ -10,19 +10,6 @@ source "soc/arm/st_stm32/stm32wb/Kconfig.defconfig.stm32wb*"
config SOC_SERIES
default "stm32wb"
if GPIO_STM32
config GPIO_STM32_PORTD
default y
config GPIO_STM32_PORTE
default y
config GPIO_STM32_PORTH
default y
endif # GPIO_STM32
config I2C_STM32_V2
default y
depends on I2C_STM32