15ArmGicEnableDistributor (
19 ARM_GIC_ARCH_REVISION Revision;
20 UINT32 GicDistributorCtl;
26 Revision = ArmGicGetSupportedArchRevision ();
27 if (Revision == ARM_GIC_ARCH_REVISION_2) {
28 MmioWrite32 (GicDistributorBase + ARM_GIC_ICDDCR, 0x1);
30 GicDistributorCtl =
MmioRead32 (GicDistributorBase + ARM_GIC_ICDDCR);
31 if ((GicDistributorCtl & ARM_GIC_ICDDCR_ARE) != 0) {
32 MmioOr32 (GicDistributorBase + ARM_GIC_ICDDCR, 0x2);
34 MmioOr32 (GicDistributorBase + ARM_GIC_ICDDCR, 0x1);
UINT32 EFIAPI MmioOr32(IN UINTN Address, IN UINT32 OrData)
UINT32 EFIAPI MmioRead32(IN UINTN Address)
UINT32 EFIAPI MmioWrite32(IN UINTN Address, IN UINT32 Value)