Kconfig: Refine platform Kconfig configs
Add more configs from config_base.cmake and operate the
relationship like dependency with SPM and secure partition
configs. To make the structure clear, these configs are
modularized.
Signed-off-by: Jianliang Shen <jianliang.shen@arm.com>
Change-Id: I82e46ff646acc4e569be841ff1541844fb463e0d
diff --git a/platform/Kconfig b/platform/Kconfig
index 45cba5e..f8e59fd 100644
--- a/platform/Kconfig
+++ b/platform/Kconfig
@@ -1,65 +1,33 @@
#-------------------------------------------------------------------------------
-# Copyright (c) 2022, Arm Limited. All rights reserved.
+# Copyright (c) 2022-2023, Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
#-------------------------------------------------------------------------------
-rsource "Kconfig.arch"
-
menu "Platform options"
-config PLATFORM_DEFAULT_BL1
- bool "Use default BL1"
- default y
+rsource "Kconfig.arch"
-config PLATFORM_DEFAULT_ATTEST_HAL
- bool "Use default attest hal implementation"
- default y
-
-config PLATFORM_DEFAULT_NV_COUNTERS
- bool "Use default nv counter implementation"
- default y
- depends on PLATFORM_DEFAULT_OTP_WRITEABLE
-
-config PLATFORM_DEFAULT_CRYPTO_KEYS
- bool "Use default crypto keys implementation"
- default y
-
-config PLATFORM_DEFAULT_ROTPK
- bool "Use default root of trust public key"
- default y
-
-config PLATFORM_DEFAULT_IAK
- bool "Use default initial attestation_key"
- default y
-
-config PLATFORM_DEFAULT_UART_STDOUT
- bool "Use default uart stdout implementation"
- default y
-
-config PLATFORM_DEFAULT_NV_SEED
- bool "Use default NV seed implementation"
- default y
-
-config PLATFORM_DEFAULT_OTP
- bool "Use trusted on-chip flash to implement OTP memory"
- default y
-
-config PLATFORM_DEFAULT_OTP_WRITEABLE
- bool "Use OTP memory with write support"
- default y
-
-config PLATFORM_DEFAULT_PROVISIONING
- bool "Use default provisioning implementation"
- default y
-
-config PLATFORM_DEFAULT_SYSTEM_RESET_HALT
- bool "Use default system reset/halt implementation"
- default y
-
-config PLATFORM_HAS_FIRMWARE_UPDATE_SUPPORT
- bool
+config SECURE_UART1
+ bool "Enable secure UART1"
default n
+config TFM_DUMMY_PROVISIONING
+ bool "Provision with dummy values"
+ default y
+ select PLATFORM_DEFAULT_OTP_WRITEABLE if PLATFORM_DEFAULT_OTP
+ help
+ NOT to be used in production
+
+################################# Crypto dependencies ##########################
+
+config CRYPTO_HW_ACCELERATOR
+ bool "Enable the crypto hardware accelerator"
+ depends on CRYPTO_HW_ACCELERATOR_TYPE != ""
+ default n
+
+rsource "Kconfig.fpu"
+rsource "Kconfig.platform"
+
endmenu