From c2a300d2b00c5ae8def932c789fbfb8811feb9f3 Mon Sep 17 00:00:00 2001 From: Jouni Ukkonen Date: Mon, 19 Aug 2024 09:10:50 +0300 Subject: [PATCH] arch/arm64/imx9: Change Kconfig logic New configuration IMX9_HAVE_ATF_FIRMWARE introduced, it is default on and it selects ARM64_HAVE_PSCI, when compiling bootloader or when using bootloader that does not have atf this shall be disabled Signed-off-by: Jouni Ukkonen --- arch/arm64/src/imx9/Kconfig | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm64/src/imx9/Kconfig b/arch/arm64/src/imx9/Kconfig index c82c818790..40d0caaa62 100644 --- a/arch/arm64/src/imx9/Kconfig +++ b/arch/arm64/src/imx9/Kconfig @@ -16,7 +16,6 @@ config ARCH_CHIP_IMX93 select ARCH_HAVE_MULTICPU select ARMV8A_HAVE_GICv3 select ARCH_CORTEX_A55 - select ARM64_HAVE_PSCI if !IMX9_BOOTLOADER select ARCH_HAVE_PWM_MULTICHAN select ARCH_HAVE_RESET @@ -47,6 +46,15 @@ config IMX9_FLEXIO_PWM select PWM_MULTICHAN default n +config IMX9_HAVE_ATF_FIRMWARE + bool "ARM ATF services support in bootloader" + default y + select ARM64_HAVE_PSCI + ---help--- + Configure this n if using Nuttx bootloader that does not + implemet EL3 services, by default this is y when using uboot as + a booloader + config IMX9_BOOTLOADER bool "Bootloader" select ARM64_DECODEFIQ