Skip to content

Commit 4c5e370

Browse files
committed
[nrf fromlist] modules: hal_nordic: Enable nrfx_ppib drivers
The new nrfx_ppib driver can now be enabled, when the corrensponding device tree node has the okay status. Upstream PR: zephyrproject-rtos/zephyr#79857 Signed-off-by: Rafał Kuźnia <[email protected]>
1 parent 11852e5 commit 4c5e370

File tree

4 files changed

+79
-0
lines changed

4 files changed

+79
-0
lines changed

modules/hal_nordic/nrfx/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ zephyr_library_sources_ifdef(CONFIG_NRFX_NVMC ${SRC_DIR}/nrfx_nvmc.c)
135135
zephyr_library_sources_ifdef(CONFIG_NRFX_PDM ${SRC_DIR}/nrfx_pdm.c)
136136
zephyr_library_sources_ifdef(CONFIG_NRFX_POWER ${SRC_DIR}/nrfx_power.c)
137137
zephyr_library_sources_ifdef(CONFIG_NRFX_PPI ${SRC_DIR}/nrfx_ppi.c)
138+
zephyr_library_sources_ifdef(CONFIG_NRFX_PPIB ${SRC_DIR}/nrfx_ppib.c)
138139
zephyr_library_sources_ifdef(CONFIG_NRFX_PWM ${SRC_DIR}/nrfx_pwm.c)
139140
zephyr_library_sources_ifdef(CONFIG_NRFX_QDEC ${SRC_DIR}/nrfx_qdec.c)
140141
zephyr_library_sources_ifdef(CONFIG_NRFX_QSPI ${SRC_DIR}/nrfx_qspi.c)

modules/hal_nordic/nrfx/Kconfig

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,49 @@ config NRFX_PPI
263263
bool "PPI allocator"
264264
depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_PPI))
265265

266+
config NRFX_PPIB
267+
bool
268+
269+
config NRFX_PPIB00
270+
bool "PPIB00 driver instance"
271+
depends on $(dt_nodelabel_has_compat,ppib00,$(DT_COMPAT_NORDIC_NRF_PPIB))
272+
select NRFX_PPIB
273+
274+
config NRFX_PPIB01
275+
bool "PPIB01 driver instance"
276+
depends on $(dt_nodelabel_has_compat,ppib01,$(DT_COMPAT_NORDIC_NRF_PPIB))
277+
select NRFX_PPIB
278+
279+
config NRFX_PPIB10
280+
bool "PPIB10 driver instance"
281+
depends on $(dt_nodelabel_has_compat,ppib10,$(DT_COMPAT_NORDIC_NRF_PPIB))
282+
select NRFX_PPIB
283+
284+
config NRFX_PPIB11
285+
bool "PPIB11 driver instance"
286+
depends on $(dt_nodelabel_has_compat,ppib11,$(DT_COMPAT_NORDIC_NRF_PPIB))
287+
select NRFX_PPIB
288+
289+
config NRFX_PPIB20
290+
bool "PPIB20 driver instance"
291+
depends on $(dt_nodelabel_has_compat,ppib20,$(DT_COMPAT_NORDIC_NRF_PPIB))
292+
select NRFX_PPIB
293+
294+
config NRFX_PPIB21
295+
bool "PPIB21 driver instance"
296+
depends on $(dt_nodelabel_has_compat,ppib21,$(DT_COMPAT_NORDIC_NRF_PPIB))
297+
select NRFX_PPIB
298+
299+
config NRFX_PPIB22
300+
bool "PPIB22 driver instance"
301+
depends on $(dt_nodelabel_has_compat,ppib22,$(DT_COMPAT_NORDIC_NRF_PPIB))
302+
select NRFX_PPIB
303+
304+
config NRFX_PPIB30
305+
bool "PPIB30 driver instance"
306+
depends on $(dt_nodelabel_has_compat,ppib30,$(DT_COMPAT_NORDIC_NRF_PPIB))
307+
select NRFX_PPIB
308+
266309
config NRFX_PWM
267310
bool
268311

modules/hal_nordic/nrfx/Kconfig.logging

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ config NRFX_PPI_LOG
6464
bool "PPI driver logging"
6565
depends on NRFX_PPI
6666

67+
config NRFX_PPIB_LOG
68+
bool "PPIB driver logging"
69+
depends on NRFX_PPIB
70+
6771
config NRFX_PRS_LOG
6872
bool "PRS driver logging"
6973
depends on NRFX_PRS

modules/hal_nordic/nrfx/nrfx_config.h

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,37 @@
278278
#define NRFX_PPI_CONFIG_LOG_ENABLED 1
279279
#endif
280280

281+
#ifdef CONFIG_NRFX_PPIB
282+
#define NRFX_PPIB_ENABLED 1
283+
#endif
284+
#ifdef CONFIG_NRFX_PPIB_LOG
285+
#define NRFX_PPIB_CONFIG_LOG_ENABLED 1
286+
#endif
287+
#ifdef CONFIG_NRFX_PPIB00
288+
#define NRFX_PPIB00_ENABLED 1
289+
#endif
290+
#ifdef CONFIG_NRFX_PPIB01
291+
#define NRFX_PPIB01_ENABLED 1
292+
#endif
293+
#ifdef CONFIG_NRFX_PPIB10
294+
#define NRFX_PPIB10_ENABLED 1
295+
#endif
296+
#ifdef CONFIG_NRFX_PPIB11
297+
#define NRFX_PPIB11_ENABLED 1
298+
#endif
299+
#ifdef CONFIG_NRFX_PPIB20
300+
#define NRFX_PPIB20_ENABLED 1
301+
#endif
302+
#ifdef CONFIG_NRFX_PPIB21
303+
#define NRFX_PPIB21_ENABLED 1
304+
#endif
305+
#ifdef CONFIG_NRFX_PPIB22
306+
#define NRFX_PPIB22_ENABLED 1
307+
#endif
308+
#ifdef CONFIG_NRFX_PPIB30
309+
#define NRFX_PPIB30_ENABLED 1
310+
#endif
311+
281312
#ifdef CONFIG_NRFX_PRS
282313
#define NRFX_PRS_ENABLED 1
283314
#endif

0 commit comments

Comments
 (0)