PeiPchPolicyBoardConfig.c 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /** @file
  2. Intel PEI PCH Policy update by board configuration
  3. Copyright (c) 2019 - 2020 Intel Corporation. All rights reserved.<BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #include "PeiPolicyBoardConfig.h"
  7. #include <Library/ConfigBlockLib.h>
  8. /**
  9. This function performs PEI PCH Policy update by board configuration.
  10. @param[in, out] SiPolicy The SI Policy PPI instance
  11. @retval EFI_SUCCESS The SI Policy is successfully updated.
  12. @retval Others The SI Policy is not successfully updated.
  13. **/
  14. EFI_STATUS
  15. EFIAPI
  16. UpdatePeiPchPolicyBoardConfig (
  17. IN OUT SI_POLICY_PPI *SiPolicyPpi
  18. )
  19. {
  20. EFI_STATUS Status;
  21. PCH_GENERAL_CONFIG *PchGeneralConfig;
  22. DEBUG((DEBUG_INFO, "Updating PCH Policy by board config in Post Mem\n"));
  23. Status = GetConfigBlock ((VOID *) SiPolicyPpi, &gPchGeneralConfigGuid, (VOID *) &PchGeneralConfig);
  24. ASSERT_EFI_ERROR (Status);
  25. return Status;
  26. }