File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
modules/trusted-firmware-m Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,12 @@ if (CONFIG_BUILD_WITH_TFM)
154
154
list (APPEND TFM_CMAKE_ARGS -DTFM_SPM_LOG_LEVEL=${TFM_SPM_LOG_LEVEL} )
155
155
endif ()
156
156
157
+ if (CONFIG_TFM_SECURE_UART)
158
+ list (APPEND TFM_CMAKE_ARGS -DSECURE_UART1=1)
159
+ else ()
160
+ list (APPEND TFM_CMAKE_ARGS -DSECURE_UART1=0)
161
+ endif ()
162
+
157
163
# Enable TFM partitions as specified in Kconfig
158
164
foreach (partition ${TFM_VALID_PARTITIONS} )
159
165
if (CONFIG_${partition} )
Original file line number Diff line number Diff line change @@ -508,6 +508,15 @@ config TFM_SPM_LOG_LEVEL_SILENCE
508
508
bool "Off"
509
509
endchoice
510
510
511
+ config TFM_SECURE_UART
512
+ bool "TF-M configure UART instance as secure peripheral"
513
+ default y if !TFM_LOG_LEVEL_SILENCE
514
+ help
515
+ Configure the UART instance as a secure peripheral for TF-M logging.
516
+ This makes the UART instance unavailable to the non-secure application.
517
+ When this option is selected the device tree node for the UART instance
518
+ needs to be disabled for the non-secure application.
519
+
511
520
config TFM_EXCEPTION_INFO_DUMP
512
521
bool "TF-M exception info dump"
513
522
default y
You can’t perform that action at this time.
0 commit comments