Browse Source

soc: atmel: Drop PINCTRL from Kconfig.defconfig

This Kconfig has wrongly been added to defconfig files. It is not the
right place for it. It has never been the right place for it. Drivers
that need it should select the symbol in their Kconfig entries. Drop
PINCTL from Kconfig.defconfig and add proper select at Kconfig.sam*.

Fixes #78619

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
pull/80872/head
Gerson Fernando Budke 8 months ago committed by Mahesh Mahadevan
parent
commit
0cc8f93e8a
  1. 1
      drivers/adc/Kconfig.sam
  2. 1
      drivers/adc/Kconfig.sam0
  3. 1
      drivers/adc/Kconfig.sam_afec
  4. 1
      drivers/counter/Kconfig.sam
  5. 1
      drivers/counter/Kconfig.sam0
  6. 1
      drivers/dac/Kconfig.sam
  7. 1
      drivers/dac/Kconfig.sam0
  8. 1
      drivers/ethernet/Kconfig.sam_gmac
  9. 2
      drivers/i2c/Kconfig
  10. 1
      drivers/i2c/Kconfig.sam0
  11. 1
      drivers/i2c/Kconfig.sam_twihs
  12. 1
      drivers/i2s/Kconfig.sam_ssc
  13. 1
      drivers/memc/Kconfig.sam
  14. 1
      drivers/pwm/Kconfig.sam
  15. 1
      drivers/pwm/Kconfig.sam0
  16. 1
      drivers/sdhc/Kconfig.sam_hsmci
  17. 1
      drivers/sensor/qdec_sam/Kconfig
  18. 1
      drivers/serial/Kconfig.sam0
  19. 1
      drivers/serial/Kconfig.uart_sam
  20. 1
      drivers/serial/Kconfig.usart_sam
  21. 1
      drivers/spi/Kconfig.sam
  22. 1
      drivers/spi/Kconfig.sam0
  23. 1
      drivers/timer/Kconfig.sam0_rtc
  24. 2
      drivers/usb/device/Kconfig
  25. 3
      soc/atmel/sam/Kconfig.defconfig
  26. 3
      soc/atmel/sam0/Kconfig.defconfig

1
drivers/adc/Kconfig.sam

@ -5,6 +5,7 @@ config ADC_SAM @@ -5,6 +5,7 @@ config ADC_SAM
bool "Atmel SAM series ADC Driver"
default y
depends on DT_HAS_ATMEL_SAM_ADC_ENABLED
select PINCTRL
select ADC_CONFIGURABLE_INPUTS
help
Enable Atmel SAM MCU Family Analog-to-Digital Converter (ADC) driver.

1
drivers/adc/Kconfig.sam0

@ -5,6 +5,7 @@ config ADC_SAM0 @@ -5,6 +5,7 @@ config ADC_SAM0
bool "Atmel SAM0 series ADC Driver"
default y
depends on DT_HAS_ATMEL_SAM0_ADC_ENABLED
select PINCTRL
select ADC_CONFIGURABLE_INPUTS
help
Enable Atmel SAM0 MCU Family Analog-to-Digital Converter (ADC) driver.

1
drivers/adc/Kconfig.sam_afec

@ -7,6 +7,7 @@ config ADC_SAM_AFEC @@ -7,6 +7,7 @@ config ADC_SAM_AFEC
bool "SAM ADC Driver"
default y
depends on DT_HAS_ATMEL_SAM_AFEC_ENABLED
select PINCTRL
help
Enable Atmel SAM MCU Family Analog-to-Digital Converter (ADC) driver
based on AFEC module.

1
drivers/counter/Kconfig.sam

@ -5,5 +5,6 @@ config COUNTER_SAM_TC @@ -5,5 +5,6 @@ config COUNTER_SAM_TC
bool "Atmel SAM MCU family counter (TC) driver"
default y
depends on DT_HAS_ATMEL_SAM_TC_ENABLED
select PINCTRL
help
Enable the Atmel SAM MCU family counter (TC) driver.

1
drivers/counter/Kconfig.sam0

@ -5,6 +5,7 @@ config COUNTER_SAM0_TC32 @@ -5,6 +5,7 @@ config COUNTER_SAM0_TC32
bool "SAM0 series 32-bit basic timer driver"
default y
depends on DT_HAS_ATMEL_SAM0_TC32_ENABLED
select PINCTRL
help
Enable the SAM0 series timer counter (TC) driver in 32-bit wide
mode.

1
drivers/dac/Kconfig.sam

@ -6,5 +6,6 @@ config DAC_SAM @@ -6,5 +6,6 @@ config DAC_SAM
bool "Atmel SAM DAC driver"
default y
depends on DT_HAS_ATMEL_SAM_DAC_ENABLED
select PINCTRL
help
Enable Atmel SAM MCU Family Digital Audio Converter (DAC) driver.

1
drivers/dac/Kconfig.sam0

@ -5,5 +5,6 @@ config DAC_SAM0 @@ -5,5 +5,6 @@ config DAC_SAM0
bool "Atmel SAM0 series DAC Driver"
default y
depends on DT_HAS_ATMEL_SAM0_DAC_ENABLED
select PINCTRL
help
Enables the Atmel SAM0 MCU Family Digital-to-Analog (DAC) driver.

1
drivers/ethernet/Kconfig.sam_gmac

@ -12,6 +12,7 @@ menuconfig ETH_SAM_GMAC @@ -12,6 +12,7 @@ menuconfig ETH_SAM_GMAC
select NOCACHE_MEMORY if ARCH_HAS_NOCACHE_MEMORY_SUPPORT
select MDIO
select ETH_DSA_SUPPORT
select PINCTRL
help
Enable Atmel SAM MCU Family Ethernet driver.

2
drivers/i2c/Kconfig

@ -177,6 +177,7 @@ config I2C_SAM_TWIM @@ -177,6 +177,7 @@ config I2C_SAM_TWIM
bool "Atmel SAM (TWIM) I2C driver"
default y
depends on DT_HAS_ATMEL_SAM_I2C_TWIM_ENABLED
select PINCTRL
help
Enable Atmel SAM MCU Family (TWIM) I2C bus driver.
@ -184,6 +185,7 @@ config I2C_SAM_TWI @@ -184,6 +185,7 @@ config I2C_SAM_TWI
bool "Atmel SAM (TWI) I2C driver"
default y
depends on DT_HAS_ATMEL_SAM_I2C_TWI_ENABLED
select PINCTRL
help
Enable Atmel SAM MCU Family (TWI) I2C bus driver.

1
drivers/i2c/Kconfig.sam0

@ -5,6 +5,7 @@ menuconfig I2C_SAM0 @@ -5,6 +5,7 @@ menuconfig I2C_SAM0
bool "SAM0 series I2C SERCOM driver"
default y
depends on DT_HAS_ATMEL_SAM0_I2C_ENABLED
select PINCTRL
help
Enable the SAM0 series SERCOM I2C driver.

1
drivers/i2c/Kconfig.sam_twihs

@ -7,5 +7,6 @@ config I2C_SAM_TWIHS @@ -7,5 +7,6 @@ config I2C_SAM_TWIHS
bool "Atmel SAM (TWIHS) I2C driver"
default y
depends on DT_HAS_ATMEL_SAM_I2C_TWIHS_ENABLED
select PINCTRL
help
Enable Atmel SAM MCU Family (TWIHS) I2C bus driver.

1
drivers/i2s/Kconfig.sam_ssc

@ -7,6 +7,7 @@ menuconfig I2S_SAM_SSC @@ -7,6 +7,7 @@ menuconfig I2S_SAM_SSC
bool "Atmel SAM MCU family I2S (SSC) Bus Driver"
default y
depends on DT_HAS_ATMEL_SAM_SSC_ENABLED
select PINCTRL
select DMA
help
Enable Inter Sound (I2S) bus driver for Atmel SAM MCU family based on

1
drivers/memc/Kconfig.sam

@ -5,5 +5,6 @@ config MEMC_SAM_SMC @@ -5,5 +5,6 @@ config MEMC_SAM_SMC
bool "Atmel Static Memory Controller (SMC)"
default y
depends on DT_HAS_ATMEL_SAM_SMC_ENABLED
select PINCTRL
help
Enable Atmel Static Memory Controller.

1
drivers/pwm/Kconfig.sam

@ -7,5 +7,6 @@ config PWM_SAM @@ -7,5 +7,6 @@ config PWM_SAM
bool "Atmel SAM MCU Family PWM Driver"
default y
depends on DT_HAS_ATMEL_SAM_PWM_ENABLED
select PINCTRL
help
Enable PWM driver for Atmel SAM MCUs.

1
drivers/pwm/Kconfig.sam0

@ -7,5 +7,6 @@ config PWM_SAM0_TCC @@ -7,5 +7,6 @@ config PWM_SAM0_TCC
bool "Atmel SAM0 MCU Family TCC PWM Driver"
default y
depends on DT_HAS_ATMEL_SAM0_TCC_PWM_ENABLED
select PINCTRL
help
Enable PWM driver for Atmel SAM0 MCUs using the TCC timer/counter.

1
drivers/sdhc/Kconfig.sam_hsmci

@ -5,6 +5,7 @@ config SAM_HSMCI @@ -5,6 +5,7 @@ config SAM_HSMCI
bool "ATMEL SAM HSMCI driver"
default y
depends on DT_HAS_ATMEL_SAM_HSMCI_ENABLED
select PINCTRL
select SDHC_SUPPORTS_NATIVE_MODE
help
Enable the ATMEL SAM HSMCI MMC/SD card driver.

1
drivers/sensor/qdec_sam/Kconfig

@ -9,5 +9,6 @@ config QDEC_SAM @@ -9,5 +9,6 @@ config QDEC_SAM
default y
depends on DT_HAS_ATMEL_SAM_TC_QDEC_ENABLED
depends on SOC_FAMILY_ATMEL_SAM
select PINCTRL
help
Atmel SAM MCU family Quadrature Decoder (TC) driver.

1
drivers/serial/Kconfig.sam0

@ -7,6 +7,7 @@ config UART_SAM0 @@ -7,6 +7,7 @@ config UART_SAM0
bool "Atmel SAM0 series SERCOM USART driver"
default y
depends on DT_HAS_ATMEL_SAM0_UART_ENABLED
select PINCTRL
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
select SERIAL_SUPPORT_ASYNC if DT_HAS_ATMEL_SAM0_DMAC_ENABLED

1
drivers/serial/Kconfig.uart_sam

@ -8,6 +8,7 @@ config UART_SAM @@ -8,6 +8,7 @@ config UART_SAM
bool "Atmel SAM MCU family UART driver"
default y
depends on DT_HAS_ATMEL_SAM_UART_ENABLED
select PINCTRL
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
help

1
drivers/serial/Kconfig.usart_sam

@ -7,6 +7,7 @@ config USART_SAM @@ -7,6 +7,7 @@ config USART_SAM
bool "Atmel SAM MCU family USART driver"
default y
depends on DT_HAS_ATMEL_SAM_USART_ENABLED
select PINCTRL
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
help

1
drivers/spi/Kconfig.sam

@ -8,6 +8,7 @@ config SPI_SAM @@ -8,6 +8,7 @@ config SPI_SAM
bool "Atmel SAM series SPI driver"
default y
depends on DT_HAS_ATMEL_SAM_SPI_ENABLED
select PINCTRL
select GPIO
help
Enable support for the SAM SPI driver.

1
drivers/spi/Kconfig.sam0

@ -7,6 +7,7 @@ config SPI_SAM0 @@ -7,6 +7,7 @@ config SPI_SAM0
bool "Atmel SAM0 series SERCOM SPI driver"
default y
depends on DT_HAS_ATMEL_SAM0_SPI_ENABLED
select PINCTRL
select DMA if SPI_ASYNC
help
Enable support for the SAM0 SERCOM SPI driver.

1
drivers/timer/Kconfig.sam0_rtc

@ -7,6 +7,7 @@ config SAM0_RTC_TIMER @@ -7,6 +7,7 @@ config SAM0_RTC_TIMER
bool "Atmel SAM0 series RTC timer"
default y
depends on DT_HAS_ATMEL_SAM0_RTC_ENABLED
select PINCTRL
select TICKLESS_CAPABLE
help
This module implements a kernel device driver for the Atmel SAM0

2
drivers/usb/device/Kconfig

@ -71,6 +71,7 @@ config USB_DC_SAM0 @@ -71,6 +71,7 @@ config USB_DC_SAM0
bool "SAM0 series USB Device Controller driver"
default y
depends on DT_HAS_ATMEL_SAM0_USB_ENABLED
select PINCTRL
help
SAM0 family USB device controller Driver.
@ -88,6 +89,7 @@ config USB_DC_SAM_USBC @@ -88,6 +89,7 @@ config USB_DC_SAM_USBC
bool "SAM4L USBC Device Controller driver"
default y
depends on DT_HAS_ATMEL_SAM_USBC_ENABLED
select PINCTRL
help
SAM4L family USBC device controller Driver.

3
soc/atmel/sam/Kconfig.defconfig

@ -14,9 +14,6 @@ config CLOCK_CONTROL @@ -14,9 +14,6 @@ config CLOCK_CONTROL
config GPIO
default y
config PINCTRL
default y
config SYS_CLOCK_HW_CYCLES_PER_SEC
default $(dt_node_int_prop_int,/cpus/cpu@0,clock-frequency)

3
soc/atmel/sam0/Kconfig.defconfig

@ -14,9 +14,6 @@ config GPIO @@ -14,9 +14,6 @@ config GPIO
config HWINFO_SAM0
default HWINFO
config PINCTRL
default y
config SYS_CLOCK_HW_CYCLES_PER_SEC
default $(dt_node_int_prop_int,/cpus/cpu@0,clock-frequency)

Loading…
Cancel
Save