Skip to content

Commit

Permalink
[nrf fromlist] modules: hal_nordic: Add global domain power request s…
Browse files Browse the repository at this point in the history
…ervice

Service for powering peripherals that use GPIO pins in the global power domains:
- Active Main
- Active Slow
- Main Fast

Signed-off-by: Rafal Dyla <[email protected]>
  • Loading branch information
Rafal-Nordic committed Oct 2, 2024
1 parent 5d10d27 commit b604a9d
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions modules/hal_nordic/nrfs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ if(CONFIG_NRFS)
zephyr_library_sources_ifdef(CONFIG_NRFS_CLOCK_SERVICE_ENABLED ${SRC_DIR}/services/nrfs_clock.c)
zephyr_library_sources_ifdef(CONFIG_NRFS_DIAG_SERVICE_ENABLED ${SRC_DIR}/services/nrfs_diag.c)
zephyr_library_sources_ifdef(CONFIG_NRFS_DVFS_SERVICE_ENABLED ${SRC_DIR}/services/nrfs_dvfs.c)
zephyr_library_sources_ifdef(CONFIG_NRFS_GDPWR_SERVICE_ENABLED ${SRC_DIR}/services/nrfs_gdpwr.c)
zephyr_library_sources_ifdef(CONFIG_NRFS_MRAM_SERVICE_ENABLED ${SRC_DIR}/services/nrfs_mram.c)
zephyr_library_sources_ifdef(CONFIG_NRFS_PMIC_SERVICE_ENABLED ${SRC_DIR}/services/nrfs_pmic.c)
zephyr_library_sources_ifdef(CONFIG_NRFS_RESET_SERVICE_ENABLED ${SRC_DIR}/services/nrfs_reset.c)
Expand Down
9 changes: 9 additions & 0 deletions modules/hal_nordic/nrfs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ config NRFS_HAS_DIAG_SERVICE
config NRFS_HAS_DVFS_SERVICE
bool

config NRFS_HAS_GDPWR_SERVICE
bool

config NRFS_HAS_MRAM_SERVICE
bool

Expand Down Expand Up @@ -108,6 +111,12 @@ config NRFS_CLOCK_SERVICE_ENABLED
bool "Clock service"
depends on NRFS_HAS_CLOCK_SERVICE
default y

config NRFS_GDPWR_SERVICE_ENABLED
bool "Global domain power request service"
depends on NRFS_HAS_GDPWR_SERVICE
default y

endmenu

rsource "backends/Kconfig"
Expand Down
4 changes: 4 additions & 0 deletions modules/hal_nordic/nrfs/nrfs_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
#define NRFS_CLOCK_SERVICE_ENABLED
#endif

#ifdef CONFIG_NRFS_GDPWR_SERVICE_ENABLED
#define NRFS_GDPWR_SERVICE_ENABLED
#endif

#ifdef CONFIG_SOC_POSIX
#define NRFS_UNIT_TESTS_ENABLED
#endif
Expand Down
2 changes: 2 additions & 0 deletions soc/nordic/nrf54h/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ config SOC_NRF54H20_CPUAPP
select HAS_SEGGER_RTT if ZEPHYR_SEGGER_MODULE
select NRFS_HAS_CLOCK_SERVICE
select NRFS_HAS_DVFS_SERVICE
select NRFS_HAS_GDPWR_SERVICE
select NRFS_HAS_MRAM_SERVICE
select NRFS_HAS_TEMP_SERVICE
select NRFS_HAS_VBUS_DETECTOR_SERVICE
Expand All @@ -41,6 +42,7 @@ config SOC_NRF54H20_CPURAD
select CPU_HAS_CUSTOM_FIXED_SOC_MPU_REGIONS
select HAS_SEGGER_RTT if ZEPHYR_SEGGER_MODULE
select NRFS_HAS_CLOCK_SERVICE
select NRFS_HAS_GDPWR_SERVICE
select NRFS_HAS_MRAM_SERVICE
select NRFS_HAS_TEMP_SERVICE
select HAS_NORDIC_DMM
Expand Down
2 changes: 2 additions & 0 deletions soc/nordic/nrf92/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ config SOC_NRF9230_ENGB_CPUAPP
select HAS_NORDIC_DMM
select HAS_SEGGER_RTT if ZEPHYR_SEGGER_MODULE
select NRFS_HAS_CLOCK_SERVICE
select NRFS_HAS_GDPWR_SERVICE
select NRFS_HAS_MRAM_SERVICE
select NRFS_HAS_PMIC_SERVICE
select NRFS_HAS_TEMP_SERVICE
Expand All @@ -40,6 +41,7 @@ config SOC_NRF9230_ENGB_CPURAD
select HAS_NORDIC_DMM
select HAS_SEGGER_RTT if ZEPHYR_SEGGER_MODULE
select NRFS_HAS_CLOCK_SERVICE
select NRFS_HAS_GDPWR_SERVICE
select NRFS_HAS_MRAM_SERVICE
select NRFS_HAS_PMIC_SERVICE
select NRFS_HAS_TEMP_SERVICE
Expand Down
2 changes: 1 addition & 1 deletion west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ manifest:
groups:
- hal
- name: hal_nordic
revision: d4030afcc0befef645eda11e82c0d7c0e1d604f1
revision: pull/224/head
path: modules/hal/nordic
groups:
- hal
Expand Down

0 comments on commit b604a9d

Please sign in to comment.