zephyr/drivers/gpio/Kconfig.sam
Gerson Fernando Budke 58936e7639 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>
2022-01-18 12:12:52 -05:00

25 lines
772 B
Plaintext

# Atmel SAM GPIO configuration options
# Copyright (c) 2018 Justin Watson
# 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 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 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.