From 1b7a95c756e9143c4922468ddf9ded301ca84286 Mon Sep 17 00:00:00 2001 From: Ville Juven Date: Tue, 23 Apr 2024 12:46:13 +0300 Subject: [PATCH] arch/imx9: Add PSCI (system reset) support ARMv8.2-A has PSCI -> it also has support for system reset --- arch/arm64/src/imx9/Kconfig | 2 ++ arch/arm64/src/imx9/imx9_boot.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/arch/arm64/src/imx9/Kconfig b/arch/arm64/src/imx9/Kconfig index aa27d2fb3f..cebadac8dd 100644 --- a/arch/arm64/src/imx9/Kconfig +++ b/arch/arm64/src/imx9/Kconfig @@ -16,7 +16,9 @@ config ARCH_CHIP_IMX93 select ARCH_HAVE_MULTICPU select ARMV8A_HAVE_GICv3 select ARCH_CORTEX_A55 + select ARCH_HAVE_PSCI select ARCH_HAVE_PWM_MULTICHAN + select ARCH_HAVE_RESET endchoice # i.MX9 Chip Selection diff --git a/arch/arm64/src/imx9/imx9_boot.c b/arch/arm64/src/imx9/imx9_boot.c index aaef4e8606..21449415ed 100644 --- a/arch/arm64/src/imx9/imx9_boot.c +++ b/arch/arm64/src/imx9/imx9_boot.c @@ -105,6 +105,10 @@ void arm64_chip_boot(void) imx9_lowsetup(); #endif +#if defined(CONFIG_SMP) || defined(CONFIG_ARCH_HAVE_PSCI) + arm64_psci_init("smc"); +#endif + /* Initialize pin interrupt support */ #ifdef CONFIG_IMX9_GPIO_IRQ