瀏覽代碼

WhiskeylakeOpenBoardPkg/WhiskeylakeURvp: Remove BoardFuncInit

Removes BoardFuncInit related functionality in WhiskeylakeURvp.

Co-authored-by: Michael Kubacki <michael.a.kubacki@intel.com>
Cc: Chasel Chiu <chasel.chiu@intel.com>
Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
Signed-off-by: Prince Agyeman <prince.agyeman@intel.com>
Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
Reviewed-by: Chasel Chiu <chasel.chiu@intel.com>
Prince Agyeman 4 年之前
父節點
當前提交
9227724a13

+ 0 - 19
Platform/Intel/WhiskeylakeOpenBoardPkg/WhiskeylakeURvp/Library/BoardInitLib/BoardFunc.c

@@ -1,19 +0,0 @@
-/** @file
-  Board's PCD function hook.
-
-
-  Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
-  SPDX-License-Identifier: BSD-2-Clause-Patent
-**/
-
-#include <PiPei.h>
-
-EFI_STATUS
-PeiBoardSpecificInitPostMemNull (
-  VOID
-  )
-{
-  return EFI_SUCCESS;
-}
-
-

+ 0 - 20
Platform/Intel/WhiskeylakeOpenBoardPkg/WhiskeylakeURvp/Library/BoardInitLib/BoardFunc.h

@@ -1,20 +0,0 @@
-/** @file
-  Header file for Board Hook function intance.
-
-
-  Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
-  SPDX-License-Identifier: BSD-2-Clause-Patent
-**/
-
-#ifndef _BOARD_FUNC_H_
-#define _BOARD_FUNC_H_
-
-#include <Uefi.h>
-
-EFI_STATUS
-PeiBoardSpecificInitPostMemNull (
-  VOID
-  );
-
-#endif // _BOARD_FUNC_H_
-

+ 0 - 26
Platform/Intel/WhiskeylakeOpenBoardPkg/WhiskeylakeURvp/Library/BoardInitLib/BoardFuncInit.c

@@ -1,26 +0,0 @@
-/** @file
-  Source code for the board configuration init function in Post Memory init phase.
-
-
-  Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
-  SPDX-License-Identifier: BSD-2-Clause-Patent
-**/
-
-#include "BoardFunc.h"
-
-/**
-  Board's PCD function hook init function for PEI post memory phase.
-
-  @param[in]  BoardId   An unsigned integrer represent the board id.
-
-  @retval EFI_SUCCESS   The function completed successfully.
-**/
-EFI_STATUS
-BoardFunctionInit (
-  IN UINT16 BoardId
-)
-{
-
-  return EFI_SUCCESS;
-}
-

+ 7 - 22
Platform/Intel/WhiskeylakeOpenBoardPkg/WhiskeylakeURvp/Library/BoardInitLib/BoardFuncInitPreMem.c

@@ -2,39 +2,24 @@
   Source code for the board configuration init function in Post Memory init phase.
 
 
-  Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
+  Copyright (c) 2019 - 2020, Intel Corporation. All rights reserved.<BR>
   SPDX-License-Identifier: BSD-2-Clause-Patent
 **/
 
 #include <GopConfigLib.h>
+
 //
 // Null function for nothing GOP VBT update.
 //
 VOID
-GopVbtSpecificUpdateNull(
+GopVbtSpecificUpdateNull (
   IN CHILD_STRUCT **ChildStructPtr
-);
+  );
+
 //
 // for CFL U DDR4
 //
 VOID
-CflUDdr4GopVbtSpecificUpdate(
+CflUDdr4GopVbtSpecificUpdate (
   IN CHILD_STRUCT **ChildStructPtr
-);
-/**
-  Board's PCD function hook init function for PEI post memory phase.
-
-  @param[in]  BoardId   An unsigned integrer represent the board id.
-
-  @retval EFI_SUCCESS   The function completed successfully.
-**/
-EFI_STATUS
-BoardFunctionInitPreMem (
-  IN UINT16 BoardId
-  )
-{
-
-  return EFI_SUCCESS;
-}
-
-
+  );

+ 1 - 2
Platform/Intel/WhiskeylakeOpenBoardPkg/WhiskeylakeURvp/Library/BoardInitLib/BoardPchInitPreMemLib.c

@@ -2,7 +2,7 @@
  Source code for the board PCH configuration Pcd init functions for Pre-Memory Init phase.
 
 
-  Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
+  Copyright (c) 2019 - 2020, Intel Corporation. All rights reserved.<BR>
   SPDX-License-Identifier: BSD-2-Clause-Patent
 **/
 
@@ -310,7 +310,6 @@ GpioGroupTierInit (
   //
   // GPIO Group Tier
   //
-
   switch (BoardId) {
     case BoardIdWhiskeyLakeRvp:
       PcdSet32S (PcdGpioGroupToGpeDw0, GPIO_CNL_LP_GROUP_GPP_G);

+ 0 - 4
Platform/Intel/WhiskeylakeOpenBoardPkg/WhiskeylakeURvp/Library/BoardInitLib/PeiMultiBoardInitPostMemLib.inf

@@ -44,13 +44,9 @@
 [Sources]
   PeiWhiskeylakeURvpInitPostMemLib.c
   PeiMultiBoardInitPostMemLib.c
-  BoardFunc.c
-  BoardFuncInit.c
   GpioTableDefault.c
   GpioTableWhiskeylakeUDdr4Rvp.c
 
-[FixedPcd]
-
 [Pcd]
   gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdBoardGpioTable
   gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdBoardGpioTableSize

+ 0 - 8
Platform/Intel/WhiskeylakeOpenBoardPkg/WhiskeylakeURvp/Library/BoardInitLib/PeiWhiskeylakeURvpInitPostMemLib.c

@@ -33,11 +33,6 @@
 #include "WhiskeylakeURvpInit.h"
 #include <Library/ConfigBlockLib.h>
 
-EFI_STATUS
-BoardFunctionInit (
-  IN UINT16 BoardId
-  );
-
 /**
   GPIO init function for PEI post memory phase.
 
@@ -168,9 +163,6 @@ BoardConfigInit (
   Status = BoardMiscInit (BoardId);
   ASSERT_EFI_ERROR (Status);
 
-  Status = BoardFunctionInit (BoardId);
-  ASSERT_EFI_ERROR (Status);
-
   Status = BoardSecurityInit (BoardId);
   ASSERT_EFI_ERROR (Status);
 }

+ 1 - 9
Platform/Intel/WhiskeylakeOpenBoardPkg/WhiskeylakeURvp/Library/BoardInitLib/PeiWhiskeylakeURvpInitPreMemLib.c

@@ -1,6 +1,6 @@
 /** @file
 
-  Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
+  Copyright (c) 2019 - 2020, Intel Corporation. All rights reserved.<BR>
   SPDX-License-Identifier: BSD-2-Clause-Patent
 **/
 
@@ -120,11 +120,6 @@ SaDisplayConfigInit (
   IN UINT16 BoardId
   );
 
-EFI_STATUS
-BoardFunctionInitPreMem (
-  IN UINT16 BoardId
-  );
-
 EFI_STATUS
 EFIAPI
 PlatformInitPreMemCallBack (
@@ -273,9 +268,6 @@ BoardConfigInitPreMem (
 
   Status = SaDisplayConfigInit (BoardId);
   ASSERT_EFI_ERROR (Status);
-
-  Status = BoardFunctionInitPreMem (BoardId);
-  ASSERT_EFI_ERROR (Status);
 }
 
 /**