The TI_SECURE_DEVICE config symbols enables support for HS devices. When
enabled some insecure options are disabled such as falcon mode. Even
though falcon mode can be enabled for k3 devices securely.

Thus to allow for more granular disablement of options, this patch
introduces two new hidden symbols for legacy and k3 architectures.

Signed-off-by: Anshul Dalal <ansh...@ti.com>
---
 arch/arm/Kconfig | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 40368abc297..68df62c1d01 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -2255,9 +2255,17 @@ config TFABOOT
          Enabling this option will make a U-Boot binary that is relying
          on other firmware layers to provide secure functionality.
 
+config TI_SECURE_DEVICE_K2_OMAP2PLUS
+       bool
+
+config TI_SECURE_DEVICE_K3
+       bool
+
 config TI_SECURE_DEVICE
        bool "HS Device Type Support"
        depends on ARCH_KEYSTONE || ARCH_OMAP2PLUS || ARCH_K3
+       select TI_SECURE_DEVICE_K2_OMAP2PLUS if ARCH_KEYSTONE || ARCH_OMAP2PLUS
+       select TI_SECURE_DEVICE_K3 if ARCH_K3
        help
          If a high secure (HS) device type is being used, this config
          must be set. This option impacts various aspects of the
-- 
2.51.0

Reply via email to