]> git.proxmox.com Git - mirror_edk2.git/blob - Vlv2TbltDevicePkg/Library/MultiPlatformLib/BoardOemIds/BoardOemIds.c
Upload BSD-licensed Vlv2TbltDevicePkg and Vlv2DeviceRefCodePkg to
[mirror_edk2.git] / Vlv2TbltDevicePkg / Library / MultiPlatformLib / BoardOemIds / BoardOemIds.c
1 /** @file
2 ACPI oem ids setting for multiplatform.
3
4 Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
5
6 This program and the accompanying materials are licensed and made available under
7 the terms and conditions of the BSD License that accompanies this distribution.
8 The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php.
10
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13
14
15 **/
16
17 #include <BoardOemIds.h>
18
19 //
20 // Global module data
21 //
22 EFI_STATUS
23 InitializeBoardOemId (
24 IN CONST EFI_PEI_SERVICES **PeiServices,
25 IN EFI_PLATFORM_INFO_HOB *PlatformInfoHob
26 )
27 {
28 UINT64 OemId;
29 UINT64 OemTableId;
30
31 //
32 // Set OEM ID according to Board ID.
33 //
34 switch (PlatformInfoHob->BoardId) {
35
36 case BOARD_ID_MINNOW2:
37 default:
38 OemId = EFI_ACPI_OEM_ID_DEFAULT;
39 OemTableId = EFI_ACPI_OEM_TABLE_ID_DEFAULT;
40 break;
41 }
42
43 PlatformInfoHob->AcpiOemId = OemId;
44 PlatformInfoHob->AcpiOemTableId = OemTableId;
45 return EFI_SUCCESS;
46 }
47