soc: silabs: Fix clock control dependency declarations
Most drivers for Series 2 depend on clock control, but didn't declare it. Enable clock control by default for Series 2 SoCs. Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
This commit is contained in:
committed by
Benjamin Cabé
parent
a80855354c
commit
a83b19b3f9
@@ -15,6 +15,7 @@ config ADC_SILABS_IADC
|
||||
bool "Silabs Incremental ADC driver"
|
||||
default y
|
||||
depends on DT_HAS_SILABS_IADC_ENABLED
|
||||
depends on CLOCK_CONTROL
|
||||
select SILABS_SISDK_IADC
|
||||
select ADC_CONFIGURABLE_INPUTS
|
||||
help
|
||||
|
||||
@@ -4,6 +4,7 @@ config COMPARATOR_SILABS_ACMP
|
||||
bool "Silabs ACMP comparator driver"
|
||||
default y
|
||||
depends on DT_HAS_SILABS_ACMP_ENABLED
|
||||
depends on CLOCK_CONTROL
|
||||
select PINCTRL
|
||||
select SILABS_SISDK_ACMP
|
||||
help
|
||||
|
||||
@@ -5,6 +5,7 @@ config DAC_SILABS_VDAC
|
||||
bool "Silabs DAC driver for VDAC"
|
||||
default y
|
||||
depends on DT_HAS_SILABS_VDAC_ENABLED
|
||||
depends on CLOCK_CONTROL
|
||||
select PINCTRL
|
||||
select SILABS_SISDK_VDAC
|
||||
help
|
||||
|
||||
@@ -5,6 +5,7 @@ menuconfig GPIO_SILABS
|
||||
bool "Silabs GPIO driver"
|
||||
default y
|
||||
depends on DT_HAS_SILABS_GPIO_ENABLED
|
||||
depends on CLOCK_CONTROL
|
||||
select SILABS_SISDK_GPIO
|
||||
help
|
||||
Enable the Silabs gpio driver.
|
||||
|
||||
@@ -5,6 +5,7 @@ menuconfig I2C_SILABS
|
||||
bool "Silabs I2C_S2 driver"
|
||||
default y
|
||||
depends on DT_HAS_SILABS_I2C_ENABLED
|
||||
depends on CLOCK_CONTROL
|
||||
select SILABS_SISDK_I2C
|
||||
help
|
||||
Enable I2C series 2 driver for the Silabs gecko SoC series.
|
||||
|
||||
@@ -5,6 +5,7 @@ config PWM_SILABS_LETIMER
|
||||
bool "Silabs LETIMER PWM driver"
|
||||
default y
|
||||
depends on DT_HAS_SILABS_LETIMER_PWM_ENABLED
|
||||
depends on CLOCK_CONTROL
|
||||
select SILABS_SISDK_LETIMER
|
||||
help
|
||||
Enable the PWM driver for the LETIMER peripheral on Silabs Series 2 SoCs.
|
||||
@@ -17,6 +18,7 @@ config PWM_SILABS_TIMER
|
||||
bool "Silabs TIMER PWM driver"
|
||||
default y
|
||||
depends on DT_HAS_SILABS_TIMER_PWM_ENABLED
|
||||
depends on CLOCK_CONTROL
|
||||
select SILABS_SISDK_TIMER
|
||||
help
|
||||
Enable the PWM driver for the TIMER peripheral on Silabs Series 2 SoCs.
|
||||
|
||||
@@ -5,5 +5,6 @@ config RETAINED_MEM_SILABS_BURAM
|
||||
bool "Silicon Labs BURAM driver"
|
||||
default y
|
||||
depends on DT_HAS_SILABS_BURAM_ENABLED
|
||||
depends on CLOCK_CONTROL
|
||||
help
|
||||
Enable driver for Silicon Labs BURAM-based retained memory register support.
|
||||
|
||||
@@ -9,6 +9,7 @@ config SPI_SILABS_EUSART
|
||||
default y
|
||||
depends on DT_HAS_SILABS_EUSART_SPI_ENABLED
|
||||
depends on GPIO
|
||||
depends on CLOCK_CONTROL
|
||||
select SILABS_SISDK_EUSART
|
||||
select PINCTRL if SOC_FAMILY_SILABS_S2
|
||||
help
|
||||
|
||||
@@ -20,6 +20,9 @@ configdefault SILABS_SLEEPTIMER_TIMER
|
||||
configdefault CORTEX_M_SYSTICK
|
||||
default n if SILABS_SLEEPTIMER_TIMER || GECKO_BURTC_TIMER
|
||||
|
||||
configdefault CLOCK_CONTROL
|
||||
default y
|
||||
|
||||
# silabs_s2 uses simplicity_sdk hal library, which already have by default a zero latency
|
||||
# IRQs mechanism with a hardcoded value. In order to be aligned with simplicity_sdk, we
|
||||
# need to activate Zero Latency IRQ in Zephyr by default. The level (2) depends on the
|
||||
|
||||
Reference in New Issue
Block a user