]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmVExpressPkg: use PSCI for system reset only on AARCH64 platforms
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 10 Jul 2015 15:10:00 +0000 (15:10 +0000)
committeroliviermartin <oliviermartin@Edk2>
Fri, 10 Jul 2015 15:10:00 +0000 (15:10 +0000)
The PSCI specification covers both ARM and AARCH64, however, the
ARM Trusted Firmware (ATF) reference implementation is only available
for AARCH64, and PSCI firmware is not widely available for ARM platforms.

So use the EfiResetSystemLib implementation that uses PSCI calls only
on AARCH64, and revert to the Versatile Express-specific system register
interface (which is only available during boot time) on ARM platforms.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17927 6f19259b-4bc3-4df7-8a09-765794883524

ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc

index ca47db5924752afa7d78730e47581f773bf6e741..37a1ef7361385df72ec08ca68b4cb4836ad37997 100644 (file)
   CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf\r
   ArmPlatformSysConfigLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSysConfigRuntimeLib/ArmVExpressSysConfigRuntimeLib.inf\r
 \r
   CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf\r
   ArmPlatformSysConfigLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSysConfigRuntimeLib/ArmVExpressSysConfigRuntimeLib.inf\r
 \r
+[LibraryClasses.AARCH64.DXE_RUNTIME_DRIVER]\r
   #\r
   # PSCI support in EL3 may not be available if we are not running under a PSCI\r
   # compliant secure firmware, but since the default VExpress EfiResetSystemLib\r
   #\r
   # PSCI support in EL3 may not be available if we are not running under a PSCI\r
   # compliant secure firmware, but since the default VExpress EfiResetSystemLib\r