]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPkg/Drivers/ArmGic/ArmGicNonSecLib.c
ArmPkg/ArmGic: Function to locate the current CPU GIC redistributor
[mirror_edk2.git] / ArmPkg / Drivers / ArmGic / ArmGicNonSecLib.c
CommitLineData
1bfda055 1/** @file\r
2*\r
60775c51 3* Copyright (c) 2011-2014, ARM Limited. All rights reserved.\r
1bfda055 4*\r
397bdc99
OM
5* This program and the accompanying materials\r
6* are licensed and made available under the terms and conditions of the BSD License\r
7* which accompanies this distribution. The full text of the license may be found at\r
8* http://opensource.org/licenses/bsd-license.php\r
9*\r
10* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
1bfda055 12*\r
13**/\r
14\r
438311a3 15#include <Uefi.h>\r
1bfda055 16#include <Library/IoLib.h>\r
55a0d64b 17#include <Library/ArmGicLib.h>\r
1bfda055 18\r
1bfda055 19VOID\r
20EFIAPI\r
55a0d64b 21ArmGicEnableDistributor (\r
1bfda055 22 IN INTN GicDistributorBase\r
23 )\r
24{\r
438311a3 25 /*\r
26 * Enable GIC distributor in Non-Secure world.\r
27 * Note: The ICDDCR register is banked when Security extensions are implemented\r
28 */\r
886f97c8 29 MmioWrite32 (GicDistributorBase + ARM_GIC_ICDDCR, 0x1);\r
1bfda055 30}\r