3 * Copyright (c) 2011-2014, ARM Limited. All rights reserved.
5 * SPDX-License-Identifier: BSD-2-Clause-Patent
10 #include <Library/IoLib.h>
11 #include <Library/ArmGicLib.h>
15 ArmGicV2EnableInterruptInterface (
16 IN INTN GicInterruptInterfaceBase
20 * Enable the CPU interface in Non-Secure world
21 * Note: The ICCICR register is banked when Security extensions are implemented
23 MmioWrite32 (GicInterruptInterfaceBase
+ ARM_GIC_ICCICR
, 0x1);
28 ArmGicV2DisableInterruptInterface (
29 IN INTN GicInterruptInterfaceBase
32 // Disable Gic Interface
33 MmioWrite32 (GicInterruptInterfaceBase
+ ARM_GIC_ICCICR
, 0x0);
34 MmioWrite32 (GicInterruptInterfaceBase
+ ARM_GIC_ICCPMR
, 0x0);