Browse Source

fsl-layerscape: do not use layerscape EFI reset if PSCI used

If the secure world reset handlers are used (via CONFIG_PSCI_RESET),
then do not use the layerscape-specific implementation.

Signed-off-by: Mathew McBride <matt@traverse.com.au>
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
Mathew McBride 4 years ago
parent
commit
28f9393b1a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/arm/cpu/armv8/fsl-layerscape/cpu.c

+ 1 - 1
arch/arm/cpu/armv8/fsl-layerscape/cpu.c

@@ -1221,7 +1221,7 @@ void __efi_runtime reset_cpu(ulong addr)
 #endif
 }
 
-#ifdef CONFIG_EFI_LOADER
+#if defined(CONFIG_EFI_LOADER) && !defined(CONFIG_PSCI_RESET)
 
 void __efi_runtime EFIAPI efi_reset_system(
 		       enum efi_reset_type reset_type,