123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- /** @file
- Slot Data Update.
- @copyright
- Copyright 2018 - 2021 Intel Corporation. <BR>
- SPDX-License-Identifier: BSD-2-Clause-Patent
- **/
- #include "SlotDataUpdateDxe.h"
- UINT8
- GetTypeCooperCityRPIOU0Setting (
- UINT8 IOU0Data
- )
- {
- //
- // Change bifurcation of Port1A-1B as x4x4 when QATGpio enabled.
- //
- IOU0Data = IIO_BIFURCATE_xxx8x4x4;
- return IOU0Data;
- }
- UINT8
- GetTypeCooperCityRPIOU2Setting (
- UINT8 SkuPersonalityType,
- UINT8 IOU2Data
- )
- {
- return IOU2Data;
- }
- PLATFORM_SLOT_UPDATE_TABLE TypeCooperCityRPSlotTable =
- {
- PLATFORM_SLOT_UPDATE_SIGNATURE,
- PLATFORM_SLOT_UPDATE_VERSION,
- NULL,
- GetTypeCooperCityRPIOU0Setting,
- 1
- };
- PLATFORM_SLOT_UPDATE_TABLE2 TypeCooperCityRPSlotTable2 =
- {
- PLATFORM_SLOT_UPDATE_SIGNATURE,
- PLATFORM_SLOT_UPDATE_VERSION,
- NULL,
- GetTypeCooperCityRPIOU0Setting,
- 1,
- GetTypeCooperCityRPIOU2Setting
- };
- /**
- The Driver Entry Point.
- The function is the driver Entry point.
- @param ImageHandle A handle for the image that is initializing this driver
- @param SystemTable A pointer to the EFI system table
- @retval EFI_SUCCESS: Driver initialized successfully
- @retval EFI_LOAD_ERROR: Failed to Initialize or has been loaded
- @retval EFI_OUT_OF_RESOURCES Could not allocate needed resources
- **/
- EFI_STATUS
- EFIAPI
- SlotDataUpdateEntry (
- IN EFI_HANDLE ImageHandle,
- IN EFI_SYSTEM_TABLE *SystemTable
- )
- {
- EFI_STATUS Status;
- UBA_CONFIG_DATABASE_PROTOCOL *UbaConfigProtocol = NULL;
- DEBUG((DEBUG_INFO, "UBA:SlotDataUpdate-TypeCooperCityRP\n"));
- Status = gBS->LocateProtocol (
- &gUbaConfigDatabaseProtocolGuid,
- NULL,
- (VOID **) &UbaConfigProtocol
- );
- if (EFI_ERROR(Status)) {
- return Status;
- }
- Status = UbaConfigProtocol->AddData (
- UbaConfigProtocol,
- &gPlatformSlotDataDxeGuid,
- &TypeCooperCityRPSlotTable,
- sizeof(TypeCooperCityRPSlotTable)
- );
- if (EFI_ERROR(Status)) {
- return Status;
- }
- Status = UbaConfigProtocol->AddData (
- UbaConfigProtocol,
- &gPlatformSlotDataGuid2,
- &TypeCooperCityRPSlotTable2,
- sizeof(TypeCooperCityRPSlotTable2)
- );
- if (EFI_ERROR(Status)) {
- return Status;
- }
- return Status;
- }
|