2011-02-02 23:35:30 +01:00
|
|
|
/** @file
|
|
|
|
*
|
2014-07-04 13:27:28 +02:00
|
|
|
* Copyright (c) 2011-2014, ARM Limited. All rights reserved.
|
2011-02-02 23:35:30 +01:00
|
|
|
*
|
2014-07-04 13:20:45 +02:00
|
|
|
* This program and the accompanying materials
|
|
|
|
* are licensed and made available under the terms and conditions of the BSD License
|
|
|
|
* which accompanies this distribution. The full text of the license may be found at
|
|
|
|
* http://opensource.org/licenses/bsd-license.php
|
|
|
|
*
|
|
|
|
* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
2011-02-02 23:35:30 +01:00
|
|
|
*
|
|
|
|
**/
|
|
|
|
|
2011-07-06 18:35:30 +02:00
|
|
|
#include <Uefi.h>
|
2011-02-02 23:35:30 +01:00
|
|
|
#include <Library/IoLib.h>
|
2011-09-23 00:59:52 +02:00
|
|
|
#include <Library/ArmGicLib.h>
|
2011-02-02 23:35:30 +01:00
|
|
|
|
|
|
|
VOID
|
|
|
|
EFIAPI
|
2011-09-23 00:59:52 +02:00
|
|
|
ArmGicEnableDistributor (
|
2011-02-02 23:35:30 +01:00
|
|
|
IN INTN GicDistributorBase
|
|
|
|
)
|
|
|
|
{
|
2011-07-06 18:35:30 +02:00
|
|
|
/*
|
|
|
|
* Enable GIC distributor in Non-Secure world.
|
|
|
|
* Note: The ICDDCR register is banked when Security extensions are implemented
|
|
|
|
*/
|
2011-09-27 18:42:47 +02:00
|
|
|
MmioWrite32 (GicDistributorBase + ARM_GIC_ICDDCR, 0x1);
|
2011-02-02 23:35:30 +01:00
|
|
|
}
|