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>
18 lines
453 B
Plaintext
18 lines
453 B
Plaintext
# Atmel SAM SPI
|
|
|
|
# Copyright (c) 2019 Gerson Fernando Budke
|
|
# 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 $(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.
|