Skip to content

Commit c2e0a58

Browse files
jaz1-nordicmasz-nordic
authored andcommitted
sysbuild: sdp: Add Kconfigs for SDP application fault timeout
Add general sysbuild Kconfig for SDP application fault timeout to be propagated to the MSPI driver and FLPR core SDP app. Signed-off-by: Jakub Zymelka <[email protected]>
1 parent 8efec72 commit c2e0a58

File tree

2 files changed

+34
-5
lines changed

2 files changed

+34
-5
lines changed

cmake/sysbuild/sdp.cmake

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ function(sdp_apply_snippets snippet)
88
sysbuild_cache_set(VAR sdp_SNIPPET APPEND REMOVE_DUPLICATES ${snippet})
99
endfunction()
1010

11+
function(sdp_apply_flpr_fault_timer_params timeout)
12+
set_config_bool(sdp CONFIG_SDP_MSPI_FAULT_TIMER y)
13+
set_config_bool(${DEFAULT_IMAGE} CONFIG_MSPI_NRFE_FAULT_TIMER y)
14+
set_config_int(${DEFAULT_IMAGE} CONFIG_MSPI_NRFE_FAULT_TIMEOUT ${timeout})
15+
endfunction()
16+
1117
if(SB_CONFIG_SDP)
1218
if(SB_CONFIG_SDP_GPIO)
1319
if(SB_CONFIG_SDP_GPIO_BACKEND_MBOX)
@@ -20,6 +26,9 @@ if(SB_CONFIG_SDP)
2026
endif()
2127
if(SB_CONFIG_SDP_MSPI)
2228
set(snippet_name "sdp-mspi")
29+
if(SB_CONFIG_SDP_FLPR_APP_FAULT_TIMER)
30+
sdp_apply_flpr_fault_timer_params(${SB_CONFIG_SDP_FLPR_APP_FAULT_TIMEOUT})
31+
endif()
2332
endif()
2433

2534
sdp_apply_snippets(${snippet_name})

sysbuild/Kconfig.sdp

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ config SDP_GPIO
1515
config SDP_MSPI
1616
bool "SDP MSPI application"
1717

18+
config SDP_IMAGE_PATH
19+
string
20+
default "${ZEPHYR_NRF_MODULE_DIR}/applications/sdp/gpio" if SDP_GPIO
21+
default "${ZEPHYR_NRF_MODULE_DIR}/applications/sdp/mspi" if SDP_MSPI
22+
help
23+
Source directory of SDP image.
24+
1825
if SDP_GPIO
1926

2027
choice SDP_GPIO_BACKEND
@@ -39,12 +46,25 @@ endchoice
3946

4047
endif # SDP_GPIO
4148

42-
config SDP_IMAGE_PATH
43-
string
44-
default "${ZEPHYR_NRF_MODULE_DIR}/applications/sdp/gpio" if SDP_GPIO
45-
default "${ZEPHYR_NRF_MODULE_DIR}/applications/sdp/mspi" if SDP_MSPI
49+
if SDP_MSPI
50+
51+
config SDP_FLPR_APP_FAULT_TIMER
52+
bool "SDP FLPR application fault timer"
53+
default y
4654
help
47-
Source directory of SDP image.
55+
Enable SDP FLPR application fault timer.
56+
57+
if SDP_FLPR_APP_FAULT_TIMER
58+
59+
config SDP_FLPR_APP_FAULT_TIMEOUT
60+
int "SDP FLPR application fault timeout"
61+
default 1000000
62+
help
63+
Fault timeout in microseconds.
64+
65+
endif # SDP_FLPR_APP_FAULT_TIMER
66+
67+
endif # SDP_MSPI
4868

4969
endif # SDP
5070

0 commit comments

Comments
 (0)