From 859b630c51b439c654f3f0953e9637b713a05e3a Mon Sep 17 00:00:00 2001 From: Erwan Gouriou Date: Mon, 18 Feb 2019 13:45:21 +0100 Subject: [PATCH] soc/arm/st_stm32/stm32l4: Factorize definition of GPIO_STM32_PORTH GPIO port H is available on all SoCs of L4 series. Move Kconfig GPIO_STM32_PORTH symbol deifnition to series Kconfig fragment Kconfig.defconfig.series. Signed-off-by: Erwan Gouriou --- soc/arm/st_stm32/stm32l4/Kconfig.defconfig.series | 7 +++++++ soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l432xx | 1 - soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l433xx | 4 ---- soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l452xx | 4 ---- soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l471xx | 3 --- soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l475xg | 3 --- soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l476xx | 3 --- soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l496xx | 4 ---- soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l4r5xx | 3 --- 9 files changed, 7 insertions(+), 25 deletions(-) diff --git a/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.series b/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.series index 6d1e24c5f48..5fce21e8281 100644 --- a/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.series +++ b/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.series @@ -13,6 +13,13 @@ source "soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l4*" config SOC_SERIES default "stm32l4" + +if GPIO_STM32 + +config GPIO_STM32_PORTH + default y + +endif # GPIO_STM32 if I2C_STM32 config I2C_STM32_V2 diff --git a/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l432xx b/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l432xx index 8cbebdd2c8f..eb92a51563f 100644 --- a/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l432xx +++ b/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l432xx @@ -24,4 +24,3 @@ config GPIO_STM32_PORTH endif # GPIO_STM32 endif # SOC_STM32L432XC - diff --git a/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l433xx b/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l433xx index 655b9f83538..f260fdc393b 100644 --- a/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l433xx +++ b/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l433xx @@ -23,10 +23,6 @@ config GPIO_STM32_PORTD config GPIO_STM32_PORTE default y -config GPIO_STM32_PORTH - default y - endif # GPIO_STM32 endif # SOC_STM32L433XC - diff --git a/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l452xx b/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l452xx index 335b281a450..0e2dac784f4 100644 --- a/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l452xx +++ b/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l452xx @@ -23,10 +23,6 @@ config GPIO_STM32_PORTD config GPIO_STM32_PORTE default y -config GPIO_STM32_PORTH - default y - endif # GPIO_STM32 endif # SOC_STM32L452XC - diff --git a/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l471xx b/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l471xx index 364db8f9c56..2b1d531bd58 100644 --- a/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l471xx +++ b/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l471xx @@ -29,9 +29,6 @@ config GPIO_STM32_PORTF config GPIO_STM32_PORTG default y -config GPIO_STM32_PORTH - default y - endif # GPIO_STM32 endif # SOC_STM32L471XX diff --git a/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l475xg b/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l475xg index 9fb67d2c5a9..04178855390 100644 --- a/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l475xg +++ b/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l475xg @@ -29,9 +29,6 @@ config GPIO_STM32_PORTF config GPIO_STM32_PORTG default y -config GPIO_STM32_PORTH - default y - endif # GPIO_STM32 endif # SOC_STM32L475XG diff --git a/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l476xx b/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l476xx index 1a8f5d0ae3e..61c5158a8d4 100644 --- a/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l476xx +++ b/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l476xx @@ -30,9 +30,6 @@ config GPIO_STM32_PORTF config GPIO_STM32_PORTG default y -config GPIO_STM32_PORTH - default y - endif # GPIO_STM32 endif # SOC_STM32L476XG diff --git a/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l496xx b/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l496xx index 83e9de01c3f..5facf302b6b 100644 --- a/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l496xx +++ b/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l496xx @@ -30,13 +30,9 @@ config GPIO_STM32_PORTF config GPIO_STM32_PORTG default y -config GPIO_STM32_PORTH - default y - config GPIO_STM32_PORTI default y endif # GPIO_STM32 endif # SOC_STM32L496XG - diff --git a/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l4r5xx b/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l4r5xx index 50da7f1b2eb..cd2e8043a8a 100644 --- a/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l4r5xx +++ b/soc/arm/st_stm32/stm32l4/Kconfig.defconfig.stm32l4r5xx @@ -29,9 +29,6 @@ config GPIO_STM32_PORTF config GPIO_STM32_PORTG default y -config GPIO_STM32_PORTH - default y - endif # GPIO_STM32 endif # SOC_STM32L4R5XI