Skip to contentSkip to conversation

nxp: Move FSL_SEC_MON related options to arch/Kconfig.nxp

PATCH Applied Tom Rini 2 participants 2 messages Jul 11, 2025 – Jul 17, 2025 Char and misc drivers

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 nxp: Move FSL_SEC_MON related options to arch/Kconfig.nxp

The options related to FSL_SEC_MON are part of the chain of trust related options and should be under that menu, so move it there. Furthermore we don't need to prompt for the driver itself but do need to allow for configuration of the monitor endianess.

---
 arch/Kconfig.nxp     | 22 ++++++++++++++++++++++
 drivers/misc/Kconfig | 22 ----------------------
 2 files changed, 22 insertions(+), 22 deletions(-)
arch/Kconfig.nxp +22 -0
index 5a8c382ed753..ef9087d01973 100644
@@ -84,6 +84,28 @@ config SYS_FSL_SFP_VER_3_4
 
 endchoice
 
+config FSL_SEC_MON
+	bool
+	help
+	  Freescale Security Monitor block is responsible for monitoring
+	  system states.
+	  Security Monitor can be transitioned on any security failures,
+	  like software violations or hardware security violations.
+
+choice
+	prompt "Security monitor interaction endianess"
+	depends on FSL_SEC_MON
+	default SYS_FSL_SEC_MON_BE if PPC
+	default SYS_FSL_SEC_MON_LE
+
+config SYS_FSL_SEC_MON_LE
+	bool "Security monitor interactions are little endian"
+
+config SYS_FSL_SEC_MON_BE
+	bool "Security monitor interactions are big endian"
+
+endchoice
+
 config SPL_UBOOT_KEY_HASH
 	string "Non-SRK key hash for U-Boot public/private key pair"
 	depends on SPL
drivers/misc/Kconfig +0 -22
index c4a4510f9687..d7433120b75a 100644
@@ -294,28 +294,6 @@ config FSL_IIM
 	bool "Enable FSL IC Identification Module (IIM) driver"
 	depends on ARCH_MX5
 
-config FSL_SEC_MON
-	bool "Enable FSL SEC_MON Driver"
-	help
-	  Freescale Security Monitor block is responsible for monitoring
-	  system states.
-	  Security Monitor can be transitioned on any security failures,
-	  like software violations or hardware security violations.
-
-choice
-	prompt "Security monitor interaction endianess"
-	depends on FSL_SEC_MON
-	default SYS_FSL_SEC_MON_BE if PPC
-	default SYS_FSL_SEC_MON_LE
-
-config SYS_FSL_SEC_MON_LE
-	bool "Security monitor interactions are little endian"
-
-config SYS_FSL_SEC_MON_BE
-	bool "Security monitor interactions are big endian"
-
-endchoice
-
 config IRQ
 	bool "Interrupt controller"
 	help
Signature · 1 line
2.43.0
#1 lore raw
Quoted 7 lines · Tom Rini

The options related to FSL_SEC_MON are part of the chain of trust related options and should be under that menu, so move it there. Furthermore we don't need to prompt for the driver itself but do need to allow for configuration of the monitor endianess.

Applied, thanks.