Skip to content

Commit

Permalink
[nrf fromlist] modules: hal_nordic: nrfs: add GDFS Service
Browse files Browse the repository at this point in the history
Adding the implementation for the GDFS service

Upstream PR #: 81735

Signed-off-by: Paweł Pelikan <pawel.pelikan@nordicsemi.no>
  • Loading branch information
ppelikan-nordic authored and jukkar committed Dec 13, 2024
1 parent 84da347 commit c2c1823
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/hal_nordic/nrfs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ if(CONFIG_NRFS)
zephyr_library_sources_ifdef(CONFIG_NRFS_RESET_SERVICE_ENABLED ${SRC_DIR}/services/nrfs_reset.c)
zephyr_library_sources_ifdef(CONFIG_NRFS_TEMP_SERVICE_ENABLED ${SRC_DIR}/services/nrfs_temp.c)
zephyr_library_sources_ifdef(CONFIG_NRFS_VBUS_DETECTOR_SERVICE_ENABLED ${SRC_DIR}/services/nrfs_usb.c)
zephyr_library_sources_ifdef(CONFIG_NRFS_GDFS_SERVICE_ENABLED ${SRC_DIR}/services/nrfs_gdfs.c)
zephyr_library_sources(${SRC_DIR}/internal/nrfs_dispatcher.c)
add_subdirectory_ifdef(CONFIG_NRFS_DVFS_LOCAL_DOMAIN dvfs)

Expand Down
8 changes: 8 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_GDFS_SERVICE
bool

config NRFS_HAS_GDPWR_SERVICE
bool

Expand Down Expand Up @@ -117,6 +120,11 @@ config NRFS_GDPWR_SERVICE_ENABLED
depends on NRFS_HAS_GDPWR_SERVICE
default y

config NRFS_GDFS_SERVICE_ENABLED
bool "Global domain frequency scaling service"
depends on NRFS_HAS_GDFS_SERVICE
default y

endmenu

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

#ifdef CONFIG_NRFS_CLOCK_SERVICE_ENABLED
#define NRFS_CLOCK_SERVICE_ENABLED
#endif

#ifdef CONFIG_NRFS_GDFS_SERVICE_ENABLED
#define NRFS_GDFS_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 @@ -25,6 +25,7 @@ config SOC_NRF54H20_CPUAPP_COMMON
select HAS_SEGGER_RTT if ZEPHYR_SEGGER_MODULE
select NRFS_HAS_CLOCK_SERVICE
select NRFS_HAS_DVFS_SERVICE
select NRFS_HAS_GDFS_SERVICE
select NRFS_HAS_GDPWR_SERVICE
select NRFS_HAS_MRAM_SERVICE
select NRFS_HAS_TEMP_SERVICE
Expand All @@ -48,6 +49,7 @@ config SOC_NRF54H20_CPURAD_COMMON
select CPU_HAS_CUSTOM_FIXED_SOC_MPU_REGIONS
select HAS_SEGGER_RTT if ZEPHYR_SEGGER_MODULE
select NRFS_HAS_CLOCK_SERVICE
select NRFS_HAS_GDFS_SERVICE
select NRFS_HAS_GDPWR_SERVICE
select NRFS_HAS_MRAM_SERVICE
select NRFS_HAS_TEMP_SERVICE
Expand Down

0 comments on commit c2c1823

Please sign in to comment.