ArmPlatformPkg/PlatformPei: Generate a library from the PEI Module
[mirror_edk2.git] / ArmPlatformPkg / PlatformPei / PlatformPeiLib.c
1 /** @file
2 *
3 * Copyright (c) 2011, ARM Limited. All rights reserved.
4 *
5 * This program and the accompanying materials
6 * are licensed and made available under the terms and conditions of the BSD License
7 * which accompanies this distribution. The full text of the license may be found at
8 * http://opensource.org/licenses/bsd-license.php
9 *
10 * THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12 *
13 **/
14
15 #include <PiPei.h>
16
17 #include <Library/ArmPlatformLib.h>
18 #include <Library/HobLib.h>
19 #include <Library/PcdLib.h>
20
21 EFI_STATUS
22 EFIAPI
23 PlatformPeim (
24 VOID
25 )
26 {
27 // Initialize the platform specific controllers
28 ArmPlatformNormalInitialize ();
29
30 BuildCpuHob (PcdGet8 (PcdPrePiCpuMemorySize), PcdGet8 (PcdPrePiCpuIoSize));
31
32 BuildFvHob (PcdGet32(PcdNormalFvBaseAddress), PcdGet32(PcdNormalFvSize));
33
34 return EFI_SUCCESS;
35 }