boards: stm32l4: Clean up driver generic flags

Clean up driver generic flags from boards' _defconfig files

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
This commit is contained in:
Yannis Damigos 2017-12-28 21:01:28 +02:00 committed by Kumar Gala
parent d60dc69ee7
commit 96740a0570
16 changed files with 151 additions and 113 deletions

View file

@ -13,11 +13,11 @@ source "arch/arm/soc/st_stm32/stm32l4/Kconfig.defconfig.stm32l4*"
config SOC_SERIES
default stm32l4
if WATCHDOG
if I2C && (I2C_1 || I2C_2 || I2C_3)
config IWDG_STM32
config I2C_STM32_V2
def_bool y
endif # WATCHDOG
endif # I2C
endif # SOC_SERIES_STM32L4X

View file

@ -16,5 +16,12 @@ config NUM_IRQS
int
default 82
if GPIO_STM32
config GPIO_STM32_PORTH
default y
endif # GPIO_STM32
endif # SOC_STM32L432XC

View file

@ -15,4 +15,23 @@ config NUM_IRQS
int
default 82
if GPIO_STM32
config GPIO_STM32_PORTD
def_bool 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
endif # GPIO_STM32
endif # SOC_STM32L475XG

View file

@ -16,4 +16,23 @@ config NUM_IRQS
int
default 82
if GPIO_STM32
config GPIO_STM32_PORTD
def_bool 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
endif # GPIO_STM32
endif # SOC_STM32L476XG

View file

@ -16,5 +16,27 @@ config NUM_IRQS
int
default 91
if GPIO_STM32
config GPIO_STM32_PORTD
def_bool 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
endif # SOC_STM32L496XG

View file

@ -7,6 +7,5 @@
config BOARD_DISCO_L475_IOT1
bool "Discovery IoT L475 Development Board"
select I2C_2 if I2C
select HAS_DTS_I2C_DEVICE
depends on SOC_STM32L475XG

View file

@ -10,59 +10,46 @@ if BOARD_DISCO_L475_IOT1
config BOARD
default disco_l475_iot1
if GPIO
config GPIO_STM32_PORTA
def_bool y
config GPIO_STM32_PORTB
def_bool y
config GPIO_STM32_PORTC
def_bool y
config GPIO_STM32_PORTD
def_bool y
config GPIO_STM32_PORTE
def_bool y
config GPIO_STM32_PORTF
def_bool n
config GPIO_STM32_PORTG
def_bool n
config GPIO_STM32_PORTH
def_bool n
endif # GPIO
if SERIAL
if UART_CONSOLE
config UART_STM32_PORT_1
def_bool y
default y
endif # SERIAL
endif # UART_CONSOLE
if I2C
config I2C_1
def_bool y
default y
config I2C_2
def_bool y
default y
endif # I2C
if SPI
config SPI_STM32_INTERRUPT
default y
config SPI_3
default y
config SPI_3_IRQ_PRI
default 10
config POLL
default y
endif # SPI
if PWM
config PWM_STM32_1
def_bool n
default n
config PWM_STM32_2
def_bool y
default y
endif # PWM

View file

@ -1,6 +1,5 @@
CONFIG_ARM=y
CONFIG_BOARD_DISCO_L475_IOT1=y
CONFIG_SOC_FAMILY_STM32=y
CONFIG_SOC_SERIES_STM32L4X=y
CONFIG_SOC_STM32L475XG=y
CONFIG_CORTEX_M_SYSTICK=y
@ -9,15 +8,12 @@ CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=80000000
# enable uart driver
CONFIG_SERIAL=y
CONFIG_UART_STM32=y
# enable pinmux
CONFIG_PINMUX=y
CONFIG_PINMUX_STM32=y
# enable GPIOs
# enable GPIO
CONFIG_GPIO=y
CONFIG_GPIO_STM32=y
# clock configuration
CONFIG_CLOCK_CONTROL=y
@ -39,24 +35,17 @@ CONFIG_CLOCK_STM32_APB2_PRESCALER=1
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
#enable pwm
# enable PWM
CONFIG_PWM=y
CONFIG_PWM_STM32=y
#enable MPU
# enable MPU
CONFIG_STM32_ARM_MPU_ENABLE=y
#enable I2C
# enable I2C
CONFIG_I2C=y
CONFIG_I2C_STM32_V2=y
# enable SPI
CONFIG_SPI=y
CONFIG_SPI_STM32=y
CONFIG_SPI_STM32_INTERRUPT=y
CONFIG_SPI_3=y
CONFIG_SPI_3_IRQ_PRI=10
CONFIG_POLL=y
CONFIG_SPI_LEGACY_API=n
CONFIG_BT_SPI=y
CONFIG_BT_SPI_BLUENRG=y

View file

@ -11,4 +11,18 @@ if BOARD_NUCLEO_L432KC
config BOARD
default nucleo_l432kc
if UART_CONSOLE
config UART_STM32_PORT_2
default y
endif # UART_CONSOLE
if PWM
config PWM_STM32_2
default y
endif # PWM
endif # BOARD_NUCLEO_L432KC

View file

@ -1,6 +1,5 @@
CONFIG_ARM=y
CONFIG_BOARD_STM32_NUCLEO_L432KC=y
CONFIG_SOC_FAMILY_STM32=y
CONFIG_SOC_SERIES_STM32L4X=y
CONFIG_SOC_STM32L432XC=y
CONFIG_CORTEX_M_SYSTICK=y
@ -9,20 +8,12 @@ CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=80000000
# enable uart driver
CONFIG_SERIAL=y
CONFIG_UART_STM32=y
CONFIG_UART_STM32_PORT_2=y
# enable pinmux
CONFIG_PINMUX=y
CONFIG_PINMUX_STM32=y
# enable GPIOs
# enable GPIO
CONFIG_GPIO=y
CONFIG_GPIO_STM32=y
CONFIG_GPIO_STM32_PORTA=y
CONFIG_GPIO_STM32_PORTB=y
CONFIG_GPIO_STM32_PORTC=y
CONFIG_GPIO_STM32_PORTH=y
# clock configuration
CONFIG_CLOCK_CONTROL=y
@ -46,5 +37,3 @@ CONFIG_UART_CONSOLE=y
#enable pwm
CONFIG_PWM=y
CONFIG_PWM_STM32=y
CONFIG_PWM_STM32_2=y

View file

@ -11,4 +11,18 @@ if BOARD_NUCLEO_L476RG
config BOARD
default nucleo_l476rg
if UART_CONSOLE
config UART_STM32_PORT_2
default y
endif # UART_CONSOLE
if PWM
config PWM_STM32_2
default y
endif # PWM
endif # BOARD_NUCLEO_L476RG

View file

@ -1,6 +1,5 @@
CONFIG_ARM=y
CONFIG_BOARD_STM32_NUCLEO_L476RG=y
CONFIG_SOC_FAMILY_STM32=y
CONFIG_SOC_SERIES_STM32L4X=y
CONFIG_SOC_STM32L476XG=y
CONFIG_CORTEX_M_SYSTICK=y
@ -9,24 +8,12 @@ CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=80000000
# enable uart driver
CONFIG_SERIAL=y
CONFIG_UART_STM32=y
CONFIG_UART_STM32_PORT_2=y
# enable pinmux
CONFIG_PINMUX=y
CONFIG_PINMUX_STM32=y
# enable GPIOs
# enable GPIO
CONFIG_GPIO=y
CONFIG_GPIO_STM32=y
CONFIG_GPIO_STM32_PORTA=y
CONFIG_GPIO_STM32_PORTB=y
CONFIG_GPIO_STM32_PORTC=y
CONFIG_GPIO_STM32_PORTD=y
CONFIG_GPIO_STM32_PORTE=y
CONFIG_GPIO_STM32_PORTF=y
CONFIG_GPIO_STM32_PORTG=y
CONFIG_GPIO_STM32_PORTH=y
# clock configuration
CONFIG_CLOCK_CONTROL=y
@ -50,7 +37,6 @@ CONFIG_UART_CONSOLE=y
#enable pwm
CONFIG_PWM=y
CONFIG_PWM_STM32=y
CONFIG_PWM_STM32_2=y
#enable MPU
CONFIG_STM32_ARM_MPU_ENABLE=y

View file

@ -10,4 +10,11 @@ if BOARD_STM32L476G_DISCO
config BOARD
default stm32l476g_disco
if UART_CONSOLE
config UART_STM32_PORT_2
default y
endif # UART_CONSOLE
endif # BOARD_STM32L476G_DISCO

View file

@ -1,6 +1,5 @@
CONFIG_ARM=y
CONFIG_BOARD_STM32L476G_DISCO=y
CONFIG_SOC_FAMILY_STM32=y
CONFIG_SOC_SERIES_STM32L4X=y
CONFIG_SOC_STM32L476XG=y
CONFIG_CORTEX_M_SYSTICK=y
@ -9,24 +8,12 @@ CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=80000000
# enable uart driver
CONFIG_SERIAL=y
CONFIG_UART_STM32=y
CONFIG_UART_STM32_PORT_2=y
# enable pinmux
CONFIG_PINMUX=y
CONFIG_PINMUX_STM32=y
# enable GPIOs
# enable GPIO
CONFIG_GPIO=y
CONFIG_GPIO_STM32=y
CONFIG_GPIO_STM32_PORTA=y
CONFIG_GPIO_STM32_PORTB=y
CONFIG_GPIO_STM32_PORTC=y
CONFIG_GPIO_STM32_PORTD=y
CONFIG_GPIO_STM32_PORTE=y
CONFIG_GPIO_STM32_PORTF=y
CONFIG_GPIO_STM32_PORTG=y
CONFIG_GPIO_STM32_PORTH=y
# clock configuration
CONFIG_CLOCK_CONTROL=y

View file

@ -11,4 +11,18 @@ if BOARD_STM32L496G_DISCO
config BOARD
default stm32l496g_disco
if UART_CONSOLE
config UART_STM32_PORT_2
default y
endif # UART_CONSOLE
if PWM
config PWM_STM32_2
default y
endif # PWM
endif # BOARD_STM32L496G_DISCO

View file

@ -1,6 +1,5 @@
CONFIG_ARM=y
CONFIG_BOARD_STM32L496G_DISCO=y
CONFIG_SOC_FAMILY_STM32=y
CONFIG_SOC_SERIES_STM32L4X=y
CONFIG_SOC_STM32L496XG=y
CONFIG_CORTEX_M_SYSTICK=y
@ -9,24 +8,12 @@ CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=80000000
# enable uart driver
CONFIG_SERIAL=y
CONFIG_UART_STM32=y
CONFIG_UART_STM32_PORT_2=y
# enable pinmux
CONFIG_PINMUX=y
CONFIG_PINMUX_STM32=y
# enable GPIOs
CONFIG_GPIO=y
CONFIG_GPIO_STM32=y
CONFIG_GPIO_STM32_PORTA=y
CONFIG_GPIO_STM32_PORTB=y
CONFIG_GPIO_STM32_PORTC=y
CONFIG_GPIO_STM32_PORTD=y
CONFIG_GPIO_STM32_PORTE=y
CONFIG_GPIO_STM32_PORTF=y
CONFIG_GPIO_STM32_PORTG=y
CONFIG_GPIO_STM32_PORTH=y
# clock configuration
CONFIG_CLOCK_CONTROL=y
@ -50,5 +37,3 @@ CONFIG_UART_CONSOLE=y
#enable pwm
CONFIG_PWM=y
CONFIG_PWM_STM32=y
CONFIG_PWM_STM32_2=y