]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFsp2WrapperPkg/Library/SecFspWrapperPlatformSecLibSample/PlatformInit.c
IntelFsp2WrapperPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / IntelFsp2WrapperPkg / Library / SecFspWrapperPlatformSecLibSample / PlatformInit.c
CommitLineData
cf1d4549
JY
1/** @file\r
2 Sample to provide platform init function.\r
3\r
4 Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>\r
512e23a3 5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
cf1d4549
JY
6\r
7**/\r
8\r
9\r
10#include <PiPei.h>\r
11#include <Library/DebugLib.h>\r
12#include <Library/SerialPortLib.h>\r
13\r
14/**\r
15 Platform initialization.\r
16\r
17 @param[in] FspHobList HobList produced by FSP.\r
18 @param[in] StartOfRange Start of temporary RAM.\r
19 @param[in] EndOfRange End of temporary RAM.\r
20**/\r
21VOID\r
22EFIAPI\r
23PlatformInit (\r
24 IN VOID *FspHobList,\r
25 IN VOID *StartOfRange,\r
26 IN VOID *EndOfRange\r
27 )\r
28{\r
29 //\r
30 // Platform initialization\r
31 // Enable Serial port here\r
32 //\r
33 SerialPortInitialize ();\r
34\r
35 DEBUG ((DEBUG_INFO, "PrintPeiCoreEntryPointParam in PlatformInit\n"));\r
36 DEBUG ((DEBUG_INFO, "FspHobList - 0x%x\n", FspHobList));\r
37 DEBUG ((DEBUG_INFO, "StartOfRange - 0x%x\n", StartOfRange));\r
38 DEBUG ((DEBUG_INFO, "EndOfRange - 0x%x\n", EndOfRange));\r
39}\r