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.

Signed-off-by: Rafał Kuźnia <rafal.kuznia@nordicsemi.no>
This commit is contained in:
Rafał Kuźnia 2024-10-15 13:07:20 +02:00 committed by Anas Nashif
commit bf66012544
4 changed files with 79 additions and 0 deletions

View file

@ -121,6 +121,7 @@ zephyr_library_sources_ifdef(CONFIG_NRFX_NVMC ${SRC_DIR}/nrfx_nvmc.c)
zephyr_library_sources_ifdef(CONFIG_NRFX_PDM ${SRC_DIR}/nrfx_pdm.c) zephyr_library_sources_ifdef(CONFIG_NRFX_PDM ${SRC_DIR}/nrfx_pdm.c)
zephyr_library_sources_ifdef(CONFIG_NRFX_POWER ${SRC_DIR}/nrfx_power.c) zephyr_library_sources_ifdef(CONFIG_NRFX_POWER ${SRC_DIR}/nrfx_power.c)
zephyr_library_sources_ifdef(CONFIG_NRFX_PPI ${SRC_DIR}/nrfx_ppi.c) zephyr_library_sources_ifdef(CONFIG_NRFX_PPI ${SRC_DIR}/nrfx_ppi.c)
zephyr_library_sources_ifdef(CONFIG_NRFX_PPIB ${SRC_DIR}/nrfx_ppib.c)
zephyr_library_sources_ifdef(CONFIG_NRFX_PWM ${SRC_DIR}/nrfx_pwm.c) zephyr_library_sources_ifdef(CONFIG_NRFX_PWM ${SRC_DIR}/nrfx_pwm.c)
zephyr_library_sources_ifdef(CONFIG_NRFX_QDEC ${SRC_DIR}/nrfx_qdec.c) zephyr_library_sources_ifdef(CONFIG_NRFX_QDEC ${SRC_DIR}/nrfx_qdec.c)
zephyr_library_sources_ifdef(CONFIG_NRFX_QSPI ${SRC_DIR}/nrfx_qspi.c) zephyr_library_sources_ifdef(CONFIG_NRFX_QSPI ${SRC_DIR}/nrfx_qspi.c)

View file

@ -259,6 +259,49 @@ config NRFX_PPI
bool "PPI allocator" bool "PPI allocator"
depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_PPI)) depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_PPI))
config NRFX_PPIB
bool
config NRFX_PPIB00
bool "PPIB00 driver instance"
depends on $(dt_nodelabel_has_compat,ppib00,$(DT_COMPAT_NORDIC_NRF_PPIB))
select NRFX_PPIB
config NRFX_PPIB01
bool "PPIB01 driver instance"
depends on $(dt_nodelabel_has_compat,ppib01,$(DT_COMPAT_NORDIC_NRF_PPIB))
select NRFX_PPIB
config NRFX_PPIB10
bool "PPIB10 driver instance"
depends on $(dt_nodelabel_has_compat,ppib10,$(DT_COMPAT_NORDIC_NRF_PPIB))
select NRFX_PPIB
config NRFX_PPIB11
bool "PPIB11 driver instance"
depends on $(dt_nodelabel_has_compat,ppib11,$(DT_COMPAT_NORDIC_NRF_PPIB))
select NRFX_PPIB
config NRFX_PPIB20
bool "PPIB20 driver instance"
depends on $(dt_nodelabel_has_compat,ppib20,$(DT_COMPAT_NORDIC_NRF_PPIB))
select NRFX_PPIB
config NRFX_PPIB21
bool "PPIB21 driver instance"
depends on $(dt_nodelabel_has_compat,ppib21,$(DT_COMPAT_NORDIC_NRF_PPIB))
select NRFX_PPIB
config NRFX_PPIB22
bool "PPIB22 driver instance"
depends on $(dt_nodelabel_has_compat,ppib22,$(DT_COMPAT_NORDIC_NRF_PPIB))
select NRFX_PPIB
config NRFX_PPIB30
bool "PPIB30 driver instance"
depends on $(dt_nodelabel_has_compat,ppib30,$(DT_COMPAT_NORDIC_NRF_PPIB))
select NRFX_PPIB
config NRFX_PWM config NRFX_PWM
bool bool

View file

@ -64,6 +64,10 @@ config NRFX_PPI_LOG
bool "PPI driver logging" bool "PPI driver logging"
depends on NRFX_PPI depends on NRFX_PPI
config NRFX_PPIB_LOG
bool "PPIB driver logging"
depends on NRFX_PPIB
config NRFX_PRS_LOG config NRFX_PRS_LOG
bool "PRS driver logging" bool "PRS driver logging"
depends on NRFX_PRS depends on NRFX_PRS

View file

@ -278,6 +278,37 @@
#define NRFX_PPI_CONFIG_LOG_ENABLED 1 #define NRFX_PPI_CONFIG_LOG_ENABLED 1
#endif #endif
#ifdef CONFIG_NRFX_PPIB
#define NRFX_PPIB_ENABLED 1
#endif
#ifdef CONFIG_NRFX_PPIB_LOG
#define NRFX_PPIB_CONFIG_LOG_ENABLED 1
#endif
#ifdef CONFIG_NRFX_PPIB00
#define NRFX_PPIB00_ENABLED 1
#endif
#ifdef CONFIG_NRFX_PPIB01
#define NRFX_PPIB01_ENABLED 1
#endif
#ifdef CONFIG_NRFX_PPIB10
#define NRFX_PPIB10_ENABLED 1
#endif
#ifdef CONFIG_NRFX_PPIB11
#define NRFX_PPIB11_ENABLED 1
#endif
#ifdef CONFIG_NRFX_PPIB20
#define NRFX_PPIB20_ENABLED 1
#endif
#ifdef CONFIG_NRFX_PPIB21
#define NRFX_PPIB21_ENABLED 1
#endif
#ifdef CONFIG_NRFX_PPIB22
#define NRFX_PPIB22_ENABLED 1
#endif
#ifdef CONFIG_NRFX_PPIB30
#define NRFX_PPIB30_ENABLED 1
#endif
#ifdef CONFIG_NRFX_PRS #ifdef CONFIG_NRFX_PRS
#define NRFX_PRS_ENABLED 1 #define NRFX_PRS_ENABLED 1
#endif #endif