soc: arm: atmel_sam: samv71: Fix SPI build dependency
The SAM spi driver depends on GPIO driver to work. It seems that this dependency chain it is not handled. This select GPIO driver when SPI driver is enabled. It rework GPIO and SPI Kconfig to select driver by devicetree and drop entries at Kconfig.defconfig.series file. Fixes #41525 Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
This commit is contained in:
parent
35c4e94aa5
commit
58936e7639
5 changed files with 13 additions and 13 deletions
|
@ -4,16 +4,21 @@
|
|||
# Copyright (c) 2020 Gerson Fernando Budke <nandojve@gmail.com>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# Workaround for not being able to have commas in macro arguments
|
||||
DT_COMPAT_ATMEL_SAM_GPIO := atmel,sam-gpio
|
||||
|
||||
config GPIO_SAM
|
||||
bool "Atmel SAM GPIO (PORT) driver"
|
||||
default y
|
||||
default y if $(dt_compat_enabled,$(DT_COMPAT_ATMEL_SAM_GPIO))
|
||||
depends on SOC_FAMILY_SAM && !SOC_SERIES_SAM4L
|
||||
depends on GPIO
|
||||
help
|
||||
Enable support for the Atmel SAM 'PORT' GPIO controllers.
|
||||
|
||||
config GPIO_SAM4L
|
||||
bool "Atmel SAM4L GPIO (PORT) driver"
|
||||
default y
|
||||
default y if $(dt_compat_enabled,$(DT_COMPAT_ATMEL_SAM_GPIO))
|
||||
depends on SOC_SERIES_SAM4L
|
||||
depends on GPIO
|
||||
help
|
||||
Enable support for the Atmel SAM4L 'PORT' GPIO controllers.
|
||||
|
|
|
@ -4,9 +4,14 @@
|
|||
# Copyright (c) 2018 qianfan Zhao
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# Workaround for not being able to have commas in macro arguments
|
||||
DT_COMPAT_ATMEL_SAM_SPI := atmel,sam-spi
|
||||
|
||||
config SPI_SAM
|
||||
bool "Atmel SAM series SPI driver"
|
||||
default y
|
||||
default $(dt_compat_enabled,$(DT_COMPAT_ATMEL_SAM_SPI))
|
||||
depends on SOC_FAMILY_SAM
|
||||
depends on SPI
|
||||
select GPIO
|
||||
help
|
||||
Enable support for the SAM SPI driver.
|
||||
|
|
|
@ -46,10 +46,6 @@ config DMA_SAM_XDMAC
|
|||
default y
|
||||
depends on DMA
|
||||
|
||||
config GPIO_SAM
|
||||
default y
|
||||
depends on GPIO
|
||||
|
||||
config ADC_SAM_AFEC
|
||||
default y
|
||||
depends on ADC
|
||||
|
@ -62,10 +58,6 @@ config I2S_SAM_SSC
|
|||
default y
|
||||
depends on I2S
|
||||
|
||||
config SPI_SAM
|
||||
default y
|
||||
depends on SPI
|
||||
|
||||
config USB_DC_SAM_USBHS
|
||||
default y
|
||||
depends on USB_DEVICE_DRIVER
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
CONFIG_GPIO=y
|
|
@ -1 +0,0 @@
|
|||
CONFIG_GPIO=y
|
Loading…
Add table
Add a link
Reference in a new issue