]> git.proxmox.com Git - mirror_edk2.git/blob - Vlv2TbltDevicePkg/Library/MultiPlatformLib/BoardOemIds/BoardOemIds.c
Vlv2TbltDevicePkg: Replace BSD License with BSD+Patent License
[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 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8
9
10 **/
11
12 #include <BoardOemIds.h>
13
14 //
15 // Global module data
16 //
17 EFI_STATUS
18 InitializeBoardOemId (
19 IN CONST EFI_PEI_SERVICES **PeiServices,
20 IN EFI_PLATFORM_INFO_HOB *PlatformInfoHob
21 )
22 {
23 UINT64 OemId;
24 UINT64 OemTableId;
25
26 //
27 // Set OEM ID according to Board ID.
28 //
29 switch (PlatformInfoHob->BoardId) {
30
31 case BOARD_ID_MINNOW2:
32 case BOARD_ID_MINNOW2_TURBOT:
33 default:
34 OemId = EFI_ACPI_OEM_ID_DEFAULT;
35 OemTableId = EFI_ACPI_OEM_TABLE_ID_DEFAULT;
36 break;
37 }
38
39 PlatformInfoHob->AcpiOemId = OemId;
40 PlatformInfoHob->AcpiOemTableId = OemTableId;
41 return EFI_SUCCESS;
42 }
43