Now that serial drivers are enabled based on devicetree we need to remove any cases of them getting enabled by Kconfig.defconfig* files as this can lead to errors. Typically the Kconfig.defconfig* will blindly enable a sensor and not respect the devicetree state of the serial. Additionally we can get problems with prj.conf/defconfig getting incorrectly overridden. Signed-off-by: Kumar Gala <galak@kernel.org>
71 lines
1.3 KiB
Text
71 lines
1.3 KiB
Text
# ST Microelectronics STM32 all MCU lines
|
|
|
|
# Copyright (c) 2017, I-SENSE group of ICCS
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Here are set all the Kconfig symbols common to the whole STM32 family
|
|
|
|
if SOC_FAMILY_STM32
|
|
|
|
config CORTEX_M_SYSTICK
|
|
default n if STM32_LPTIM_TIMER
|
|
|
|
DT_STM32_RCC_PATH := $(dt_nodelabel_path,rcc)
|
|
DT_STM32_RCC_CLOCK_FREQ := $(dt_node_int_prop_int,$(DT_STM32_RCC_PATH),clock-frequency)
|
|
|
|
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
|
default "$(DT_STM32_RCC_CLOCK_FREQ)" if "$(dt_nodelabel_enabled,rcc)"
|
|
|
|
# set the tick per sec as a divider of the LPTIM clock source
|
|
config SYS_CLOCK_TICKS_PER_SEC
|
|
default 4096 if STM32_LPTIM_TIMER && STM32_LPTIM_CLOCK_LSE
|
|
default 4000 if STM32_LPTIM_TIMER && STM32_LPTIM_CLOCK_LSI
|
|
|
|
config CLOCK_CONTROL_STM32_CUBE
|
|
default y
|
|
depends on CLOCK_CONTROL
|
|
|
|
config CLOCK_CONTROL_INIT_PRIORITY
|
|
default 1
|
|
depends on CLOCK_CONTROL
|
|
|
|
config PINMUX_STM32
|
|
default y
|
|
depends on PINMUX
|
|
|
|
config PWM_STM32
|
|
default y
|
|
depends on PWM
|
|
|
|
config SPI_STM32
|
|
default y
|
|
depends on SPI
|
|
|
|
config I2S_STM32
|
|
default y
|
|
depends on I2S
|
|
|
|
config USB_DC_STM32
|
|
default y
|
|
depends on USB_DEVICE_DRIVER
|
|
|
|
config COUNTER_RTC_STM32
|
|
default y
|
|
depends on COUNTER
|
|
|
|
config ADC_STM32
|
|
default y
|
|
depends on ADC
|
|
|
|
if DMA
|
|
|
|
config DMA_STM32
|
|
default y
|
|
|
|
endif # DMA
|
|
|
|
config MEMC_STM32
|
|
default y
|
|
depends on MEMC
|
|
|
|
endif # SOC_FAMILY_STM32
|