forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 zephyrproject-rtos#41525 Signed-off-by: Gerson Fernando Budke <[email protected]>
- Loading branch information
Showing
5 changed files
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,16 +4,21 @@ | |
# Copyright (c) 2020 Gerson Fernando Budke <[email protected]> | ||
# 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.