Skip to content

Commit a46b68f

Browse files
ppelikan-nordicnordic-krch
authored andcommitted
[nrf fromlist] modules: hal_nordic: nrfs: add GDFS Service
Adding the implementation for the GDFS service Upstream PR #: 81735 Signed-off-by: Paweł Pelikan <[email protected]>
1 parent 5a6f450 commit a46b68f

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

modules/hal_nordic/nrfs/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ if(CONFIG_NRFS)
3131
zephyr_library_sources_ifdef(CONFIG_NRFS_RESET_SERVICE_ENABLED ${SRC_DIR}/services/nrfs_reset.c)
3232
zephyr_library_sources_ifdef(CONFIG_NRFS_TEMP_SERVICE_ENABLED ${SRC_DIR}/services/nrfs_temp.c)
3333
zephyr_library_sources_ifdef(CONFIG_NRFS_VBUS_DETECTOR_SERVICE_ENABLED ${SRC_DIR}/services/nrfs_usb.c)
34+
zephyr_library_sources_ifdef(CONFIG_NRFS_GDFS_SERVICE_ENABLED ${SRC_DIR}/services/nrfs_gdfs.c)
3435
zephyr_library_sources(${SRC_DIR}/internal/nrfs_dispatcher.c)
3536
add_subdirectory_ifdef(CONFIG_NRFS_DVFS_LOCAL_DOMAIN dvfs)
3637

modules/hal_nordic/nrfs/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ config NRFS_HAS_DIAG_SERVICE
1919
config NRFS_HAS_DVFS_SERVICE
2020
bool
2121

22+
config NRFS_HAS_GDFS_SERVICE
23+
bool
24+
2225
config NRFS_HAS_GDPWR_SERVICE
2326
bool
2427

@@ -117,6 +120,11 @@ config NRFS_GDPWR_SERVICE_ENABLED
117120
depends on NRFS_HAS_GDPWR_SERVICE
118121
default y
119122

123+
config NRFS_GDFS_SERVICE_ENABLED
124+
bool "Global domain frequency scaling service"
125+
depends on NRFS_HAS_GDFS_SERVICE
126+
default y
127+
120128
endmenu
121129

122130
rsource "backends/Kconfig"

modules/hal_nordic/nrfs/nrfs_config.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@
4444
#define NRFS_GDPWR_SERVICE_ENABLED
4545
#endif
4646

47+
#ifdef CONFIG_NRFS_CLOCK_SERVICE_ENABLED
48+
#define NRFS_CLOCK_SERVICE_ENABLED
49+
#endif
50+
51+
#ifdef CONFIG_NRFS_GDFS_SERVICE_ENABLED
52+
#define NRFS_GDFS_SERVICE_ENABLED
53+
#endif
54+
4755
#ifdef CONFIG_SOC_POSIX
4856
#define NRFS_UNIT_TESTS_ENABLED
4957
#endif

soc/nordic/nrf54h/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ config SOC_NRF54H20_CPUAPP_COMMON
2525
select HAS_SEGGER_RTT if ZEPHYR_SEGGER_MODULE
2626
select NRFS_HAS_CLOCK_SERVICE
2727
select NRFS_HAS_DVFS_SERVICE
28+
select NRFS_HAS_GDFS_SERVICE
2829
select NRFS_HAS_GDPWR_SERVICE
2930
select NRFS_HAS_MRAM_SERVICE
3031
select NRFS_HAS_TEMP_SERVICE
@@ -48,6 +49,7 @@ config SOC_NRF54H20_CPURAD_COMMON
4849
select CPU_HAS_CUSTOM_FIXED_SOC_MPU_REGIONS
4950
select HAS_SEGGER_RTT if ZEPHYR_SEGGER_MODULE
5051
select NRFS_HAS_CLOCK_SERVICE
52+
select NRFS_HAS_GDFS_SERVICE
5153
select NRFS_HAS_GDPWR_SERVICE
5254
select NRFS_HAS_MRAM_SERVICE
5355
select NRFS_HAS_TEMP_SERVICE

0 commit comments

Comments
 (0)