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 8 the terms and conditions of the BSD License that accompanies this distribution. 10 The full text of the license may be found at 12 http://opensource.org/licenses/bsd-license.php. 14 16 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 18 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 20 22 24 **/ 25 26 #include <BoardOemIds.h> 27 28 // 29 // Global module data 30 // 31 EFI_STATUS 32 InitializeBoardOemId ( 33 IN CONST EFI_PEI_SERVICES **PeiServices, 34 IN EFI_PLATFORM_INFO_HOB *PlatformInfoHob 35 ) 36 { 37 UINT64 OemId; 38 UINT64 OemTableId; 39 40 // 41 // Set OEM ID according to Board ID. 42 // 43 switch (PlatformInfoHob->BoardId) { 44 45 case BOARD_ID_MINNOW2: 46 case BOARD_ID_MINNOW2_TURBOT: 47 default: 48 OemId = EFI_ACPI_OEM_ID_DEFAULT; 49 OemTableId = EFI_ACPI_OEM_TABLE_ID_DEFAULT; 50 break; 51 } 52 53 PlatformInfoHob->AcpiOemId = OemId; 54 PlatformInfoHob->AcpiOemTableId = OemTableId; 55 return EFI_SUCCESS; 56 } 57 58