Skip to content

Commit 2a67709

Browse files
mstasiaknordicmasz-nordic
authored andcommitted
[nrf fromlist] modules: hal_nordic: nrfx: make NRFX_SPI(M/S) selectable
Since selectable per-instance configs are removed, allow selecting the general symbol for driver. Upstream PR #: 96792 Signed-off-by: Michał Stasiak <[email protected]>
1 parent 5238c67 commit 2a67709

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

modules/hal_nordic/nrfx/Kconfig

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,11 +273,17 @@ config NRFX_SPI2
273273
depends on $(dt_nodelabel_exists,spi2) && SOC_SERIES_NRF52X
274274
select NRFX_SPI
275275

276+
DT_COMPAT_NORDIC_NRF_SPIM := nordic,nrf-spim
277+
276278
config NRFX_SPIM
277-
bool
279+
bool "SPIM driver"
280+
depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_SPIM))
281+
282+
DT_COMPAT_NORDIC_NRF_SPIS := nordic,nrf-spis
278283

279284
config NRFX_SPIS
280-
bool
285+
bool "SPIS driver"
286+
depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_SPIS))
281287

282288
config NRFX_SYSTICK
283289
bool "SYSTICK driver"

0 commit comments

Comments
 (0)