]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPkg/PL390Gic: Added support for ArmGicDisableInterruptInterface()
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 4 Jul 2012 20:02:49 +0000 (20:02 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 4 Jul 2012 20:02:49 +0000 (20:02 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13489 6f19259b-4bc3-4df7-8a09-765794883524

ArmPkg/Drivers/PL390Gic/PL390GicSec.c
ArmPkg/Include/Library/ArmGicLib.h

index c137c95f20587951a850ce280b20ead406ca4b08..25038bd63fcb8dcc2daff7ab71e92c7050c8c85b 100644 (file)
@@ -107,6 +107,19 @@ ArmGicEnableInterruptInterface (
       ARM_GIC_ICCICR_SIGNAL_SECURE_TO_FIQ);\r
 }\r
 \r
+VOID\r
+EFIAPI\r
+ArmGicDisableInterruptInterface (\r
+  IN  INTN          GicInterruptInterfaceBase\r
+  )\r
+{\r
+  UINT32    ControlValue;\r
+\r
+  // Disable CPU interface in Secure world and Non-secure World\r
+  ControlValue = MmioRead32 (GicInterruptInterfaceBase + ARM_GIC_ICCICR);\r
+  MmioWrite32 (GicInterruptInterfaceBase + ARM_GIC_ICCICR, ControlValue & ~(ARM_GIC_ICCICR_ENABLE_SECURE | ARM_GIC_ICCICR_ENABLE_NS));\r
+}\r
+\r
 VOID\r
 EFIAPI\r
 ArmGicEnableDistributor (\r
index c115767bbf413acb8a54a7bf767691fd6e492e09..6da072807b6f530ccbe4ecd253d9cc1d66860134 100644 (file)
@@ -96,6 +96,12 @@ ArmGicEnableInterruptInterface (
   IN  INTN          GicInterruptInterfaceBase\r
   );\r
 \r
+VOID\r
+EFIAPI\r
+ArmGicDisableInterruptInterface (\r
+  IN  INTN          GicInterruptInterfaceBase\r
+  );\r
+\r
 VOID\r
 EFIAPI\r
 ArmGicEnableDistributor (\r