Skip to content

Commit 577a004

Browse files
rugeGerritsenkartben
authored andcommitted
drivers: spi: nrfx: Add explicit dependency to GPIO
This dependency was always there but not explicitly defined. By adding the explicit dependency it becomes more obvious what is wrong when SPI is enabled but GPIO disabled. This was found when building `samples/bluetooth/peripheral` for `nrf54l15dk/nrf54l15/cpuapp` with `CONFIG_GPIO=n`. Before we got: - A linker error in `spi_nrfx_common.c` failing to reference some nrfx_gpiote APIs. - A linker error in `spi_nrfx_spim.c` failing to reference the GPIO dts entry. Now we will get a warning of that GPIO is not enabled With this it becomes more obvious that SPI driver is enabled by default because of the external flash mounted on the DK. Signed-off-by: Rubin Gerritsen <rubin.gerritsen@nordicsemi.no>
1 parent a1e66b4 commit 577a004

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/spi/Kconfig.nrfx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ menuconfig SPI_NRFX
66
default y
77
depends on SOC_FAMILY_NORDIC_NRF
88
depends on MULTITHREADING
9+
select GPIO
910
select PINCTRL
1011
help
1112
Enable support for nrfx SPI drivers for nRF MCU series.

0 commit comments

Comments
 (0)