From 5c39fbfa134a28ae580a9d6768d36d7f5b964724 Mon Sep 17 00:00:00 2001
From: Svyatoslav Ryhel <clamor95@gmail.com>
Date: Mon, 11 Dec 2023 11:37:07 +0200
Subject: [PATCH] ARM: tegra114: support nonsecure state detection

Principle is exactly the same as on T124, testing of register
which behaves differently in secure and non-secure states.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
---
 arch/arm/mach-tegra/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfig
index fb1a46b780..c8907bccec 100644
--- a/arch/arm/mach-tegra/Kconfig
+++ b/arch/arm/mach-tegra/Kconfig
@@ -178,7 +178,7 @@ config TEGRA_DISCONNECT_UDC_ON_BOOT
 
 config TEGRA_SUPPORT_NON_SECURE
 	bool "Support executing U-Boot in non-secure (NS) mode"
-	depends on TEGRA124
+	depends on TEGRA114 || TEGRA124
 	help
 	  Certain impossible actions will be skipped if the CPU is in NS mode,
 	  such as ARM architectural timer initialization.
-- 
2.39.5