public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017 1/4] Board Specific Code.
@ 2017-11-24  3:33 zwei4
  2017-11-24  3:33 ` [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017 2/4] " zwei4
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: zwei4 @ 2017-11-24  3:33 UTC (permalink / raw)
  To: edk2-devel

Add BoardInitDxe lib for Minnowboard3 Next pre-product board.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: zwei4 <david.wei@intel.com>
---
 .../MinnowBoard3Next/BoardInitDxe/BoardInitDxe.c   | 68 ++++++++++++++++++++++
 .../MinnowBoard3Next/BoardInitDxe/BoardInitDxe.h   | 37 ++++++++++++
 .../MinnowBoard3Next/BoardInitDxe/BoardInitDxe.inf | 52 +++++++++++++++++
 3 files changed, 157 insertions(+)
 create mode 100644 Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitDxe/BoardInitDxe.c
 create mode 100644 Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitDxe/BoardInitDxe.h
 create mode 100644 Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitDxe/BoardInitDxe.inf

diff --git a/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitDxe/BoardInitDxe.c b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitDxe/BoardInitDxe.c
new file mode 100644
index 000000000..a1c2c3952
--- /dev/null
+++ b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitDxe/BoardInitDxe.c
@@ -0,0 +1,68 @@
+/** @file
+  Board specific functions in DXE phase to be set as dynamic PCD and consumed by
+  commmon platform code.
+
+  Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>
+
+  This program and the accompanying materials
+  are licensed and made available under the terms and conditions of the BSD License
+  which accompanies this distribution.  The full text of the license may be found at
+  http://opensource.org/licenses/bsd-license.php.
+
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+**/
+
+#include "BoardInitDxe.h"
+
+GET_BOARD_NAME mMb3NGetBoardNamePtr = Mb3NGetBoardName;
+
+CHAR16*
+EFIAPI
+Mb3NGetBoardName (
+  IN  UINT8                   BoardId
+  )
+{
+  STATIC CHAR16  BoardName[40];
+
+  DEBUG ((EFI_D_INFO,  "BoardInitDxe: GetBoardName - Minnow Board v3 Next\n"));
+
+  UnicodeSPrint (BoardName, sizeof (BoardName), L"Minnow Board v3 Next (0x%02X)", BoardId);
+
+  if (BoardId != (UINT8) BOARD_ID_MINNOW_NEXT) {
+    return NULL;
+  } else {
+    return BoardName;
+  }
+}
+
+
+/**
+  Set PCDs for board specific functions.
+
+  @param[in]  ImageHandle   ImageHandle of the loaded driver.
+  @param[in]  SystemTable   Pointer to the EFI System Table.
+
+  @retval     EFI_SUCCESS   The handlers were registered successfully.
+
+**/
+EFI_STATUS
+EFIAPI
+Mb3NBoardInitDxeConstructor (
+  IN EFI_HANDLE        ImageHandle,
+  IN EFI_SYSTEM_TABLE  *SystemTable
+  )
+{
+  UINT8       BoardId;
+
+  BoardId = PcdGet8 (PcdBoardId);
+  if (BoardId != (UINT8) BOARD_ID_MINNOW_NEXT) {
+    return EFI_SUCCESS;
+  }
+
+  PcdSet64 (PcdGetBoardNameFunc, (UINT64) mMb3NGetBoardNamePtr);
+
+  return EFI_SUCCESS;
+}
+
diff --git a/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitDxe/BoardInitDxe.h b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitDxe/BoardInitDxe.h
new file mode 100644
index 000000000..74407aca8
--- /dev/null
+++ b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitDxe/BoardInitDxe.h
@@ -0,0 +1,37 @@
+/** @file
+  The internal header file includes the common header files, defines
+  internal structure and functions used by ImageVerificationLib.
+
+  Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>
+
+  This program and the accompanying materials
+  are licensed and made available under the terms and conditions of the BSD License
+  which accompanies this distribution.  The full text of the license may be found at
+  http://opensource.org/licenses/bsd-license.php.
+
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+**/
+
+#ifndef __MINNOW3_NEXT_BOARD_INIT_DXE_H__
+#define __MINNOW3_NEXT_BOARD_INIT_DXE_H__
+
+#include <BoardFunctionsDxe.h>
+#include <Library/UefiDriverEntryPoint.h>
+#include <Library/DebugLib.h>
+#include <Library/UefiBootServicesTableLib.h>
+#include <Library/UefiRuntimeServicesTableLib.h>
+#include <Library/UefiLib.h>
+#include <Library/BaseLib.h>
+#include <Library/PcdLib.h>
+#include <Library/PrintLib.h>
+#include <Guid/PlatformInfo.h>
+
+CHAR16*
+EFIAPI
+Mb3NGetBoardName (
+  IN  UINT8                   BoardId
+  );
+
+#endif
diff --git a/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitDxe/BoardInitDxe.inf b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitDxe/BoardInitDxe.inf
new file mode 100644
index 000000000..0b385e9e7
--- /dev/null
+++ b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitDxe/BoardInitDxe.inf
@@ -0,0 +1,52 @@
+## @file
+#  Board specific functions in DXE phase to be set as dynamic PCD and consumed by
+#  commmon platform code.
+#
+#  Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>
+#
+#  This program and the accompanying materials
+#  are licensed and made available under the terms and conditions of the BSD License
+#  which accompanies this distribution. The full text of the license may be found at
+#  http://opensource.org/licenses/bsd-license.php.
+#
+#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+##
+
+[Defines]
+  INF_VERSION                    = 0x00010005
+  BASE_NAME                      = Mb3NBoardInitDxe
+  FILE_GUID                      = 82919D30-DA6E-4177-8358-D490B45EFF3B
+  MODULE_TYPE                    = DXE_DRIVER
+  VERSION_STRING                 = 1.0
+  LIBRARY_CLASS                  = NULL|DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SAL_DRIVER DXE_SMM_DRIVER UEFI_APPLICATION UEFI_DRIVER
+  CONSTRUCTOR                    = Mb3NBoardInitDxeConstructor
+
+[Sources]
+  BoardInitDxe.c
+  BoardInitDxe.h
+
+[Packages]
+  MdePkg/MdePkg.dec
+  MdeModulePkg/MdeModulePkg.dec
+  BroxtonPlatformPkg/PlatformPkg.dec
+  BroxtonSiPkg/BroxtonSiPkg.dec
+
+[LibraryClasses]
+  BaseLib
+  UefiLib
+  UefiBootServicesTableLib
+  UefiRuntimeServicesTableLib
+  DebugLib
+  PcdLib
+  PrintLib
+
+[Protocols]
+
+[Guids]
+
+[Pcd]
+  gPlatformModuleTokenSpaceGuid.PcdGetBoardNameFunc
+  gPlatformModuleTokenSpaceGuid.PcdBoardId
+
-- 
2.14.1.windows.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017 2/4] Board Specific Code.
  2017-11-24  3:33 [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017 1/4] Board Specific Code zwei4
@ 2017-11-24  3:33 ` zwei4
  2017-11-24  3:33 ` [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017 3/4] " zwei4
  2017-11-24  3:33 ` [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017 4/4] " zwei4
  2 siblings, 0 replies; 4+ messages in thread
From: zwei4 @ 2017-11-24  3:33 UTC (permalink / raw)
  To: edk2-devel

Add BoardInitPostMem lib for Minnowboard3 Next pre-product board.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: zwei4 <david.wei@intel.com>
---
 .../MinnowBoard3Next/BoardInitPostMem/BoardGpios.c | 251 +++++++++++++++
 .../MinnowBoard3Next/BoardInitPostMem/BoardGpios.h | 350 +++++++++++++++++++++
 .../MinnowBoard3Next/BoardInitPostMem/BoardInit.c  | 136 ++++++++
 .../MinnowBoard3Next/BoardInitPostMem/BoardInit.h  |  30 ++
 .../BoardInitPostMem/BoardInitMiscs.c              | 180 +++++++++++
 .../BoardInitPostMem/BoardInitMiscs.h              | 127 ++++++++
 .../BoardInitPostMem/BoardInitPostMem.inf          |  81 +++++
 .../BoardInitPostMem/PlatformInfoHob.c             |  58 ++++
 8 files changed, 1213 insertions(+)
 create mode 100644 Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPostMem/BoardGpios.c
 create mode 100644 Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPostMem/BoardGpios.h
 create mode 100644 Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPostMem/BoardInit.c
 create mode 100644 Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPostMem/BoardInit.h
 create mode 100644 Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPostMem/BoardInitMiscs.c
 create mode 100644 Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPostMem/BoardInitMiscs.h
 create mode 100644 Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPostMem/BoardInitPostMem.inf
 create mode 100644 Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPostMem/PlatformInfoHob.c

diff --git a/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPostMem/BoardGpios.c b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPostMem/BoardGpios.c
new file mode 100644
index 000000000..d89ee67ac
--- /dev/null
+++ b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPostMem/BoardGpios.c
@@ -0,0 +1,251 @@
+/** @file
+  Gpio setting for multiplatform.
+
+  Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>
+
+  This program and the accompanying materials
+  are licensed and made available under the terms and conditions of the BSD License
+  which accompanies this distribution.  The full text of the license may be found at
+  http://opensource.org/licenses/bsd-license.php.
+
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+**/
+
+#include "BoardGpios.h"
+#include <Library/GpioLib.h>
+#include <Library/SteppingLib.h>
+#include <Library/TimerLib.h>
+
+
+/**
+  Returns the Correct GPIO table for Mobile/Desktop respectively.
+  Before call it, make sure PlatformInfoHob->BoardId&PlatformFlavor is get correctly.
+
+  @param[in] PeiServices         General purpose services available to every PEIM.
+  @param[in] PlatformInfoHob     PlatformInfoHob pointer with PlatformFlavor specified.
+
+  @retval    EFI_SUCCESS         The function completed successfully.
+  @retval    EFI_DEVICE_ERROR    KSC fails to respond.
+
+**/
+EFI_STATUS
+Minnow3NextMultiPlatformGpioTableInit (
+  IN CONST EFI_PEI_SERVICES     **PeiServices,
+  IN EFI_PLATFORM_INFO_HOB      *PlatformInfoHob
+  )
+{
+  DEBUG ((DEBUG_INFO, "Minnow3NextMultiPlatformGpioTableInit()...\n"));
+  DEBUG ((DEBUG_INFO, "PlatformInfoHob->BoardId: 0x%02X\n", PlatformInfoHob->BoardId));
+
+  //
+  // Select/modify the GPIO initialization data based on the Board ID.
+  //
+  switch (PlatformInfoHob->BoardId) {
+    case BOARD_ID_LFH_CRB:
+    case BOARD_ID_MINNOW:
+    case BOARD_ID_MINNOW_NEXT:
+    case BOARD_ID_BENSON:
+      PlatformInfoHob->PlatformGpioSetting_SW = &mMinnow3Next_GpioInitData_SW[0];
+      PlatformInfoHob->PlatformGpioSetting_W  = &mMinnow3Next_GpioInitData_W[0];
+      PlatformInfoHob->PlatformGpioSetting_NW = &mMinnow3Next_GpioInitData_NW[0];
+      PlatformInfoHob->PlatformGpioSetting_N  = &mMinnow3Next_GpioInitData_N[0];
+      break;
+    default:
+      PlatformInfoHob->PlatformGpioSetting_SW = &mMinnow3Next_GpioInitData_SW[0];
+      PlatformInfoHob->PlatformGpioSetting_W  = &mMinnow3Next_GpioInitData_W[0];
+      PlatformInfoHob->PlatformGpioSetting_NW = &mMinnow3Next_GpioInitData_NW[0];
+      PlatformInfoHob->PlatformGpioSetting_N  = &mMinnow3Next_GpioInitData_N[0];
+      break;
+  }
+
+  return EFI_SUCCESS;
+}
+
+
+/**
+  Set GPIO Lock for security.
+
+**/
+VOID
+Minnow3NextSetGpioPadCfgLock (
+  VOID
+  )
+{
+  UINT32 Data32;
+
+  Data32 = 0;
+
+  //
+  // JTAG
+  //
+  GpioLockPadCfg (N_TCK);
+  GpioLockPadCfg (N_TRST_B);
+  GpioLockPadCfg (N_TMS);
+  GpioLockPadCfg (N_TDI);
+  GpioLockPadCfg (N_TDO);
+
+  //
+  // Power
+  //
+  GpioLockPadCfg (NW_PMIC_THERMTRIP_B);
+  GpioLockPadCfg (NW_PROCHOT_B);
+
+  //
+  // Touch
+  //
+  GpioLockPadCfg (NW_GPIO_118);
+  GpioLockPadCfg (NW_GPIO_119);
+  GpioLockPadCfg (NW_GPIO_120);
+  GpioLockPadCfg (NW_GPIO_121);
+  GpioLockPadCfg (NW_GPIO_122);
+  GpioLockPadCfg (NW_GPIO_123);
+
+  //
+  // SPI
+  //
+  GpioLockPadCfg (NW_GPIO_97);
+  GpioLockPadCfg (NW_GPIO_98);
+  GpioLockPadCfg (NW_GPIO_99);
+  GpioLockPadCfg (NW_GPIO_100);
+  GpioLockPadCfg (NW_GPIO_101);
+  GpioLockPadCfg (NW_GPIO_102);
+  GpioLockPadCfg (NW_GPIO_103);
+  GpioLockPadCfg (NW_FST_SPI_CLK_FB);
+
+  //
+  // SMBus
+  // Set SMBus GPIO PAD_CFG.PADRSTCFG to Powergood
+  //
+  Data32 = GpioPadRead (SW_SMB_ALERTB);
+  Data32 &= ~(BIT31 | BIT30);
+  GpioPadWrite (SW_SMB_ALERTB, Data32);
+
+  Data32 = GpioPadRead (SW_SMB_CLK);
+  Data32 &= ~(BIT31 | BIT30);
+  GpioPadWrite (SW_SMB_CLK, Data32);
+
+  Data32 = GpioPadRead (SW_SMB_DATA);
+  Data32 &= ~(BIT31 | BIT30);
+  GpioPadWrite (SW_SMB_DATA, Data32);
+
+  GpioLockPadCfg (SW_SMB_ALERTB);
+  GpioLockPadCfg (SW_SMB_CLK);
+  GpioLockPadCfg (SW_SMB_DATA);
+}
+
+
+/**
+  Returns the Correct GPIO table for Mobile/Desktop respectively.
+  Before call it, make sure PlatformInfoHob->BoardId&PlatformFlavor is get correctly.
+
+  @param[in] PeiServices          General purpose services available to every PEIM.
+  @param[in] PlatformInfoHob      PlatformInfoHob pointer with PlatformFlavor specified.
+
+  @retval    EFI_SUCCESS          The function completed successfully.
+  @retval    EFI_DEVICE_ERROR     KSC fails to respond.
+
+**/
+EFI_STATUS
+Minnow3NextMultiPlatformGpioProgram (
+  IN CONST EFI_PEI_SERVICES     **PeiServices,
+  IN EFI_PLATFORM_INFO_HOB      *PlatformInfoHob
+  )
+{
+  UINTN                             VariableSize;
+  EFI_PEI_READ_ONLY_VARIABLE2_PPI   *VariableServices;
+  SYSTEM_CONFIGURATION              SystemConfiguration;
+
+  VariableSize = sizeof (SYSTEM_CONFIGURATION);
+  ZeroMem (&SystemConfiguration, sizeof (SYSTEM_CONFIGURATION));
+
+ (*PeiServices)->LocatePpi (
+                    PeiServices,
+                    &gEfiPeiReadOnlyVariable2PpiGuid,
+                    0,
+                    NULL,
+                    (VOID **) &VariableServices
+                     );
+
+  VariableServices->GetVariable (
+                      VariableServices,
+                      PLATFORM_SETUP_VARIABLE_NAME,
+                      &gEfiSetupVariableGuid,
+                      NULL,
+                      &VariableSize,
+                      &SystemConfiguration
+                      );
+
+  DEBUG ((DEBUG_INFO, "MultiPlatformGpioProgram()...\n"));
+
+  switch (PlatformInfoHob->BoardId) {
+    case BOARD_ID_LFH_CRB:
+    case BOARD_ID_MINNOW:
+    case BOARD_ID_MINNOW_NEXT:
+    case BOARD_ID_BENSON:
+      //
+      // PAD programming
+      //
+      DEBUG ((DEBUG_INFO, "PAD programming, Board ID: 0x%X\n", PlatformInfoHob->BoardId));
+
+      GpioPadConfigTable (sizeof (mMinnow3Next_GpioInitData_N)  / sizeof (mMinnow3Next_GpioInitData_N[0]),  PlatformInfoHob->PlatformGpioSetting_N);
+
+      GpioPadConfigTable (sizeof (mMinnow3Next_GpioInitData_NW) / sizeof (mMinnow3Next_GpioInitData_NW[0]), PlatformInfoHob->PlatformGpioSetting_NW);
+
+      GpioPadConfigTable (sizeof (mMinnow3Next_GpioInitData_W)  / sizeof (mMinnow3Next_GpioInitData_W[0]),  PlatformInfoHob->PlatformGpioSetting_W);
+
+      GpioPadConfigTable (sizeof (mMinnow3Next_GpioInitData_SW) / sizeof (mMinnow3Next_GpioInitData_SW[0]), PlatformInfoHob->PlatformGpioSetting_SW);
+
+      break;
+    default:
+      //
+      // PAD programming
+      //
+      DEBUG ((DEBUG_INFO, "No board ID available for this board ....\n"));
+      GpioPadConfigTable (sizeof (mMinnow3Next_GpioInitData_N)  / sizeof (mMinnow3Next_GpioInitData_N[0]),  PlatformInfoHob->PlatformGpioSetting_N);
+      GpioPadConfigTable (sizeof (mMinnow3Next_GpioInitData_NW) / sizeof (mMinnow3Next_GpioInitData_NW[0]), PlatformInfoHob->PlatformGpioSetting_NW);
+      GpioPadConfigTable (sizeof (mMinnow3Next_GpioInitData_W)  / sizeof (mMinnow3Next_GpioInitData_W[0]),  PlatformInfoHob->PlatformGpioSetting_W);
+      GpioPadConfigTable (sizeof (mMinnow3Next_GpioInitData_SW) / sizeof (mMinnow3Next_GpioInitData_SW[0]), PlatformInfoHob->PlatformGpioSetting_SW);
+      break;
+  }
+  
+  DEBUG ((DEBUG_INFO, "PAD programming done\n"));
+
+  //
+  // Dump Community registers
+  //
+  DumpGpioCommunityRegisters (NORTH);
+  DumpGpioCommunityRegisters (NORTHWEST);
+  DumpGpioCommunityRegisters (WEST);
+  DumpGpioCommunityRegisters (SOUTHWEST);
+
+  switch (PlatformInfoHob->BoardId) {
+    case BOARD_ID_LFH_CRB:
+    case BOARD_ID_MINNOW:
+    case BOARD_ID_MINNOW_NEXT:
+    case BOARD_ID_BENSON:
+      //
+      // PAD programming
+      //
+      DEBUG ((DEBUG_INFO, "Dump Community pad registers, Board ID: 0x%X\n", PlatformInfoHob->BoardId));
+      DumpGpioPadTable (sizeof (mMinnow3Next_GpioInitData_N)  / sizeof (mMinnow3Next_GpioInitData_N[0]),  PlatformInfoHob->PlatformGpioSetting_N);
+      DumpGpioPadTable (sizeof (mMinnow3Next_GpioInitData_NW) / sizeof (mMinnow3Next_GpioInitData_NW[0]), PlatformInfoHob->PlatformGpioSetting_NW);
+      DumpGpioPadTable (sizeof (mMinnow3Next_GpioInitData_W)  / sizeof (mMinnow3Next_GpioInitData_W[0]),  PlatformInfoHob->PlatformGpioSetting_W);
+      DumpGpioPadTable (sizeof (mMinnow3Next_GpioInitData_SW) / sizeof (mMinnow3Next_GpioInitData_SW[0]), PlatformInfoHob->PlatformGpioSetting_SW);
+      break;
+    default:
+    //
+    // Dump Community pad registers
+    //
+    DumpGpioPadTable (sizeof (mMinnow3Next_GpioInitData_N)  / sizeof (mMinnow3Next_GpioInitData_N[0]),  PlatformInfoHob->PlatformGpioSetting_N);
+    DumpGpioPadTable (sizeof (mMinnow3Next_GpioInitData_NW) / sizeof (mMinnow3Next_GpioInitData_NW[0]), PlatformInfoHob->PlatformGpioSetting_NW);
+    DumpGpioPadTable (sizeof (mMinnow3Next_GpioInitData_W)  / sizeof (mMinnow3Next_GpioInitData_W[0]),  PlatformInfoHob->PlatformGpioSetting_W);
+    DumpGpioPadTable (sizeof (mMinnow3Next_GpioInitData_SW) / sizeof (mMinnow3Next_GpioInitData_SW[0]), PlatformInfoHob->PlatformGpioSetting_SW);
+
+    break;
+  }
+
+  return EFI_SUCCESS;
+}
+
diff --git a/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPostMem/BoardGpios.h b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPostMem/BoardGpios.h
new file mode 100644
index 000000000..49340b10f
--- /dev/null
+++ b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPostMem/BoardGpios.h
@@ -0,0 +1,350 @@
+/** @file
+  GPIO setting for Broxton.
+
+  Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR>
+
+  This program and the accompanying materials
+  are licensed and made available under the terms and conditions of the BSD License
+  which accompanies this distribution.  The full text of the license may be found at
+  http://opensource.org/licenses/bsd-license.php.
+
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+**/
+
+#ifndef _MINNOW3_NEXT_BOARDGPIOS_H_
+#define _MINNOW3_NEXT_BOARDGPIOS_H_
+
+#include <PiPei.h>
+#include"ChipsetAccess.h"
+#include"PlatformBaseAddresses.h"
+#include "BoardInitMiscs.h"
+#include <Library/IoLib.h>
+#include <Library/HobLib.h>
+#include <Guid/PlatformInfo_Aplk.h>
+#include <Library/GpioLib.h>
+
+/**
+GPIO input pin interrupt type configuration:
+
+Interrupt type    GPI Route               Host SW                 Enable/Status                                 Comment
+ GPI               None                    GPIO Driver Mode        GPI Interrupt Status\Enable                   GPIO driver to handle it.
+ Direct IRQ        GPIROUTIOXAPIC          ACPI Mode                                                             IRQ number is fixed to each GPIO pin in N and NW communities.
+ SCI/GPE           GPIROUTSCI              ACPI Mode               GPI General Purpose Events Status\Enable      SCI is not supported in BXT A0. The reason is because the PMC lacks the ACPI registers and status tunneling. This will be fixed in derivatives.
+ SMI               GPIROUTSMI              ACPI Mode               SMI Status\Enable                             Don't enable SMI for BXT0. It is currently unsupported by the PMC.
+ NMI               GPIROUTNMI              ACPI Mode                                                             Not supported on BXT.
+
+Interrupt trigger type             Configuration                  Comment
+ Rising edge                        Edge+No_invert
+ Falling edge                       Edge+Invert
+ Both edge                          BothEdge+Invert
+ Level high                         Level+No_invert                Direct IRQ pin mostly use this config.Wake pin MUST use it.
+ Level low                          Level+Invert
+
+HostSw:
+ * All GPIO pins which are 'M0' PMode, have to set HostSw to GPIO_D, indicating GPIO driver owns it.
+ * Others, such as Native function(M1,M2,M3..) and SCI/SMI/NMI/Direct IRQ, need to set it to ACPI_D or NA.
+ * Default is ACPI_D for NA
+
+IOSstate:
+ * For interrupt or wake pin, need to set it to TxDRxE.
+
+Wake_Enabled:
+ * It is for direct IRQ only.
+
+**/
+
+//
+// North Community
+//
+BXT_GPIO_PAD_INIT  mMinnow3Next_GpioInitData_N[] =
+{
+  //
+  //                  Group Pin#:  pad_name,    PMode,GPIO_Config,HostSw,GPO_STATE,INT_Trigger,  Wake_Enabled ,Term_H_L,Inverted, GPI_ROUT, IOSstae, IOSTerm,     MMIO_Offset  , Community
+  //
+  BXT_GPIO_PAD_CONF(L"GPIO_0",                   M0   ,    GPO   , GPIO_D,  HI    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0000, NORTH), // GP_DDC_EN
+  BXT_GPIO_PAD_CONF(L"GPIO_1",                   M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0008, NORTH), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_2",                   M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0010, NORTH), // GPIO9
+  BXT_GPIO_PAD_CONF(L"GPIO_3",                   M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0018, NORTH), // GPIO10
+  BXT_GPIO_PAD_CONF(L"GPIO_4",                   M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0020, NORTH), // GPIO11
+  BXT_GPIO_PAD_CONF(L"GPIO_5",                   M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE , Inverted,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0028, NORTH), // BC_SCI_1V8#
+  BXT_GPIO_PAD_CONF(L"GPIO_6",                   M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE , Inverted,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0030, NORTH), // LID#
+  BXT_GPIO_PAD_CONF(L"GPIO_7",                   M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE , Inverted,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0038, NORTH), // SLEEP#
+  BXT_GPIO_PAD_CONF(L"GPIO_8",                   M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0040, NORTH), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_9",                   M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0048, NORTH), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_10",                  M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0050, NORTH), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_11",                  M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0058, NORTH), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_12",                  M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0060, NORTH), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_13",                  M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0068, NORTH), // GPIO7
+  BXT_GPIO_PAD_CONF(L"GPIO_14",                  M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0070, NORTH), // GPIO8
+  BXT_GPIO_PAD_CONF(L"GPIO_15",                  M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0078, NORTH), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_16",                  M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0080, NORTH), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_17",                  M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0088, NORTH), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_18",                  M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0090, NORTH), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_19",                  M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0098, NORTH), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_20",                  M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x00A0, NORTH), // CLEAR_BACKUP
+  BXT_GPIO_PAD_CONF(L"GPIO_21",                  M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x00A8, NORTH), // FORCE_RECOV#
+  BXT_GPIO_PAD_CONF(L"GPIO_22",                  M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x00B0, NORTH), // BOOT_SEL2#
+  BXT_GPIO_PAD_CONF(L"GPIO_23",                  M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x00B8, NORTH), // BOOT_SEL1#
+  BXT_GPIO_PAD_CONF(L"GPIO_24",                  M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x00C0, NORTH), // BOOT_SEL0#
+  BXT_GPIO_PAD_CONF(L"GPIO_25",                  M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x00C8, NORTH), // TEST#
+  BXT_GPIO_PAD_CONF(L"GPIO_26",                  M0   ,    GPO   ,  NA   ,  HI    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x00D0, NORTH), // SATA_LED#
+  BXT_GPIO_PAD_CONF(L"GPIO_27",                  M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x00D8, NORTH), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_28",                  M0   ,    GPO   ,  NA   ,  HI    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x00E0, NORTH), // USB2_EN
+  BXT_GPIO_PAD_CONF(L"GPIO_29",                  M0   ,    GPO   ,  NA   ,  HI    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x00E8, NORTH), // USB_DRIVE_BUS_1V8
+  BXT_GPIO_PAD_CONF(L"GPIO_30",                  M0   ,    GPO   ,  NA   ,  HI    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x00F0, NORTH), // USB1_EN
+  BXT_GPIO_PAD_CONF(L"GPIO_31",                  M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x00F8, NORTH), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_32",                  M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0100, NORTH), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_33",                  M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0108, NORTH), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_34 PWM0",             M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0110, NORTH), // STRAP_GPIO_34
+  BXT_GPIO_PAD_CONF(L"GPIO_35 PWM1",             M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0118, NORTH), // STRAP_GPIO_35
+  BXT_GPIO_PAD_CONF(L"GPIO_36 PWM2",             M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0120, NORTH), // STRAP_GPIO_36
+  BXT_GPIO_PAD_CONF(L"GPIO_37 PWM3",             M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0128, NORTH), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_38 LPSS_UART0_RXD",   M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,     NA   ,     NA, GPIO_PADBAR+0x0130, NORTH), // SER0_RX
+  BXT_GPIO_PAD_CONF(L"GPIO_39 LPSS_UART0_TXD",   M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,     NA   ,     NA, GPIO_PADBAR+0x0138, NORTH), // SER0_TX
+  BXT_GPIO_PAD_CONF(L"GPIO_40 LPSS_UART0_CTS_B", M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0140, NORTH), // SER0_RTS#
+  BXT_GPIO_PAD_CONF(L"GPIO_41 LPSS_UART0_CTS_B", M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0148, NORTH), // SER0_CTS#
+  BXT_GPIO_PAD_CONF(L"GPIO_42 LPSS_UART1_RXD",   M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,     NA   ,     NA, GPIO_PADBAR+0x0150, NORTH), // SER1_RX
+  BXT_GPIO_PAD_CONF(L"GPIO_43 LPSS_UART1_TXD",   M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,     NA   ,     NA, GPIO_PADBAR+0x0158, NORTH), // SER1_TX
+  BXT_GPIO_PAD_CONF(L"GPIO_44 LPSS_UART1_RTS_B", M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0160, NORTH), // SER1_RTS#
+  BXT_GPIO_PAD_CONF(L"GPIO_45 LPSS_UART1_CTS_B", M0   ,    GPO   ,  NA   ,  HI    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0168, NORTH), // PWRBTN_BC_OUT_1V8#
+  BXT_GPIO_PAD_CONF(L"GPIO_46 LPSS_UART2_RXD",   M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,     NA   ,     NA, GPIO_PADBAR+0x0170, NORTH), // SER2_RX
+  BXT_GPIO_PAD_CONF(L"GPIO_47 LPSS_UART2_TXD",   M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,     NA   ,     NA, GPIO_PADBAR+0x0178, NORTH), // SER2_TX
+  BXT_GPIO_PAD_CONF(L"GPIO_48 LPSS_UART2_RTS_B", M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,     NA   ,     NA, GPIO_PADBAR+0x0180, NORTH), // SER2_RTS#
+  BXT_GPIO_PAD_CONF(L"GPIO_49 LPSS_UART2_CTS_B", M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,     NA   ,     NA, GPIO_PADBAR+0x0188, NORTH), // SER2_CTS#
+  BXT_GPIO_PAD_CONF(L"GPIO_62 GP_CAMERASB00",    M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0190, NORTH), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_63 GP_CAMERASB01",    M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0198, NORTH), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_64 GP_CAMERASB02",    M0   ,    GPO   ,  NA   ,  HI    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x01A0, NORTH), // CAM0_RST#
+  BXT_GPIO_PAD_CONF(L"GPIO_65 GP_CAMERASB03",    M0   ,    GPO   ,  NA   ,  HI    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x01A8, NORTH), // CAM1_RST#
+  BXT_GPIO_PAD_CONF(L"GPIO_66 GP_CAMERASB04",    M0   ,    GPO   ,  NA   ,  HI    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x01B0, NORTH), // CAM0_PWR#
+  BXT_GPIO_PAD_CONF(L"GPIO_67 GP_CAMERASB05",    M0   ,    GPO   ,  NA   ,  HI    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x01B8, NORTH), // CAM1_PWR#
+  BXT_GPIO_PAD_CONF(L"GPIO_68 GP_CAMERASB06",    M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x01C0, NORTH), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_69 GP_CAMERASB07",    M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x01C8, NORTH), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_70 GP_CAMERASB08",    M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x01D0, NORTH), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_71 GP_CAMERASB09",    M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x01D8, NORTH), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_72 GP_CAMERASB10",    M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x01E0, NORTH), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_73 GP_CAMERASB11",    M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x01E8, NORTH), // NC
+  BXT_GPIO_PAD_CONF(L"TCK",                      M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_L,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x01F0, NORTH), // XDP_TCK
+  BXT_GPIO_PAD_CONF(L"TRST_B",                   M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_L,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x01F8, NORTH), // XDP_TRST#
+  BXT_GPIO_PAD_CONF(L"TMS",                      M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0200, NORTH), // XDP_TMS
+  BXT_GPIO_PAD_CONF(L"TDI",                      M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0208, NORTH), // XDP_TDI
+  BXT_GPIO_PAD_CONF(L"CX_PMODE",                 M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0210, NORTH), // NC
+  BXT_GPIO_PAD_CONF(L"CX_PREQ_B",                M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0218, NORTH), // XDP_PREQ_BUF#
+  BXT_GPIO_PAD_CONF(L"JTAGX",                    M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0220, NORTH), // NC
+  BXT_GPIO_PAD_CONF(L"CX_PRDY_B",                M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0228, NORTH), // XDP_PRDY#
+  BXT_GPIO_PAD_CONF(L"TDO",                      M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0230, NORTH), // XDP_TDO
+  BXT_GPIO_PAD_CONF(L"GPIO_216 CNV_BRI_DT",      M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0238, NORTH), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_217 CNV_BRI_RSP",     M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0240, NORTH), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_218 CNV_RGI_DT",      M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0248, NORTH), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_219 CNV_RGI_RSP",     M1   ,    NA    ,  NA   ,  HI    ,   NA       , Wake_Disabled, P_20K_L,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0250, NORTH), // EMMC_RST#
+  BXT_GPIO_PAD_CONF(L"SVID0_ALERT_B",            M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0258, NORTH), // SVID_ALERT#
+  BXT_GPIO_PAD_CONF(L"SVID0_DATA",               M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0260, NORTH), // SVID_DATA
+  BXT_GPIO_PAD_CONF(L"SVID0_CLK",                M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0268, NORTH), // SVID_CLK
+};
+
+//
+// North West Community
+//
+BXT_GPIO_PAD_INIT  mMinnow3Next_GpioInitData_NW [] =
+{
+  //
+  //                 Group Pin#:  pad_name,     PMode,GPIO_Config,HostSw,GPO_STATE,INT_Trigger, Wake_Enabled, Term_H_L,Inverted,GPI_ROUT,IOSstae,  IOSTerm,     MMIO_Offset    ,  Community
+  //
+  BXT_GPIO_PAD_CONF(L"GPIO_187 HV_DDI0_DDC_SDA", M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,   HizRx0I,   SAME, GPIO_PADBAR+0x0000, NORTHWEST), // DDI0_DDCDATA
+  BXT_GPIO_PAD_CONF(L"GPIO_188 HV_DDI0_DDC_SCL", M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,   HizRx0I,   SAME, GPIO_PADBAR+0x0008, NORTHWEST), // DDI0_DDCCLK
+  BXT_GPIO_PAD_CONF(L"GPIO_189 HV_DDI1_DDC_SDA", M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,   HizRx0I,   SAME, GPIO_PADBAR+0x0010, NORTHWEST), // DDI1_DDCDATA
+  BXT_GPIO_PAD_CONF(L"GPIO_190 HV_DDI1_DDC_SCL", M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,   HizRx0I,   SAME, GPIO_PADBAR+0x0018, NORTHWEST), // DDI1_DDCCLK
+  BXT_GPIO_PAD_CONF(L"GPIO_191 DBI_SDA",         M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0020, NORTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_192 DBI_SCL",         M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0028, NORTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_193 PANEL0_VDDEN",    M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_L,    NA   ,    NA, D0RxDRx0I,   SAME, GPIO_PADBAR+0x0030, NORTHWEST), // PNL0_VDDEN
+  BXT_GPIO_PAD_CONF(L"GPIO_194 PANEL0_BKLTEN",   M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_L,    NA   ,    NA, D0RxDRx0I,   SAME, GPIO_PADBAR+0x0038, NORTHWEST), // PNL0_BKLTEN
+  BXT_GPIO_PAD_CONF(L"GPIO_195 PANEL0_BKLTCTL",  M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_L,    NA   ,    NA, D0RxDRx0I,   SAME, GPIO_PADBAR+0x0040, NORTHWEST), // PNL0_BKLCTL
+  BXT_GPIO_PAD_CONF(L"GPIO_196 PANEL1_VDDEN",    M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0048, NORTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_197 PANEL1_BKLTEN",   M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0050, NORTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_198 PANEL1_BKLTCTL",  M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0058, NORTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_199 DBI_CSX",         M2   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,     NA   ,     NA, GPIO_PADBAR+0x0060, NORTHWEST), // DDI1_HPD#
+  BXT_GPIO_PAD_CONF(L"GPIO_200 DBI_RESX",        M2   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,     NA   ,     NA, GPIO_PADBAR+0x0068, NORTHWEST), // DDI0_HPD#
+  BXT_GPIO_PAD_CONF(L"GPIO_201 GP_INTD_DSI_TE1", M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0070, NORTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_202 GP_INTD_DSI_TE2", M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0078, NORTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_203 USB_OC0_B",       M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0080, NORTHWEST), // USB_OC0#
+  BXT_GPIO_PAD_CONF(L"GPIO_204 USB_OC1_B",       M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0088, NORTHWEST), // USB_OC1#
+  BXT_GPIO_PAD_CONF(L"PMC_SPI_FS0",              M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0090, NORTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"PMC_SPI_FS1",              M2   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,Last_Value,   SAME, GPIO_PADBAR+0x0098, NORTHWEST), // eDP_HPD#
+  BXT_GPIO_PAD_CONF(L"PMC_SPI_FS2",              M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x00A0, NORTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"PMC_SPI_RXD",              M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x00A8, NORTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"PMC_SPI_TXD",              M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x00B0, NORTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"PMC_SPI_CLK",              M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x00B8, NORTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"PMIC_PWRGOOD",             M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x00C0, NORTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"PMIC_RESET_B",             M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x00C8, NORTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_213 PMIC_SDWN_B",     M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x00D0, NORTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_214 PMIC_BCUDISW2",   M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x00D8, NORTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_215 PMIC_BCUDISCRIT", M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x00E0, NORTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"PMIC_THERMTRIP_B",         M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,Last_Value,   SAME, GPIO_PADBAR+0x00E8, NORTHWEST), // THERMTRIP
+  BXT_GPIO_PAD_CONF(L"PMIC_STDBY",               M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x00F0, NORTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"PROCHOT_B",                M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,   HizRx1I,   SAME, GPIO_PADBAR+0x00F8, NORTHWEST), // PROCHOT#
+  BXT_GPIO_PAD_CONF(L"PMIC_I2C_SCL",             M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_1K_H ,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0100, NORTHWEST), // SMB_CLK_PMIC
+  BXT_GPIO_PAD_CONF(L"PMIC_I2C_SDA",             M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_1K_H ,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0108, NORTHWEST), // SMB_DAT_PMIC
+  BXT_GPIO_PAD_CONF(L"GPIO_74 AVS_I2S1_MCLK",    M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0110, NORTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_75 AVS_I2S1_BCLK",    M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0118, NORTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_76 AVS_I2S1_WS_SYNC", M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0120, NORTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_77 AVS_I2S1_SDI",     M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0128, NORTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_78 AVS_I2S1_SDO",     M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0130, NORTHWEST), // STRAP_GPIO_78
+  BXT_GPIO_PAD_CONF(L"GPIO_79 AVS_M_CLK_A1",     M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0138, NORTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_80 AVS_M_CLK_B1",     M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0140, NORTHWEST), // HWCONF6
+  BXT_GPIO_PAD_CONF(L"GPIO_81 AVS_M_DATA_1",     M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0148, NORTHWEST), // HWCONF7
+  BXT_GPIO_PAD_CONF(L"GPIO_82 AVS_M_CLK_AB2",    M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0150, NORTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_83 AVS_M_DATA_2",     M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0158, NORTHWEST), // HWCONF8
+  BXT_GPIO_PAD_CONF(L"GPIO_84 AVS_I2S2_MCLK",    M2   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_L,    NA   ,    NA,     NA   ,     NA, GPIO_PADBAR+0x0160, NORTHWEST), // AUDIO_MCK_HDA_RST#
+  BXT_GPIO_PAD_CONF(L"GPIO_85 AVS_I2S2_BCLK",    M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_L,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0168, NORTHWEST), // I2S0_CK
+  BXT_GPIO_PAD_CONF(L"GPIO_86 AVS_I2S2_WS_SYNC", M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_L,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0170, NORTHWEST), // I2S0_LRCK
+  BXT_GPIO_PAD_CONF(L"GPIO_87 AVS_I2S2_SDI",     M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_L,    NA   ,    NA,    TxDRxE,   EnPd, GPIO_PADBAR+0x0178, NORTHWEST), // I2S0_SDIN
+  BXT_GPIO_PAD_CONF(L"GPIO_88 AVS_I2S2_SDO",     M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_L,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0180, NORTHWEST), // I2S0_SDOUT
+  BXT_GPIO_PAD_CONF(L"GPIO_89 AVS_I2S3_BCLK",    M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0188, NORTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_90 AVS_I2S3_WS_SYNC", M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0190, NORTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_91 AVS_I2S3_SDI",     M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0198, NORTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_92 AVS_I2S3_SDO",     M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x01A0, NORTHWEST), // STRAP_GPIO_92
+  BXT_GPIO_PAD_CONF(L"GPIO_97 FST_SPI_CS0_B",    M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, Native_control,NA,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x01A8, NORTHWEST), // FST_SPI_CS0#
+  BXT_GPIO_PAD_CONF(L"GPIO_98 FST_SPI_CS1_B",    M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, Native_control,NA,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x01B0, NORTHWEST), // FST_SPI_CS1#
+  BXT_GPIO_PAD_CONF(L"GPIO_99 FST_SPI_MOSI_IO0", M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, Native_control,NA,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x01B8, NORTHWEST), // FST_SPI_MOSI
+  BXT_GPIO_PAD_CONF(L"GPIO_100 FST_SPI_MISO_IO1",M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, Native_control,NA,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x01C0, NORTHWEST), // FST_SPI_MISO
+  BXT_GPIO_PAD_CONF(L"GPIO_101 FST_SPI_IO2",     M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, Native_control,NA,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x01C8, NORTHWEST), // FST_SPI_WP
+  BXT_GPIO_PAD_CONF(L"GPIO_102 FST_SPI_IO3",     M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, Native_control,NA,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x01D0, NORTHWEST), // FST_SPI_HOLD
+  BXT_GPIO_PAD_CONF(L"GPIO_103 FST_SPI_CLK",     M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, Native_control,NA,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x01D8, NORTHWEST), // FST_SPI_CLK
+  BXT_GPIO_PAD_CONF(L"FST_SPI_CLK_FB",           M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x01E0, NORTHWEST), //
+  BXT_GPIO_PAD_CONF(L"GPIO_104 GP_SSP_0_CLK",    M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_L,    NA   ,    NA,   HizRx0I,   EnPd, GPIO_PADBAR+0x01E8, NORTHWEST), // SIO_SPI_SCLK
+  BXT_GPIO_PAD_CONF(L"GPIO_105 GP_SSP_0_FS0",    M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,   HizRx0I,   EnPd, GPIO_PADBAR+0x01F0, NORTHWEST), // SIO_SPI_CS0#
+  BXT_GPIO_PAD_CONF(L"GPIO_106 GP_SSP_0_FS1",    M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,   HizRx0I,   EnPd, GPIO_PADBAR+0x01F8, NORTHWEST), // SIO_SPI_CS1#
+  BXT_GPIO_PAD_CONF(L"GPIO_109 GP_SSP_0_RXD",    M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,   HizRx0I,   EnPd, GPIO_PADBAR+0x0200, NORTHWEST), // SIO_SPI_MISO
+  BXT_GPIO_PAD_CONF(L"GPIO_110 GP_SSP_0_TXD",    M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,   HizRx0I,   EnPd, GPIO_PADBAR+0x0208, NORTHWEST), // SIO_SPI_MOSI
+  BXT_GPIO_PAD_CONF(L"GPIO_111 GP_SSP_1_CLK",    M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0210, NORTHWEST), // STRAP_GPIO_111
+  BXT_GPIO_PAD_CONF(L"GPIO_112 GP_SSP_1_FS0",    M2   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,     NA   ,     NA, GPIO_PADBAR+0x0218, NORTHWEST), // SER3_RX
+  BXT_GPIO_PAD_CONF(L"GPIO_113 GP_SSP_1_FS1",    M2   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,     NA   ,     NA, GPIO_PADBAR+0x0220, NORTHWEST), // SER3_TX
+  BXT_GPIO_PAD_CONF(L"GPIO_116 GP_SSP_1_RXD",    M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0228, NORTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_117 GP_SSP_1_TXD",    M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0230, NORTHWEST), // STRAP_GPIO_117
+  BXT_GPIO_PAD_CONF(L"GPIO_118 GP_SSP_2_CLK",    M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0238, NORTHWEST), // STRAP_GPIO_118
+  BXT_GPIO_PAD_CONF(L"GPIO_119 GP_SSP_2_FS0",    M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0240, NORTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_120 GP_SSP_2_FS1",    M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0248, NORTHWEST), // STRAP_GPIO_120
+  BXT_GPIO_PAD_CONF(L"GPIO_121 GP_SSP_2_FS2",    M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0250, NORTHWEST), // STRAP_GPIO_121
+  BXT_GPIO_PAD_CONF(L"GPIO_122 GP_SSP_2_RXD",    M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0258, NORTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_123 GP_SSP_2_TXD",    M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0260, NORTHWEST), // STRAP_GPIO_123
+};
+
+//
+// West Community
+//
+BXT_GPIO_PAD_INIT  mMinnow3Next_GpioInitData_W [] =
+{
+  //
+  //                   Group Pin#:  pad_name,    PMode,GPIO_Config,HostSw,GPO_STATE,INT_Trigger,Wake_Enabled, Term_H_L, Inverted,GPI_ROUT,IOSstae, IOSTerm,     MMIO_Offset    , Community
+  //
+  BXT_GPIO_PAD_CONF(L"GPIO_124 LPSS_I2C0_SDA",   M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0000, WEST), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_125 LPSS_I2C0_SCL",   M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0008, WEST), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_126 LPSS_I2C1_SDA",   M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_1K_H ,    NA   ,    NA, D1RxDRx1I,   EnPu, GPIO_PADBAR+0x0010, WEST), // GP_DDCDATA
+  BXT_GPIO_PAD_CONF(L"GPIO_127 LPSS_I2C1_SCL",   M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_1K_H ,    NA   ,    NA, D1RxDRx1I,   EnPu, GPIO_PADBAR+0x0018, WEST), // GP_DDCCLK
+  BXT_GPIO_PAD_CONF(L"GPIO_128 LPSS_I2C2_SDA",   M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0020, WEST), // HWCONF0
+  BXT_GPIO_PAD_CONF(L"GPIO_129 LPSS_I2C2_SCL",   M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0028, WEST), // HWCONF3
+  BXT_GPIO_PAD_CONF(L"GPIO_130 LPSS_I2C3_SDA",   M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0030, WEST), // HWCONF2
+  BXT_GPIO_PAD_CONF(L"GPIO_131 LPSS_I2C3_SCL",   M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0038, WEST), // HWCONF1
+  BXT_GPIO_PAD_CONF(L"GPIO_132 LPSS_I2C4_SDA",   M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_1K_H ,    NA   ,    NA, D1RxDRx1I,   EnPu, GPIO_PADBAR+0x0040, WEST), // I2C_CAM0_DAT
+  BXT_GPIO_PAD_CONF(L"GPIO_133 LPSS_I2C4_SCL",   M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_1K_H ,    NA   ,    NA, D1RxDRx1I,   EnPu, GPIO_PADBAR+0x0048, WEST), // I2C_CAM0_CK
+  BXT_GPIO_PAD_CONF(L"GPIO_134 LPSS_I2C5_SDA",   M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,   HizRx0I,   EnPd, GPIO_PADBAR+0x0050, WEST), // I2C_CAM1_DAT
+  BXT_GPIO_PAD_CONF(L"GPIO_135 LPSS_I2C5_SCL",   M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,   HizRx0I,   EnPd, GPIO_PADBAR+0x0058, WEST), // I2C_CAM1_CK
+  BXT_GPIO_PAD_CONF(L"GPIO_136 LPSS_I2C6_SDA",   M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,   HizRx0I,   EnPd, GPIO_PADBAR+0x0060, WEST), // I2C_GP_DAT
+  BXT_GPIO_PAD_CONF(L"GPIO_137 LPSS_I2C6_SCL",   M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,   HizRx0I,   EnPd, GPIO_PADBAR+0x0068, WEST), // I2C_GP_CK
+  BXT_GPIO_PAD_CONF(L"GPIO_138 LPSS_I2C7_SDA",   M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0070, WEST), // HWCONF5
+  BXT_GPIO_PAD_CONF(L"GPIO_139 LPSS_I2C7_SCL",   M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0078, WEST), // HWCONF4
+  BXT_GPIO_PAD_CONF(L"GPIO_146 ISH_GPIO_0",      M3   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_L,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0080, WEST), // HDA_CK
+  BXT_GPIO_PAD_CONF(L"GPIO_147 ISH_GPIO_1",      M3   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_L,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0088, WEST), // HDA_SYNC
+  BXT_GPIO_PAD_CONF(L"GPIO_148 ISH_GPIO_2",      M3   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_L,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0090, WEST), // HDA_SDI
+  BXT_GPIO_PAD_CONF(L"GPIO_149 ISH_GPIO_3",      M3   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_L,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0098, WEST), // HDA_SDO
+  BXT_GPIO_PAD_CONF(L"GPIO_150 ISH_GPIO_4",      M0   ,    GPO   ,  NA   ,  HI    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x00A0, WEST), // USB5_EN
+  BXT_GPIO_PAD_CONF(L"GPIO_151 ISH_GPIO_5",      M0   ,    GPO   ,  NA   ,  HI    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x00A8, WEST), // USB4_EN
+  BXT_GPIO_PAD_CONF(L"GPIO_152 ISH_GPIO_6",      M0   ,    GPO   ,  NA   ,  HI    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x00B0, WEST), // USB3_EN
+  BXT_GPIO_PAD_CONF(L"GPIO_153 ISH_GPIO_7",      M0   ,    GPO   ,  NA   ,  HI    ,   NA       , Wake_Disabled, P_20K_L,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x00B8, WEST), // WD_ALERT_1V8#
+  BXT_GPIO_PAD_CONF(L"GPIO_154 ISH_GPIO_8",      M0   ,    GPO   , GPIO_D,  LO    ,   NA       , Wake_Disabled, P_20K_L,    NA   ,    NA,     NA   ,     NA, GPIO_PADBAR+0x00C0, WEST), // WDTRIG_1V8#
+  BXT_GPIO_PAD_CONF(L"GPIO_155 ISH_GPIO_9",      M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x00C8, WEST), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_209 PCIE_CLKREQ0_B",  M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,   HizRx0I,   EnPd, GPIO_PADBAR+0x00D0, WEST), // GND
+  BXT_GPIO_PAD_CONF(L"GPIO_210 PCIE_CLKREQ1_B",  M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_L,    NA   ,    NA,   HizRx0I,   EnPd, GPIO_PADBAR+0x00D8, WEST), // GND
+  BXT_GPIO_PAD_CONF(L"GPIO_211 PCIE_CLKREQ2_B",  M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_L,    NA   ,    NA,   HizRx0I,   EnPd, GPIO_PADBAR+0x00E0, WEST), // GND
+  BXT_GPIO_PAD_CONF(L"GPIO_212 PCIE_CLKREQ3_B",  M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_L,    NA   ,    NA,   HizRx0I,   EnPd, GPIO_PADBAR+0x00E8, WEST), // GND
+  BXT_GPIO_PAD_CONF(L"OSC_CLK_OUT_0",            M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_L,    NA   ,    NA,     NA   ,     NA, GPIO_PADBAR+0x00F0, WEST), // CAM_MCK
+  BXT_GPIO_PAD_CONF(L"OSC_CLK_OUT_1",            M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x00F8, WEST), // NC
+  BXT_GPIO_PAD_CONF(L"OSC_CLK_OUT_2",            M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0100, WEST), // NC
+  BXT_GPIO_PAD_CONF(L"OSC_CLK_OUT_3",            M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0108, WEST), // NC
+  BXT_GPIO_PAD_CONF(L"OSC_CLK_OUT_4",            M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0110, WEST), // NC
+  BXT_GPIO_PAD_CONF(L"PMU_AC_PRESENT",           M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_L,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0118, WEST), // ACPRESENT
+  BXT_GPIO_PAD_CONF(L"PMU_BATLOW_B",             M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0120, WEST), // BATLOW_3V3#
+  BXT_GPIO_PAD_CONF(L"PMU_PLTRST_B",             M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0128, WEST), // PLTRST#
+  BXT_GPIO_PAD_CONF(L"PMU_PWRBTN_B",             M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0130, WEST), // PWRBTN_BC_OUT#
+  BXT_GPIO_PAD_CONF(L"PMU_RESETBUTTON_B",        M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0138, WEST), // RSTBTN_BC_OUT#
+  BXT_GPIO_PAD_CONF(L"PMU_SLP_S0_B",             M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0140, WEST), // SLP_SOIX#
+  BXT_GPIO_PAD_CONF(L"PMU_SLP_S3_B",             M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0148, WEST), // SLP_S3#
+  BXT_GPIO_PAD_CONF(L"PMU_SLP_S4_B",             M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0150, WEST), // SLP_S4#
+  BXT_GPIO_PAD_CONF(L"PMU_SUSCLK",               M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0158, WEST), // SUSCLK
+  BXT_GPIO_PAD_CONF(L"PMU_WAKE_B",               M0   ,    GPI   ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0160, WEST), // NC
+  BXT_GPIO_PAD_CONF(L"SUS_STAT_B",               M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0168, WEST), // SUS_STAT#
+  BXT_GPIO_PAD_CONF(L"SUSPWRDNACK",              M1   ,    NA    ,  NA   ,  NA    ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0170, WEST), // SUSPWRDNACK
+};
+
+ //
+ // South West Community
+ //
+BXT_GPIO_PAD_INIT  mMinnow3Next_GpioInitData_SW[]=
+{
+  //
+  //                  Group Pin#:  pad_name,       PMode,GPIO_Config,HostSw,GPO_STATE,INT_Trigger,Wake_Enabled, Term_H_L,Inverted,GPI_ROUT,IOSstae,  IOSTerm,   MMIO_Offset     ,  Community
+  //
+  BXT_GPIO_PAD_CONF(L"GPIO_205 PCIE_WAKE0_B",      M1   ,    NA    ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0000, SOUTHWEST), // PCIE_WAKE_LAN_1V8#
+  BXT_GPIO_PAD_CONF(L"GPIO_206 PCIE_WAKE1_B",      M1   ,    NA    ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0008, SOUTHWEST), // PCIE_WAKE_Q7_1V8#
+  BXT_GPIO_PAD_CONF(L"GPIO_207 PCIE_WAKE2_B",      M0   ,    GPI   ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0010, SOUTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_208 PCIE_WAKE3_B",      M0   ,    GPI   ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0018, SOUTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_156 EMMC0_CLK",         M1   ,    NA    ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_20K_L,    NA   ,    NA, D0RxDRx0I,   SAME, GPIO_PADBAR+0x0020, SOUTHWEST), // EMMC_CLK
+  BXT_GPIO_PAD_CONF(L"GPIO_157 EMMC0_D0",          M1   ,    NA    ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,   HizRx1I,   SAME, GPIO_PADBAR+0x0028, SOUTHWEST), // EMMC_DAT0
+  BXT_GPIO_PAD_CONF(L"GPIO_158 EMMC0_D1",          M1   ,    NA    ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,   HizRx1I,   SAME, GPIO_PADBAR+0x0030, SOUTHWEST), // EMMC_DAT1
+  BXT_GPIO_PAD_CONF(L"GPIO_159 EMMC0_D2",          M1   ,    NA    ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,   HizRx1I,   SAME, GPIO_PADBAR+0x0038, SOUTHWEST), // EMMC_DAT2
+  BXT_GPIO_PAD_CONF(L"GPIO_160 EMMC0_D3",          M1   ,    NA    ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,   HizRx1I,   SAME, GPIO_PADBAR+0x0040, SOUTHWEST), // EMMC_DAT3
+  BXT_GPIO_PAD_CONF(L"GPIO_161 EMMC0_D4",          M1   ,    NA    ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,   HizRx1I,   SAME, GPIO_PADBAR+0x0048, SOUTHWEST), // EMMC_DAT4
+  BXT_GPIO_PAD_CONF(L"GPIO_162 EMMC0_D5",          M1   ,    NA    ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,   HizRx1I,   SAME, GPIO_PADBAR+0x0050, SOUTHWEST), // EMMC_DAT5
+  BXT_GPIO_PAD_CONF(L"GPIO_163 EMMC0_D6",          M1   ,    NA    ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,   HizRx1I,   SAME, GPIO_PADBAR+0x0058, SOUTHWEST), // EMMC_DAT6
+  BXT_GPIO_PAD_CONF(L"GPIO_164 EMMC0_D7",          M1   ,    NA    ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,   HizRx1I,   SAME, GPIO_PADBAR+0x0060, SOUTHWEST), // EMMC_DAT7
+  BXT_GPIO_PAD_CONF(L"GPIO_165 EMMC0_CMD",         M1   ,    NA    ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,   HizRx1I,   SAME, GPIO_PADBAR+0x0068, SOUTHWEST), // EMMC_CMD
+  BXT_GPIO_PAD_CONF(L"GPIO_166 SDIO_CLK",          M0   ,    GPI   ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0070, SOUTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_167 SDIO_D0",           M0   ,    GPI   ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0078, SOUTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_168 SDIO_D1",           M0   ,    GPI   ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0080, SOUTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_169 SDIO_D2",           M0   ,    GPI   ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0088, SOUTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_170 SDIO_D3",           M0   ,    GPI   ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0090, SOUTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_171 SDIO_CMD",          M0   ,    GPI   ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,     NA   ,DisPuPd, GPIO_PADBAR+0x0098, SOUTHWEST), // NC
+  BXT_GPIO_PAD_CONF(L"GPIO_172 SDCARD_CLK",        M1   ,    NA    ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_20K_L,    NA   ,    NA,   HizRx1I,DisPuPd, GPIO_PADBAR+0x00A0, SOUTHWEST), // SDIO_CLK
+  BXT_GPIO_PAD_CONF(L"GPIO_179 SDCARD_CLK_FB",     M1   ,    NA    ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_20K_L,    NA   ,    NA,        NA,     NA, GPIO_PADBAR+0x00A8, SOUTHWEST), //
+  BXT_GPIO_PAD_CONF(L"GPIO_173 SDCARD_D0",         M1   ,    NA    ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,   HizRx1I,DisPuPd, GPIO_PADBAR+0x00B0, SOUTHWEST), // SDIO_D0
+  BXT_GPIO_PAD_CONF(L"GPIO_174 SDCARD_D1",         M1   ,    NA    ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,   HizRx1I,   SAME, GPIO_PADBAR+0x00B8, SOUTHWEST), // SDIO_D1
+  BXT_GPIO_PAD_CONF(L"GPIO_175 SDCARD_D2",         M1   ,    NA    ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,   HizRx1I,   SAME, GPIO_PADBAR+0x00C0, SOUTHWEST), // SDIO_D2
+  BXT_GPIO_PAD_CONF(L"GPIO_176 SDCARD_D3",         M1   ,    NA    ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,   HizRx1I,   SAME, GPIO_PADBAR+0x00C8, SOUTHWEST), // SDIO_D3
+  BXT_GPIO_PAD_CONF(L"GPIO_177 SDCARD_CD_B",       M0   ,    GPI   , GPIO_D,  NA     ,   Edge     , Wake_Disabled, P_NONE ,    NA   ,    NA,    TxDRxE,     NA, GPIO_PADBAR+0x00D0, SOUTHWEST), // SDIO_1V8_CD#
+  BXT_GPIO_PAD_CONF(L"GPIO_178 SDCARD_CMD",        M1   ,    NA    ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,   HizRx1I,DisPuPd, GPIO_PADBAR+0x00D8, SOUTHWEST), // SDIO_CMD
+  BXT_GPIO_PAD_CONF(L"GPIO_186 SDCARD_LVL_WP",     M0   ,    GPI   , GPIO_D,  NA     ,   Edge     , Wake_Disabled, P_20K_L, Inverted,    NA,Last_Value,   SAME, GPIO_PADBAR+0x00E0, SOUTHWEST), // SDIO_1V8_WP
+  BXT_GPIO_PAD_CONF(L"GPIO_182 EMMC0_STROBE",      M1   ,    NA    ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_20K_L,    NA   ,    NA,   HizRx0I,   SAME, GPIO_PADBAR+0x00E8, SOUTHWEST), // EMMC_STROBE
+  BXT_GPIO_PAD_CONF(L"GPIO_183 SDIO_PWR_DOWN_B",   M0   ,    GPO   , GPIO_D,  LO     ,   NA       , Wake_Disabled, P_20K_L,    NA   ,    NA,     NA   ,   EnPd, GPIO_PADBAR+0x00F0, SOUTHWEST), // SDIO_PWR_EN_1V8
+  BXT_GPIO_PAD_CONF(L"SMB_ALERTB",                 M1   ,    NA    ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x00F8, SOUTHWEST), // SMB_ALERT#
+  BXT_GPIO_PAD_CONF(L"LPC_ILB_SERIRQ",             M1   ,    NA    ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,IOS_Masked,   SAME, GPIO_PADBAR+0x0110, SOUTHWEST), // SERIRQ
+  BXT_GPIO_PAD_CONF(L"LPC_CLKOUT0",                M1   ,    NA    ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,   HizRx1I,DisPuPd, GPIO_PADBAR+0x0118, SOUTHWEST), // LPC_CLKOUT0
+  BXT_GPIO_PAD_CONF(L"LPC_CLKOUT1",                M1   ,    NA    ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_NONE ,    NA   ,    NA,   HizRx1I,DisPuPd, GPIO_PADBAR+0x0120, SOUTHWEST), // LPC_CLKOUT1
+  BXT_GPIO_PAD_CONF(L"LPC_AD0",                    M1   ,    NA    ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,   HizRx1I,DisPuPd, GPIO_PADBAR+0x0128, SOUTHWEST), // LPC_AD0
+  BXT_GPIO_PAD_CONF(L"LPC_AD1",                    M1   ,    NA    ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,   HizRx1I,DisPuPd, GPIO_PADBAR+0x0130, SOUTHWEST), // LPC_AD1
+  BXT_GPIO_PAD_CONF(L"LPC_AD2",                    M1   ,    NA    ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,   HizRx1I,DisPuPd, GPIO_PADBAR+0x0138, SOUTHWEST), // LPC_AD2
+  BXT_GPIO_PAD_CONF(L"LPC_AD3",                    M1   ,    NA    ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,   HizRx1I,DisPuPd, GPIO_PADBAR+0x0140, SOUTHWEST), // LPC_AD3
+  BXT_GPIO_PAD_CONF(L"LPC_CLKRUNB",                M1   ,    NA    ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,   HizRx1I,DisPuPd, GPIO_PADBAR+0x0148, SOUTHWEST), // LPC_CLKRUN_SOC#
+  BXT_GPIO_PAD_CONF(L"LPC_FRAMEB",                 M1   ,    NA    ,  NA   ,  NA     ,   NA       , Wake_Disabled, P_20K_H,    NA   ,    NA,   HizRx1I,DisPuPd, GPIO_PADBAR+0x0150, SOUTHWEST), // LPC_FRAME#
+};
+
+BXT_GPIO_PAD_INIT  mMinnow3Next_GpioInitData_FAB2[] =
+{
+  //
+  //                  Group Pin#:  pad_name,    PMode,GPIO_Config,HostSw,GPO_STATE,INT_Trigger,  Wake_Enabled ,Term_H_L,Inverted, GPI_ROUT, IOSstae, IOSTerm,     MMIO_Offset  ,Community
+  //
+  BXT_GPIO_PAD_CONF(L"GPIO_6",                   M0   ,    GPI   ,GPIO_D,   NA    ,   Level    , Wake_Disabled, P_20K_L,   NA    ,IOAPIC,    TxDRxE,    NA,  GPIO_PADBAR+0x0030,  NORTH),     // LID#
+};
+
+#endif
+
diff --git a/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPostMem/BoardInit.c b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPostMem/BoardInit.c
new file mode 100644
index 000000000..cf8523adf
--- /dev/null
+++ b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPostMem/BoardInit.c
@@ -0,0 +1,136 @@
+/** @file
+  Board Init driver.
+
+  Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>
+
+  This program and the accompanying materials
+  are licensed and made available under the terms and conditions of the BSD License
+  which accompanies this distribution.  The full text of the license may be found at
+  http://opensource.org/licenses/bsd-license.php.
+
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+**/
+
+#include <PiPei.h>
+#include <Library/PeiServicesLib.h>
+#include <Library/PcdLib.h>
+#include <Library/BaseMemoryLib.h>
+#include <Library/DebugLib.h>
+#include <Guid/PlatformInfo_Aplk.h>
+#include <Ppi/BoardInitSignalling.h>
+#include "BoardInit.h"
+#include "BoardInitMiscs.h"
+
+EFI_STATUS
+EFIAPI
+MinnowBoard3NextPostMemInitCallback (
+  IN EFI_PEI_SERVICES     **PeiServices,
+  IN EFI_PEI_NOTIFY_DESCRIPTOR  *NotifyDescriptor,
+  IN VOID                       *Ppi
+  );
+
+
+static EFI_PEI_NOTIFY_DESCRIPTOR mMinnowBoard3NextPostMemNotifyList = {
+  (EFI_PEI_PPI_DESCRIPTOR_NOTIFY_CALLBACK | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),
+  &gBoardPostMemInitStartGuid,
+  MinnowBoard3NextPostMemInitCallback
+};
+
+static EFI_PEI_PPI_DESCRIPTOR mMinnowBoard3NextPostMemDonePpi = {
+  (EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),
+  &gBoardPostMemInitDoneGuid,
+  NULL
+};
+
+EFI_STATUS
+EFIAPI
+MinnowBoard3NextPostMemInitCallback (
+  IN EFI_PEI_SERVICES           **PeiServices,
+  IN EFI_PEI_NOTIFY_DESCRIPTOR  *NotifyDescriptor,
+  IN VOID                       *Ppi
+  )
+{
+  EFI_STATUS                       Status;
+  VOID                             *Instance;
+  UINT8                            BoardId;
+  UINT8                            FabId;
+  UINT8                            ResetType;
+  UINTN                            BufferSize;
+
+  Status = PeiServicesLocatePpi (
+             &gBoardPostMemInitDoneGuid,
+             0,
+             NULL,
+             &Instance
+             );
+  if (!EFI_ERROR (Status)) {
+    DEBUG ((EFI_D_INFO,  "Minnow Board 3 Next Post Mem Init callback: Skip\n"));
+    return EFI_SUCCESS;
+  }
+
+  BoardId = (UINT8) PcdGet8 (PcdBoardId);
+  FabId = (UINT8) PcdGet8 (PcdFabId);
+  DEBUG ((EFI_D_INFO,  "PostMemInit: BoardId == 0x%X, FabId == 0x%X\n", BoardId, FabId));
+  if (BoardId != (UINT8) BOARD_ID_MINNOW_NEXT) {
+    DEBUG ((EFI_D_INFO,  "Minnow Board 3 Next Post Mem Init callback: Skip\n"));
+    return EFI_SUCCESS;
+  }
+
+  DEBUG ((EFI_D_INFO,  "Minnow Board 3 Next Post Mem Init callback\n"));
+
+  //
+  // Set init function PCD
+  //
+  PcdSet64 (PcdBoardPostMemInitFunc, (UINT64) (UINTN) Minnow3NextMultiPlatformInfoInit);
+
+  //
+  // Set Reset Type according to different Board
+  //
+  ResetType = V_RST_CNT_FULLRESET;
+  PcdSet8 (PcdResetType, (UINT8) ResetType);
+
+  //
+  // Board specific VBT table.
+  //
+  BufferSize = sizeof (EFI_GUID);
+  PcdSetPtr(PcdBoardVbtFileGuid, &BufferSize, (UINT8 *)&gPeiMinnow3NextVbtGuid);
+    
+  //
+  // Add init steps here
+  //
+  //
+  // Install a flag signalling a board's post mem init is done
+  //
+  Status = PeiServicesInstallPpi (&mMinnowBoard3NextPostMemDonePpi);
+
+  return EFI_SUCCESS;
+}
+
+
+/**
+  This function performs Board initialization in Pre-Memory.
+
+  @retval     EFI_SUCCESS           The PPI is installed and initialized.
+  @retval     EFI ERRORS            The PPI is not successfully installed.
+  @retval     EFI_OUT_OF_RESOURCES  No enough resoruces (such as out of memory).
+
+**/
+EFI_STATUS
+EFIAPI
+MinnowBoard3NextInitConstructor (
+  IN       EFI_PEI_FILE_HANDLE  FileHandle,
+  IN CONST EFI_PEI_SERVICES     **PeiServices
+  )
+{
+  EFI_STATUS                        Status;
+
+  DEBUG ((EFI_D_INFO,  "MinnowBoard3Next Post Mem Init Constructor \n"));
+
+  DEBUG ((EFI_D_INFO,  "Notify on Post Mem Init Start PPI \n"));
+  Status = PeiServicesNotifyPpi (&mMinnowBoard3NextPostMemNotifyList);
+
+  return Status;
+}
+
diff --git a/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPostMem/BoardInit.h b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPostMem/BoardInit.h
new file mode 100644
index 000000000..ddae0823d
--- /dev/null
+++ b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPostMem/BoardInit.h
@@ -0,0 +1,30 @@
+/** @file
+  GPIO setting for CherryView.
+  This file includes package header files, library classes.
+
+  Copyright (c) 2013 - 2017, Intel Corporation. All rights reserved.<BR>
+
+  This program and the accompanying materials
+  are licensed and made available under the terms and conditions of the BSD License
+  which accompanies this distribution.  The full text of the license may be found at
+  http://opensource.org/licenses/bsd-license.php.
+
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+**/
+
+#ifndef _MINNOW3_NEXT_BOARDINIT_H_
+#define _MINNOW3_NEXT_BOARDINIT_H_
+
+#include <PiPei.h>
+#include <Library/IoLib.h>
+#include <Library/HobLib.h>
+#include <Library/TimerLib.h>
+#include <Guid/PlatformInfo_Aplk.h>
+#include <ScRegs/RegsPcu.h>
+
+VOID Minnow3NextGpioTest (VOID);
+
+#endif
+
diff --git a/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPostMem/BoardInitMiscs.c b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPostMem/BoardInitMiscs.c
new file mode 100644
index 000000000..a370291eb
--- /dev/null
+++ b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPostMem/BoardInitMiscs.c
@@ -0,0 +1,180 @@
+/** @file
+  This file does Multiplatform initialization.
+
+  Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>
+
+  This program and the accompanying materials
+  are licensed and made available under the terms and conditions of the BSD License
+  which accompanies this distribution.  The full text of the license may be found at
+  http://opensource.org/licenses/bsd-license.php.
+
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+**/
+
+#include "BoardInitMiscs.h"
+
+
+/**
+  Configure GPIO group GPE tier.
+
+  @param[in]  PlatformInfo
+
+  @retval     none.
+
+**/
+VOID
+Minnow3NextGpioGroupTierInit (
+  IN EFI_PLATFORM_INFO_HOB  *PlatformInfoHob
+  )
+{
+  DEBUG ((DEBUG_INFO, "Minnow3NextGpioGroupTierInit Start\n"));
+  switch (PlatformInfoHob->BoardId) {
+    default:
+      GpioSetGroupToGpeDwX (GPIO_BXTP_GROUP_7,  // map group 7 to GPE 0 ~ 31
+                            GPIO_BXTP_GROUP_0,  // map group 0 to GPE 32 ~ 63 // We don't have SCI pin in Group0 as of now, but still need to assign a unique group to this field.
+                            GPIO_BXTP_GROUP_1); // map group 1 to GPE 64 ~ 95 // We don't have SCI pin in Group1 as of now, but still need to assign a unique group to this field.
+      break;
+  }
+
+  DEBUG ((DEBUG_INFO, "Minnow3GpioGroupTierInit End\n"));
+}
+
+
+EFI_STATUS
+EFIAPI
+Minnow3NextMultiPlatformInfoInit (
+  IN CONST EFI_PEI_SERVICES     **PeiServices,
+  IN OUT EFI_PLATFORM_INFO_HOB  *PlatformInfoHob
+  )
+{
+  EFI_STATUS             Status;
+
+#if (ENBDT_PF_ENABLE == 1)
+   DEBUG ((EFI_D_INFO, "Platform BoardId:%x FabId%x\n", PlatformInfoHob->BoardId, PlatformInfoHob->BoardRev));
+#endif
+
+  //
+  // Device ID
+  //
+  PlatformInfoHob->IohSku = MmPci16 (0, SA_MC_BUS, SA_MC_DEV, SA_MC_FUN, PCI_DEVICE_ID_OFFSET);
+
+  PlatformInfoHob->IohRevision = MmPci8 (0, SA_MC_BUS, SA_MC_DEV, SA_MC_FUN, PCI_REVISION_ID_OFFSET);
+
+  //
+  // Don't support BASE above 4GB currently
+  //
+  PlatformInfoHob->PciData.PciExpressSize     = 0x04000000;
+  PlatformInfoHob->PciData.PciExpressBase     = (UINTN) PcdGet64 (PcdPciExpressBaseAddress);
+
+  PlatformInfoHob->PciData.PciResourceMem32Base  = (UINT32) (PlatformInfoHob->PciData.PciExpressBase - RES_MEM32_MIN_LEN);
+  PlatformInfoHob->PciData.PciResourceMem32Limit = (UINT32) (PlatformInfoHob->PciData.PciExpressBase -1);
+
+  PlatformInfoHob->PciData.PciResourceMem64Base   = RES_MEM64_36_BASE;
+  PlatformInfoHob->PciData.PciResourceMem64Limit  = RES_MEM64_36_LIMIT;
+  PlatformInfoHob->CpuData.CpuAddressWidth        = 36;
+
+  PlatformInfoHob->MemData.MemMir0 = PlatformInfoHob->PciData.PciResourceMem64Base;
+  PlatformInfoHob->MemData.MemMir1 = PlatformInfoHob->PciData.PciResourceMem64Limit + 1;
+
+  PlatformInfoHob->PciData.PciResourceMinSecBus  = 1;  //can be changed by SystemConfiguration->PciMinSecondaryBus;
+
+  //
+  // Set MemMaxTolm to the lowest address between PCIe Base and PCI32 Base
+  //
+  if (PlatformInfoHob->PciData.PciExpressBase > PlatformInfoHob->PciData.PciResourceMem32Base ) {
+    PlatformInfoHob->MemData.MemMaxTolm = (UINT32) PlatformInfoHob->PciData.PciResourceMem32Base;
+  } else {
+    PlatformInfoHob->MemData.MemMaxTolm = (UINT32) PlatformInfoHob->PciData.PciExpressBase;
+  }
+  PlatformInfoHob->MemData.MemTolm = PlatformInfoHob->MemData.MemMaxTolm;
+
+  //
+  // Platform PCI MMIO Size in unit of 1MB
+  //
+  PlatformInfoHob->MemData.MmioSize = 0x1000 - (UINT16) (PlatformInfoHob->MemData.MemMaxTolm >> 20);
+
+  //
+  // Enable ICH IOAPIC
+  //
+  PlatformInfoHob->SysData.SysIoApicEnable  = ICH_IOAPIC;
+
+  DEBUG ((EFI_D_INFO,  "PlatformFlavor is %x (%x=tablet,%x=mobile,%x=desktop)\n", PlatformInfoHob->PlatformFlavor, FlavorTablet, FlavorMobile, FlavorDesktop));
+
+  //
+  // Get Platform Info and fill the Hob
+  //
+  PlatformInfoHob->RevisonId = PLATFORM_INFO_HOB_REVISION;
+
+  //
+  // Get GPIO table
+  //
+  Status = Minnow3NextMultiPlatformGpioTableInit (PeiServices, PlatformInfoHob);
+  ASSERT_EFI_ERROR (Status);
+
+  //
+  // Program GPIO
+  //
+  Status = Minnow3NextMultiPlatformGpioProgram (PeiServices, PlatformInfoHob);
+
+  if (GetBxtSeries () == BxtP) {
+    Minnow3NextGpioGroupTierInit (PlatformInfoHob);
+  }
+
+  //
+  // Update OemId
+  //
+  Status = Minnow3NextInitializeBoardOemId (PeiServices, PlatformInfoHob);
+  Status = Minnow3NextInitializeBoardSsidSvid (PeiServices, PlatformInfoHob);
+
+  return EFI_SUCCESS;
+}
+
+
+EFI_STATUS
+Minnow3NextInitializeBoardOemId (
+  IN CONST EFI_PEI_SERVICES       **PeiServices,
+  IN EFI_PLATFORM_INFO_HOB        *PlatformInfoHob
+  )
+{
+  UINT64  OemId;
+  UINT64  OemTableId;
+
+  //
+  // Set OEM ID according to Board ID.
+  //
+  switch (PlatformInfoHob->BoardId) {
+    default:
+      OemId = EFI_ACPI_OEM_ID_DEFAULT;
+      OemTableId = EFI_ACPI_OEM_TABLE_ID_DEFAULT;
+      break;
+  }
+
+  PlatformInfoHob->AcpiOemId = OemId;
+  PlatformInfoHob->AcpiOemTableId = OemTableId;
+
+  return  EFI_SUCCESS;
+}
+
+EFI_STATUS
+Minnow3NextInitializeBoardSsidSvid (
+  IN CONST EFI_PEI_SERVICES       **PeiServices,
+  IN EFI_PLATFORM_INFO_HOB        *PlatformInfoHob
+  )
+{
+  UINT32  SsidSvidValue = 0;
+
+  //
+  // Set OEM ID according to Board ID.
+  //
+  switch (PlatformInfoHob->BoardId) {
+    default:
+      SsidSvidValue = SUBSYSTEM_SVID_SSID;
+      break;
+  }
+  PlatformInfoHob->SsidSvid = SsidSvidValue;
+
+  return  EFI_SUCCESS;
+}
+
diff --git a/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPostMem/BoardInitMiscs.h b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPostMem/BoardInitMiscs.h
new file mode 100644
index 000000000..fd4d08646
--- /dev/null
+++ b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPostMem/BoardInitMiscs.h
@@ -0,0 +1,127 @@
+/** @file
+  Multiplatform initialization header file.
+  This file includes package header files, library classes.
+
+  Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>
+
+  This program and the accompanying materials
+  are licensed and made available under the terms and conditions of the BSD License
+  which accompanies this distribution.  The full text of the license may be found at
+  http://opensource.org/licenses/bsd-license.php.
+
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+**/
+
+#ifndef _MINNOW_NEXT_MULTIPLATFORM_LIB_H_
+#define _MINNOW_NEXT_MULTIPLATFORM_LIB_H_
+
+#define LEN_64M       0x4000000
+//
+// Default PCI32 resource size
+//
+#define RES_MEM32_MIN_LEN   0x38000000
+
+#define RES_IO_BASE   0x0D00
+#define RES_IO_LIMIT  0xFFFF
+
+#include <PiDxe.h>
+#include <Library/BaseLib.h>
+#include <FrameworkPei.h>
+#include "PlatformBaseAddresses.h"
+#include "ScAccess.h"
+#include "SetupMode.h"
+#include "PlatformBootMode.h"
+#include "CpuRegs.h"
+#include "Platform.h"
+#include "CMOSMap.h"
+#include <Ppi/Stall.h>
+#include <Guid/SetupVariable.h>
+#include <Ppi/AtaController.h>
+#include <Ppi/BootInRecoveryMode.h>
+#include <Ppi/ReadOnlyVariable2.h>
+#include <Ppi/Capsule.h>
+#include <Guid/EfiVpdData.h>
+#include <Library/DebugLib.h>
+#include <Library/BaseMemoryLib.h>
+#include <Library/PcdLib.h>
+#include <Library/IoLib.h>
+#include <Library/HobLib.h>
+#include <Library/BaseLib.h>
+#include <Library/SteppingLib.h>
+#include <IndustryStandard/Pci22.h>
+#include <Guid/FirmwareFileSystem.h>
+#include <Guid/MemoryTypeInformation.h>
+#include <Ppi/Reset.h>
+#include <Ppi/EndOfPeiPhase.h>
+#include <Ppi/MemoryDiscovered.h>
+#include <Guid/GlobalVariable.h>
+#include <Ppi/RecoveryModule.h>
+#include <Ppi/DeviceRecoveryModule.h>
+#include <Guid/Capsule.h>
+#include <Guid/RecoveryDevice.h>
+#include <Ppi/MasterBootMode.h>
+#include <Guid/PlatformInfo_Aplk.h>
+
+#define EFI_ACPI_OEM_ID_DEFAULT    SIGNATURE_64('I', 'N', 'T', 'E', 'L', ' ', ' ', ' ')     // max 6 chars
+#define EFI_ACPI_OEM_ID1           SIGNATURE_64('I', 'N', 'T', 'E', 'L', '1', ' ', ' ')     // max 6 chars
+#define EFI_ACPI_OEM_ID2           SIGNATURE_64('I', 'N', 'T', 'E', 'L', '2', ' ', ' ')     // max 6 chars
+
+#define EFI_ACPI_OEM_TABLE_ID_DEFAULT   SIGNATURE_64('E', 'D', 'K', '2', ' ', ' ', ' ', ' ')
+#define EFI_ACPI_OEM_TABLE_ID1          SIGNATURE_64('E', 'D', 'K', '2', '_', '1', ' ', ' ')
+#define EFI_ACPI_OEM_TABLE_ID2          SIGNATURE_64('E', 'D', 'K', '2', '_', '2', ' ', ' ')
+
+//
+// Default Vendor ID and Subsystem ID
+//
+#define SUBSYSTEM_VENDOR_ID1   0x8086
+#define SUBSYSTEM_DEVICE_ID1   0x1999
+#define SUBSYSTEM_SVID_SSID1   (SUBSYSTEM_VENDOR_ID1 + (SUBSYSTEM_DEVICE_ID1 << 16))
+
+#define SUBSYSTEM_VENDOR_ID2   0x8086
+#define SUBSYSTEM_DEVICE_ID2   0x1888
+#define SUBSYSTEM_SVID_SSID2   (SUBSYSTEM_VENDOR_ID2 + (SUBSYSTEM_DEVICE_ID2 << 16))
+
+#define SUBSYSTEM_VENDOR_ID   0x8086
+#define SUBSYSTEM_DEVICE_ID   0x1234
+#define SUBSYSTEM_SVID_SSID   (SUBSYSTEM_VENDOR_ID + (SUBSYSTEM_DEVICE_ID << 16))
+
+EFI_STATUS
+Minnow3NextGetPlatformInfoHob (
+  IN CONST EFI_PEI_SERVICES     **PeiServices,
+  OUT EFI_PLATFORM_INFO_HOB     **PlatformInfoHob
+  );
+
+EFI_STATUS
+Minnow3NextMultiPlatformGpioTableInit (
+  IN CONST EFI_PEI_SERVICES     **PeiServices,
+  IN EFI_PLATFORM_INFO_HOB      *PlatformInfoHob
+  );
+
+EFI_STATUS
+Minnow3NextMultiPlatformGpioProgram (
+  IN CONST EFI_PEI_SERVICES     **PeiServices,
+  IN EFI_PLATFORM_INFO_HOB      *PlatformInfoHob
+  );
+
+EFI_STATUS
+Minnow3NextMultiPlatformInfoInit (
+  IN CONST EFI_PEI_SERVICES     **PeiServices,
+  IN OUT EFI_PLATFORM_INFO_HOB  *PlatformInfoHob
+  );
+
+EFI_STATUS
+Minnow3NextInitializeBoardOemId (
+  IN CONST EFI_PEI_SERVICES      **PeiServices,
+  IN EFI_PLATFORM_INFO_HOB        *PlatformInfoHob
+  );
+
+EFI_STATUS
+Minnow3NextInitializeBoardSsidSvid (
+  IN CONST EFI_PEI_SERVICES       **PeiServices,
+  IN EFI_PLATFORM_INFO_HOB        *PlatformInfoHob
+  );
+
+#endif
+
diff --git a/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPostMem/BoardInitPostMem.inf b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPostMem/BoardInitPostMem.inf
new file mode 100644
index 000000000..be32f93ec
--- /dev/null
+++ b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPostMem/BoardInitPostMem.inf
@@ -0,0 +1,81 @@
+## @file
+#  Board detected module for Intel(R) Atom(TM) x5 Processor Series.
+#  It will detect the board ID.
+#
+#  Copyright (c) 2014 - 2017, Intel Corporation. All rights reserved.<BR>
+#
+#  This program and the accompanying materials
+#  are licensed and made available under the terms and conditions of the BSD License
+#  which accompanies this distribution. The full text of the license may be found at
+#  http://opensource.org/licenses/bsd-license.php.
+#
+#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+##
+
+[Defines]
+  INF_VERSION                    = 0x00010017
+  BASE_NAME                      = MinnowBoard3NextInitPostMem
+  FILE_GUID                      = 39D9CFF9-6187-4984-903F-34FF2840EB91
+  VERSION_STRING                 = 1.0
+  MODULE_TYPE                    = PEIM
+  CONSTRUCTOR                    = MinnowBoard3NextInitConstructor
+
+[Sources]
+  BoardInit.c
+  BoardInit.h
+  BoardInitMiscs.c
+  BoardInitMiscs.h
+  PlatformInfoHob.c
+  BoardGpios.c
+  BoardGpios.h
+
+[LibraryClasses]
+  PeiServicesLib
+  PcdLib
+  DebugLib
+  HeciMsgLib
+  HobLib
+  IoLib
+  SteppingLib
+  GpioLib
+  TimerLib
+
+[Packages]
+  MdePkg/MdePkg.dec
+  BroxtonPlatformPkg/PlatformPkg.dec
+  BroxtonSiPkg/BroxtonSiPkg.dec
+  MdeModulePkg/MdeModulePkg.dec
+  IntelFrameworkPkg/IntelFrameworkPkg.dec
+  SecurityPkg/SecurityPkg.dec
+  BroxtonSiPkg/BroxtonSiPkg.dec
+
+[Pcd]
+  gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress
+  gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid
+  gEfiBxtTokenSpaceGuid.PcdPmcGcrBaseAddress
+  gPlatformModuleTokenSpaceGuid.PcdBoardPostMemInitFunc
+  gPlatformModuleTokenSpaceGuid.PcdBoardId
+  gPlatformModuleTokenSpaceGuid.PcdFabId
+  gPlatformModuleTokenSpaceGuid.PcdResetType
+  gPlatformModuleTokenSpaceGuid.PcdBoardVbtFileGuid
+
+[Guids]
+  gEfiPlatformInfoGuid
+  gEfiAuthenticatedVariableGuid
+  gEfiVariableGuid
+  gPeiVariableCacheHobGuid
+  gEfiTpmDeviceSelectedGuid
+  gEfiTpmDeviceInstanceNoneGuid
+  gEfiTpmDeviceInstanceTpm12Guid
+  gEfiTpmDeviceInstanceTpm20DtpmGuid
+  gTpmDeviceInstanceTpm20PttPtpGuid
+  gPeiMinnow3NextVbtGuid
+
+[Ppis]
+  gBoardPostMemInitStartGuid
+  gBoardPostMemInitDoneGuid
+  gEfiPeiReadOnlyVariable2PpiGuid
+  gSeCfTPMPolicyPpiGuid
+
diff --git a/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPostMem/PlatformInfoHob.c b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPostMem/PlatformInfoHob.c
new file mode 100644
index 000000000..9b65526f1
--- /dev/null
+++ b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPostMem/PlatformInfoHob.c
@@ -0,0 +1,58 @@
+/** @file
+  This file does Multiplatform initialization.
+
+  Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>
+
+  This program and the accompanying materials
+  are licensed and made available under the terms and conditions of the BSD License
+  which accompanies this distribution.  The full text of the license may be found at
+  http://opensource.org/licenses/bsd-license.php.
+
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+**/
+
+#include "BoardInitMiscs.h"
+
+/**
+  Returns the Platform Info of the platform from the HOB.
+
+  @param[in] PeiServices              General purpose services available to every PEIM.
+  @param[in] PlatformInfoHob          Pointer to the PLATFORM_INFO_HOB Pointer
+
+  @retval    EFI_SUCCESS              The function completed successfully.
+  @retval    EFI_NOT_FOUND            PlatformInfoHob data doesn't exist, use default instead.
+
+**/
+EFI_STATUS
+Minnow3NextGetPlatformInfoHob (
+  IN CONST EFI_PEI_SERVICES     **PeiServices,
+  OUT EFI_PLATFORM_INFO_HOB     **PlatformInfoHob
+  )
+{
+  EFI_PEI_HOB_POINTERS        GuidHob;
+
+  //
+  // Find the PlatformInfo HOB
+  //
+  GuidHob.Raw = GetHobList ();
+  if (GuidHob.Raw == NULL) {
+    return EFI_NOT_FOUND;
+  }
+
+  if ((GuidHob.Raw = GetNextGuidHob (&gEfiPlatformInfoGuid, GuidHob.Raw)) != NULL) {
+    *PlatformInfoHob = GET_GUID_HOB_DATA (GuidHob.Guid);
+  }
+
+  //
+  // PlatformInfo PEIM should provide this HOB data, if not ASSERT and return error.
+  //
+  ASSERT_EFI_ERROR (*PlatformInfoHob != NULL);
+  if (!(*PlatformInfoHob)) {
+    return EFI_NOT_FOUND;
+  }
+
+  return EFI_SUCCESS;
+}
+
-- 
2.14.1.windows.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017 3/4] Board Specific Code.
  2017-11-24  3:33 [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017 1/4] Board Specific Code zwei4
  2017-11-24  3:33 ` [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017 2/4] " zwei4
@ 2017-11-24  3:33 ` zwei4
  2017-11-24  3:33 ` [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017 4/4] " zwei4
  2 siblings, 0 replies; 4+ messages in thread
From: zwei4 @ 2017-11-24  3:33 UTC (permalink / raw)
  To: edk2-devel

Add BoardInitPreMem lib for Minnowboard3 Next pre-production board.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: zwei4 <david.wei@intel.com>
---
 .../MinnowBoard3Next/BoardInitPreMem/BoardInit.c   | 190 +++++++++
 .../MinnowBoard3Next/BoardInitPreMem/BoardInit.h   |  29 ++
 .../BoardInitPreMem/BoardInitMiscs.c               | 433 +++++++++++++++++++++
 .../BoardInitPreMem/BoardInitMiscs.h               |  67 ++++
 .../BoardInitPreMem/BoardInitPreMem.inf            |  62 +++
 .../MinnowBoard3Next/BoardInitPreMem/PlatformId.c  | 231 +++++++++++
 .../MinnowBoard3Next/BoardInitPreMem/PlatformId.h  |  45 +++
 7 files changed, 1057 insertions(+)
 create mode 100644 Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPreMem/BoardInit.c
 create mode 100644 Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPreMem/BoardInit.h
 create mode 100644 Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPreMem/BoardInitMiscs.c
 create mode 100644 Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPreMem/BoardInitMiscs.h
 create mode 100644 Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPreMem/BoardInitPreMem.inf
 create mode 100644 Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPreMem/PlatformId.c
 create mode 100644 Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPreMem/PlatformId.h

diff --git a/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPreMem/BoardInit.c b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPreMem/BoardInit.c
new file mode 100644
index 000000000..7df8fd1c0
--- /dev/null
+++ b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPreMem/BoardInit.c
@@ -0,0 +1,190 @@
+/** @file
+  Board Init driver.
+
+  Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>
+
+  This program and the accompanying materials
+  are licensed and made available under the terms and conditions of the BSD License
+  which accompanies this distribution.  The full text of the license may be found at
+  http://opensource.org/licenses/bsd-license.php.
+
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+**/
+
+#include <PiPei.h>
+#include <Library/PeiServicesLib.h>
+#include <Library/PcdLib.h>
+#include <Library/BaseMemoryLib.h>
+#include <Library/DebugLib.h>
+#include <Guid/PlatformInfo.h>
+#include <Ppi/BoardInitSignalling.h>
+#include "BoardInit.h"
+#include "PlatformId.h"
+#include "BoardInitMiscs.h"
+
+EFI_STATUS
+EFIAPI
+MinnowBoard3NextPreMemInit (
+  IN CONST EFI_PEI_SERVICES     **PeiServices,
+  IN PEI_BOARD_PRE_MEM_INIT_PPI *This
+  );
+
+static PEI_BOARD_PRE_MEM_INIT_PPI mMinnow3NextPreMemInitPpiInstance = {
+  MinnowBoard3NextPreMemInit
+};
+
+static EFI_PEI_PPI_DESCRIPTOR mMinnowBoard3NextPreMemInitPpi = {
+  (EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),
+  &gBoardPreMemInitPpiGuid,
+  &mMinnow3NextPreMemInitPpiInstance
+};
+
+static EFI_PEI_PPI_DESCRIPTOR mMinnowBoard3NextPreMemInitDonePpi = {
+  (EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),
+  &gBoardPreMemInitDoneGuid,
+  NULL
+};
+
+EFI_STATUS
+EFIAPI
+MinnowBoard3NextPreMemInit (
+  IN CONST EFI_PEI_SERVICES     **PeiServices,
+  IN PEI_BOARD_PRE_MEM_INIT_PPI *This
+  )
+{
+  EFI_STATUS                       Status;
+  VOID                             *Instance;
+  UINT8                            BoardId;
+  UINT8                            FabId;
+
+  BoardId = 0;
+  FabId = 0;
+  Status = PeiServicesLocatePpi (
+             &gBoardPreMemInitDoneGuid,
+             0,
+             NULL,
+             &Instance
+             );
+  if (!EFI_ERROR (Status)) {
+     DEBUG ((EFI_D_INFO,  "Minnow Board 3 Next Pre Mem Init: Skip\n"));
+    return EFI_SUCCESS;
+  }
+
+  DEBUG ((EFI_D_INFO,  "Minnow Board 3 Next Pre Mem Init\n"));
+
+  //
+  // Pre Mem Board Init
+  //
+  Status = Minnow3NextGetEmbeddedBoardIdFabId (PeiServices, &BoardId, &FabId);
+
+  if (BoardId != (UINT8) BOARD_ID_MINNOW_NEXT) {
+
+    return EFI_SUCCESS;
+  }
+  DEBUG ((EFI_D_INFO,  "This is MinnowBoard3 Next\n"));
+
+  PcdSet8 (PcdBoardId, BoardId);
+  PcdSet8 (PcdFabId,   FabId);
+  
+  //
+  //PcdSet8 (PcdSerialIoUartNumber, 0);
+  //
+  
+  //
+  // Set board specific function as dynamic PCD to be called by common platform code
+  //
+  PcdSet64 (PcdUpdateFspmUpdFunc,            (UINT64) (UINTN) mMb3NUpdateFspmUpdPtr);
+  PcdSet64 (PcdDramCreatePolicyDefaultsFunc, (UINT64) (UINTN) mMb3NDramCreatePolicyDefaultsPtr);
+  PcdSet64 (PcdUpdatePcieConfigFunc,         (UINT64) (UINTN) mMb3NUpdatePcieConfigPtr);
+
+  //
+  // Install a flag signalling a board is detected and pre-mem init is done
+  //
+  Status = PeiServicesInstallPpi (&mMinnowBoard3NextPreMemInitDonePpi);
+
+  return EFI_SUCCESS;
+}
+
+
+/**
+  This function performs Board initialization in Pre-Memory.
+
+  @retval     EFI_SUCCESS           The PPI is installed and initialized.
+  @retval     EFI ERRORS            The PPI is not successfully installed.
+  @retval     EFI_OUT_OF_RESOURCES  No enough resoruces (such as out of memory).
+
+**/
+EFI_STATUS
+EFIAPI
+MinnowBoard3NextInitConstructor (
+  IN       EFI_PEI_FILE_HANDLE  FileHandle,
+  IN CONST EFI_PEI_SERVICES     **PeiServices
+  )
+{
+  EFI_STATUS                       Status;
+  VOID                             *Ppi;
+  EFI_PEI_PPI_DESCRIPTOR           *PeiPpiDescriptor;
+  UINTN                            Instance;
+
+  DEBUG ((EFI_D_INFO,  "MinnowBoard3Next Pre Mem Init Constructor \n"));
+
+  Status = PeiServicesLocatePpi (
+             &gBoardPreMemInitDoneGuid,
+             0,
+             &PeiPpiDescriptor,
+             &Ppi
+             );
+  if (!EFI_ERROR (Status)) {
+    //
+    // Board detection previously done, so this is a re-invocation shadowed in memory.
+    // Reinstall PPIs to eliminate PPI descriptors in torn down temp RAM.
+    //
+    //
+    // Reinstall PreMemInit Done PPI
+    //
+    DEBUG ((EFI_D_INFO,  "Reinstall Pre Mem Init Done PPI\n"));
+    Status = PeiServicesReInstallPpi (
+               PeiPpiDescriptor,
+               &mMinnowBoard3NextPreMemInitDonePpi
+               );
+    ASSERT_EFI_ERROR (Status);
+
+    //
+    // Reinstall all instances of Pre Mem Init PPIs.
+    // These PPIs are no longer used so it doesn't matter which board's instance is finally installed.
+    // According to PeiServicesReInstallPpi behavior:
+    // The first run of this loop would replace all descrioptors with a singe in-RAM descriptor;
+    // Subsequent runs of this loop will only replace the first (already in-RAM) descriptor.
+    // As long as all descriptors are in ram, we are fine.
+    //
+    Instance = 0;
+    do {
+      Status = PeiServicesLocatePpi (
+                 &gBoardPreMemInitPpiGuid,
+                 Instance,
+                 &PeiPpiDescriptor,
+                 &Ppi
+                 );
+      if (Status == EFI_NOT_FOUND) {
+        break;
+      }
+      ASSERT_EFI_ERROR (Status);
+      DEBUG ((EFI_D_INFO,  "Reinstall Pre Mem Init PPI\n"));
+      Status = PeiServicesReInstallPpi (
+                 PeiPpiDescriptor,
+                 &mMinnowBoard3NextPreMemInitPpi
+                 );
+      ASSERT_EFI_ERROR (Status);
+
+      Instance++;
+    } while (TRUE);
+    return Status;
+  }
+
+  DEBUG ((EFI_D_INFO,  "Install Pre Mem Init PPI \n"));
+  Status = PeiServicesInstallPpi (&mMinnowBoard3NextPreMemInitPpi);
+  return Status;
+}
+
diff --git a/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPreMem/BoardInit.h b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPreMem/BoardInit.h
new file mode 100644
index 000000000..510d053d2
--- /dev/null
+++ b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPreMem/BoardInit.h
@@ -0,0 +1,29 @@
+/** @file
+  GPIO setting for CherryView.
+  This file includes package header files, library classes.
+
+  Copyright (c) 2013 - 2017, Intel Corporation. All rights reserved.<BR>
+
+  This program and the accompanying materials
+  are licensed and made available under the terms and conditions of the BSD License
+  which accompanies this distribution.  The full text of the license may be found at
+  http://opensource.org/licenses/bsd-license.php.
+
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+**/
+
+#ifndef _MINNOW_NEXT_BOARDINIT_H_
+#define _MINNOW_NEXT_BOARDINIT_H_
+
+#include <PiPei.h>
+#include <Library/IoLib.h>
+#include <Library/HobLib.h>
+#include <Library/TimerLib.h>
+#include <Guid/PlatformInfo.h>
+
+VOID MinnowNextGpioTest (VOID);
+
+#endif
+
diff --git a/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPreMem/BoardInitMiscs.c b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPreMem/BoardInitMiscs.c
new file mode 100644
index 000000000..888b31668
--- /dev/null
+++ b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPreMem/BoardInitMiscs.c
@@ -0,0 +1,433 @@
+/** @file
+  This file does Multiplatform initialization.
+
+  Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>
+
+  This program and the accompanying materials
+  are licensed and made available under the terms and conditions of the BSD License
+  which accompanies this distribution.  The full text of the license may be found at
+  http://opensource.org/licenses/bsd-license.php.
+
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+**/
+
+#include "BoardInitMiscs.h"
+
+UPDATE_FSPM_UPD_FUNC               mMb3NUpdateFspmUpdPtr            = Mb3NUpdateFspmUpd;
+DRAM_CREATE_POLICY_DEFAULTS_FUNC   mMb3NDramCreatePolicyDefaultsPtr = Mb3NDramCreatePolicyDefaults;
+UPDATE_PCIE_CONFIG_FUNC            mMb3NUpdatePcieConfigPtr         = Mb3NUpdatePcieConfig;
+
+//
+// Minnow Board Next swizzling
+//
+UINT8 ChSwizzle_MB3N[DRAM_POLICY_NUMBER_CHANNELS][DRAM_POLICY_NUMBER_BITS] = {
+  {0x00,0x06,0x04,0x05,0x01,0x03,0x02,0x07,0x08,0x09,0x0B,0x0F,0x0A,0x0D,0x0C,0x0E,0x1C,0x18,0x1A,0x1B,0x1D,0x1E,0x1F,0x19,0x12,0x13,0x14,0x11,0x10,0x16,0x17,0x15}, // Channel 0
+  {0x0E,0x0F,0x0A,0x0B,0x08,0x0D,0x0C,0x09,0x07,0x04,0x05,0x00,0x01,0x03,0x02,0x06,0x12,0x15,0x14,0x17,0x10,0x13,0x11,0x16,0x1D,0x1C,0x1F,0x1B,0x1A,0x19,0x18,0x1E}, // Channel 1
+  {0x0B,0x0D,0x0C,0x0F,0x09,0x08,0x0A,0x0E,0x05,0x06,0x03,0x07,0x00,0x01,0x02,0x04,0x17,0x11,0x10,0x13,0x14,0x16,0x15,0x12,0x19,0x1B,0x1A,0x18,0x1C,0x1D,0x1E,0x1F}, // Channel 2
+  {0x07,0x01,0x02,0x03,0x04,0x05,0x06,0x00,0x0E,0x0D,0x0B,0x0C,0x0A,0x08,0x0F,0x09,0x1E,0x18,0x1C,0x1D,0x1A,0x19,0x1B,0x1F,0x14,0x11,0x12,0x16,0x13,0x15,0x17,0x10}  // Channel 3
+};
+
+BOARD_CHANNEL_INFO gMb3nChannelInfo[] = {
+   // DeviceWidth               DramDensity               Option                    RankEnable                DescString
+   // Ch 0  Ch 1  Ch 2  Ch 3    Ch 0  Ch 1  Ch 2  Ch 3    Ch 0  Ch 1  Ch 2  Ch 3    Ch 0  Ch 1  Ch 2  Ch 3
+    {{0x01, 0x01, 0x01, 0x01}, {0x02, 0x02, 0x02, 0x02}, {0x03, 0x03, 0x03, 0x03}, {0x01, 0x01, 0x00, 0x00}, "LPDDR4  8Gbit 2 channels"}, // #1 - LPDDR4  8Gbit 2 channels
+    {{0x01, 0x01, 0x01, 0x01}, {0x02, 0x02, 0x02, 0x02}, {0x03, 0x03, 0x03, 0x03}, {0x01, 0x01, 0x01, 0x01}, "LPDDR4  8Gbit 4 channels"}, // #2 - LPDDR4  8Gbit 4 channels
+    {{0x01, 0x01, 0x01, 0x01}, {0x02, 0x02, 0x02, 0x02}, {0x03, 0x03, 0x03, 0x03}, {0x03, 0x03, 0x00, 0x00}, "LPDDR4 16Gbit 2 channels"}, // #3 - LPDDR4 16Gbit 2 channels
+    {{0x01, 0x01, 0x01, 0x01}, {0x02, 0x02, 0x02, 0x02}, {0x03, 0x03, 0x03, 0x03}, {0x03, 0x03, 0x03, 0x03}, "LPDDR4 16Gbit 4 channels"}, // #4 - LPDDR4 16Gbit 4 channels
+};
+
+EFI_STATUS
+EFIAPI
+Mb3NUpdateFspmUpd (
+  IN CONST EFI_PEI_SERVICES  **PeiServices,
+  IN FSPM_UPD                *FspUpdRgn
+  )
+{
+  EFI_PEI_HOB_POINTERS               Hob;
+  EFI_PLATFORM_INFO_HOB             *PlatformInfo = NULL;
+  DRAM_POLICY_PPI                   *DramPolicy;
+  EFI_STATUS                         Status;
+  MRC_PARAMS_SAVE_RESTORE           *MrcNvData;
+  BOOT_VARIABLE_NV_DATA             *BootVariableNvData;
+  MRC_PARAMS_SAVE_RESTORE           *MrcParamsHob;
+  BOOT_VARIABLE_NV_DATA             *BootVariableNvDataHob;
+  SYSTEM_CONFIGURATION               SystemConfiguration;
+  UINTN                              VariableSize;
+  EFI_PEI_READ_ONLY_VARIABLE2_PPI   *VariablePpi;
+  UINT32                             VidDid;
+  UINT32                             HwconfStraps;
+  UINT8                              MemoryType;
+
+  Status = (*PeiServices)->LocatePpi (
+                             PeiServices,
+                             &gDramPolicyPpiGuid,
+                             0,
+                             NULL,
+                             (VOID **) &DramPolicy
+                             );
+
+  if (!EFI_ERROR (Status)) {
+    FspUpdRgn->FspmConfig.Package                           = DramPolicy->Package;
+    FspUpdRgn->FspmConfig.Profile                           = DramPolicy->Profile;
+    FspUpdRgn->FspmConfig.MemoryDown                        = DramPolicy->MemoryDown;
+    FspUpdRgn->FspmConfig.DDR3LPageSize                     = DramPolicy->DDR3LPageSize;
+    FspUpdRgn->FspmConfig.DDR3LASR                          = DramPolicy->DDR3LASR;
+    FspUpdRgn->FspmConfig.MemorySizeLimit                   = DramPolicy->SystemMemorySizeLimit;
+    FspUpdRgn->FspmConfig.DIMM0SPDAddress                   = DramPolicy->SpdAddress[0];
+    FspUpdRgn->FspmConfig.DIMM1SPDAddress                   = DramPolicy->SpdAddress[1];
+    FspUpdRgn->FspmConfig.DDR3LPageSize                     = DramPolicy->DDR3LPageSize;
+    FspUpdRgn->FspmConfig.DDR3LASR                          = DramPolicy->DDR3LASR;
+    FspUpdRgn->FspmConfig.HighMemoryMaxValue                = DramPolicy->HighMemMaxVal;
+    FspUpdRgn->FspmConfig.LowMemoryMaxValue                 = DramPolicy->LowMemMaxVal;
+    FspUpdRgn->FspmConfig.DisableFastBoot                   = DramPolicy->DisableFastBoot;
+    FspUpdRgn->FspmConfig.RmtMode                           = DramPolicy->RmtMode;
+    FspUpdRgn->FspmConfig.RmtCheckRun                       = DramPolicy->RmtCheckRun;
+    FspUpdRgn->FspmConfig.RmtMarginCheckScaleHighThreshold  = DramPolicy->RmtMarginCheckScaleHighThreshold;
+    FspUpdRgn->FspmConfig.MsgLevelMask                      = DramPolicy->MsgLevelMask;
+
+    FspUpdRgn->FspmConfig.ChannelHashMask                   = DramPolicy->ChannelHashMask;
+    FspUpdRgn->FspmConfig.SliceHashMask                     = DramPolicy->SliceHashMask;
+    FspUpdRgn->FspmConfig.ChannelsSlicesEnable              = DramPolicy->ChannelsSlicesEnabled;
+    FspUpdRgn->FspmConfig.ScramblerSupport                  = DramPolicy->ScramblerSupport;
+    FspUpdRgn->FspmConfig.InterleavedMode                   = DramPolicy->InterleavedMode;
+    FspUpdRgn->FspmConfig.MinRefRate2xEnable                = DramPolicy->MinRefRate2xEnabled;
+    FspUpdRgn->FspmConfig.DualRankSupportEnable             = DramPolicy->DualRankSupportEnabled;
+
+    CopyMem (&(FspUpdRgn->FspmConfig.Ch0_RankEnable), &DramPolicy->ChDrp, sizeof(DramPolicy->ChDrp));
+    CopyMem (&(FspUpdRgn->FspmConfig.Ch0_Bit_swizzling), &DramPolicy->ChSwizzle, sizeof (DramPolicy->ChSwizzle));
+
+    if (((VOID *)(UINT32)DramPolicy->MrcTrainingDataPtr != 0) &&
+        ((VOID *)(UINT32)DramPolicy->MrcBootDataPtr     != 0)) {
+      DEBUG ((DEBUG_INFO, "UpdateFspmUpd - NvsBufferPtr\n"));
+      MrcNvData          = (MRC_PARAMS_SAVE_RESTORE *) AllocateZeroPool (sizeof (MRC_PARAMS_SAVE_RESTORE));
+      BootVariableNvData = (BOOT_VARIABLE_NV_DATA *) AllocateZeroPool (sizeof (BOOT_VARIABLE_NV_DATA));
+
+      MrcParamsHob          = (MRC_PARAMS_SAVE_RESTORE*)((UINT32)DramPolicy->MrcTrainingDataPtr);
+      BootVariableNvDataHob = (BOOT_VARIABLE_NV_DATA*)((UINT32)DramPolicy->MrcBootDataPtr);
+
+      CopyMem(MrcNvData, MrcParamsHob, sizeof (MRC_PARAMS_SAVE_RESTORE));
+      CopyMem(BootVariableNvData, BootVariableNvDataHob, sizeof (BOOT_VARIABLE_NV_DATA));
+      FspUpdRgn->FspmArchUpd.NvsBufferPtr        = (VOID *)(UINT32)MrcNvData;
+      FspUpdRgn->FspmConfig.VariableNvsBufferPtr = (VOID *)(UINT32)BootVariableNvData;
+    }
+  } else {
+    DEBUG ((DEBUG_INFO, "UpdateFspmUpd - LocatePpi(gDramPolicyPpiGuid) returned %r\n", Status));
+  }
+
+  DEBUG ((DEBUG_INFO, "UpdateFspmUpd - gEfiPlatformInfoGuid\n"));
+  Hob.Raw = GetFirstGuidHob (&gEfiPlatformInfoGuid);
+  ASSERT (Hob.Raw != NULL);
+  PlatformInfo = GET_GUID_HOB_DATA (Hob.Raw);
+
+  //
+  // Get IGD VID/DID
+  //
+  VidDid = MmioRead32 (MmPciBase (SA_IGD_BUS, SA_IGD_DEV, SA_IGD_FUN_0) + R_SA_IGD_VID);
+  if (VidDid == 0x5A848086) {
+    //
+    // E3950 path
+    //
+    DEBUG ((DEBUG_INFO, "**** MB3N - E3950 detected!\n"));
+  } else if (VidDid == 0x5A858086) {
+    //
+    // E3930 path
+    //
+    DEBUG ((DEBUG_INFO, "**** MB3N - E3930 detected!\n"));
+  }
+
+  //
+  // Overrides for MinnowBoard3Next from Platfrom4 profile
+  //
+  //   Description    | DualRank | RankEnable | DeviceWidth | DramDenisty | SoC   | Channel
+  //  ================|==========|============|=============|=============|=======|=========
+  //   MT53B256M32D1  | 0x01     | 0x01       | 0x01  x16   | 0x02   8Gb  | E3930 | Ch0
+  //   MT53B512M32D2  | 0x01     | 0x03       | 0x01  x16   | 0x02   8Gb  | E3950 | Ch0&1
+  //   MT53B1024M32D4 | 0x01     | 0x03       | 0x00  x8    | 0x04  16Gb  |       |
+  //
+
+  //
+  // Get HWCONF straps
+  //
+  HwconfStraps = Minnow3NextGetHwconfStraps ();
+  DEBUG ((DEBUG_INFO, "**** MB3N - HWCONF straps = 0x%08X\n", HwconfStraps));
+
+  //
+  // Translate into Memory Type
+  //
+  MemoryType = (UINT8) ((HwconfStraps >> 6) & 0x07);
+  if (MemoryType == 0) {
+    DEBUG ((DEBUG_INFO, "**** MB3N - SPD based memory init requested, but converted into Memory Profile type #4!\n"));
+    MemoryType = 4;
+  }
+  MemoryType--; // Zero base it for use as index into array
+
+  //
+  // Common items
+  //
+  FspUpdRgn->FspmConfig.Package                 = 0x01;
+  FspUpdRgn->FspmConfig.Profile                 = 0x09; // 0x0B; // LPDDR4_2400_24_22_22
+  FspUpdRgn->FspmConfig.MemoryDown              = 0x01;
+  FspUpdRgn->FspmConfig.DualRankSupportEnable   = 0x01;
+
+  //
+  // Memory Type specific items
+  //
+  if (MemoryType < (sizeof (gMb3nChannelInfo) / sizeof (gMb3nChannelInfo[0]))) {
+    DEBUG ((DEBUG_INFO, "**** MB3N - %a detected!\n", gMb3nChannelInfo[MemoryType].DescString));
+
+    // DDR0CH0
+    FspUpdRgn->FspmConfig.Ch0_RankEnable        = gMb3nChannelInfo[MemoryType].RankEnable[0];
+    FspUpdRgn->FspmConfig.Ch0_DeviceWidth       = gMb3nChannelInfo[MemoryType].DeviceWidth[0];
+    FspUpdRgn->FspmConfig.Ch0_DramDensity       = gMb3nChannelInfo[MemoryType].DramDensity[0];
+    FspUpdRgn->FspmConfig.Ch0_Option            = gMb3nChannelInfo[MemoryType].Option[0];
+
+    // DDR0CH1
+    FspUpdRgn->FspmConfig.Ch1_RankEnable        = gMb3nChannelInfo[MemoryType].RankEnable[1];
+    FspUpdRgn->FspmConfig.Ch1_DeviceWidth       = gMb3nChannelInfo[MemoryType].DeviceWidth[1];
+    FspUpdRgn->FspmConfig.Ch1_DramDensity       = gMb3nChannelInfo[MemoryType].DramDensity[1];
+    FspUpdRgn->FspmConfig.Ch1_Option            = gMb3nChannelInfo[MemoryType].Option[1];
+
+    // DDR1CH0
+    FspUpdRgn->FspmConfig.Ch2_RankEnable        = gMb3nChannelInfo[MemoryType].RankEnable[2];
+    FspUpdRgn->FspmConfig.Ch2_DeviceWidth       = gMb3nChannelInfo[MemoryType].DeviceWidth[2];
+    FspUpdRgn->FspmConfig.Ch2_DramDensity       = gMb3nChannelInfo[MemoryType].DramDensity[2];
+    FspUpdRgn->FspmConfig.Ch2_Option            = gMb3nChannelInfo[MemoryType].Option[2];
+
+    // DDR1CH1
+    FspUpdRgn->FspmConfig.Ch3_RankEnable        = gMb3nChannelInfo[MemoryType].RankEnable[3];
+    FspUpdRgn->FspmConfig.Ch3_DeviceWidth       = gMb3nChannelInfo[MemoryType].DeviceWidth[3];
+    FspUpdRgn->FspmConfig.Ch3_DramDensity       = gMb3nChannelInfo[MemoryType].DramDensity[3];
+    FspUpdRgn->FspmConfig.Ch3_Option            = gMb3nChannelInfo[MemoryType].Option[3];
+  } else {
+    DEBUG ((DEBUG_INFO, "**** MB3N - Memory Type 0x%02X is out of range!\n", MemoryType));
+  }
+
+  //
+  // Swizzling
+  //
+  if (ChSwizzle_MB3N != NULL) {
+    CopyMem (&(FspUpdRgn->FspmConfig.Ch0_Bit_swizzling), ChSwizzle_MB3N[0], DRAM_POLICY_NUMBER_BITS * sizeof(UINT8));
+    CopyMem (&(FspUpdRgn->FspmConfig.Ch1_Bit_swizzling), ChSwizzle_MB3N[1], DRAM_POLICY_NUMBER_BITS * sizeof(UINT8));
+    CopyMem (&(FspUpdRgn->FspmConfig.Ch2_Bit_swizzling), ChSwizzle_MB3N[2], DRAM_POLICY_NUMBER_BITS * sizeof(UINT8));
+    CopyMem (&(FspUpdRgn->FspmConfig.Ch3_Bit_swizzling), ChSwizzle_MB3N[3], DRAM_POLICY_NUMBER_BITS * sizeof(UINT8));
+  }
+
+  //
+  // Disable NPK based on DciEn
+  //
+  Status = PeiServicesLocatePpi (&gEfiPeiReadOnlyVariable2PpiGuid, 0, NULL, (VOID **) &VariablePpi);
+  if (!EFI_ERROR (Status)) {
+    VariableSize = sizeof (SYSTEM_CONFIGURATION);
+    Status = VariablePpi->GetVariable (
+                            VariablePpi,
+                            PLATFORM_SETUP_VARIABLE_NAME,
+                            &gEfiSetupVariableGuid,
+                            NULL,
+                            &VariableSize,
+                            &SystemConfiguration
+                            );
+    if (!EFI_ERROR (Status)) {
+      if (SystemConfiguration.DciEn == 0) {
+        FspUpdRgn->FspmConfig.NpkEn = 0;
+      } else if (SystemConfiguration.DciAutoDetect == 1) {
+        FspUpdRgn->FspmConfig.NpkEn = 3;
+      } else {
+        FspUpdRgn->FspmConfig.NpkEn = 1;
+      }
+    }
+  }
+
+  return EFI_SUCCESS;
+}
+
+
+/**
+  DramCreatePolicyDefaults creates the default setting of Dram Policy.
+
+  @param[out] DramPolicyPpi           The pointer to get Dram Policy PPI instance
+
+  @retval     EFI_SUCCESS             The policy default is initialized.
+  @retval     EFI_OUT_OF_RESOURCES    Insufficient resources to create buffer
+
+**/
+EFI_STATUS
+EFIAPI
+Mb3NDramCreatePolicyDefaults (
+  IN  EFI_PEI_READ_ONLY_VARIABLE2_PPI  *VariablePpi,
+  OUT DRAM_POLICY_PPI                  **DramPolicyPpi,
+  IN  IAFWDramConfig                   *DramConfigData,
+  IN  UINTN                            *MrcTrainingDataAddr,
+  IN  UINTN                            *MrcBootDataAddr,
+  IN  UINT8                            BoardId
+  )
+{
+  DRAM_POLICY_PPI                     *DramPolicy;
+  SYSTEM_CONFIGURATION                SystemConfiguration;
+  UINTN                               VariableSize;
+  EFI_STATUS                          Status;
+  DRP_DRAM_POLICY                     *DrpPtr;
+  UINT8                               (*ChSwizlePtr)[DRAM_POLICY_NUMBER_CHANNELS][DRAM_POLICY_NUMBER_BITS];
+  PlatfromDramConf                    *DramConfig;
+  BOOLEAN                             ReadSetupVars;
+
+  DEBUG ((EFI_D_INFO, "*** Minnow Board 3 Next DramCreatePolicyDefaults\n"));
+  DramPolicy = (DRAM_POLICY_PPI *) AllocateZeroPool (sizeof (DRAM_POLICY_PPI));
+  if (DramPolicy == NULL) {
+    ASSERT (FALSE);
+    return EFI_OUT_OF_RESOURCES;
+  }
+
+  ReadSetupVars = FALSE;
+  DrpPtr        = NULL;
+  ChSwizlePtr   = NULL;
+  DramConfig    = NULL;
+
+  VariableSize = sizeof (SYSTEM_CONFIGURATION);
+  Status = VariablePpi->GetVariable (
+                          VariablePpi,
+                          PLATFORM_SETUP_VARIABLE_NAME,
+                          &gEfiSetupVariableGuid,
+                          NULL,
+                          &VariableSize,
+                          &SystemConfiguration
+                          );
+
+#if !(ONLY_USE_SMIP_DRAM_POLICY == 1)
+  Status = EFI_UNSUPPORTED;
+#endif
+
+  if (!EFI_ERROR (Status)) {
+    DEBUG ((EFI_D_INFO, "Using setup options data for DRAM policy\n"));
+    ReadSetupVars = TRUE;
+    DramPolicy->ChannelHashMask         = SystemConfiguration.ChannelHashMask;
+    DramPolicy->SliceHashMask           = SystemConfiguration.SliceHashMask;
+    DramPolicy->ChannelsSlicesEnabled   = SystemConfiguration.ChannelsSlicesEnabled;
+    DramPolicy->ScramblerSupport        = SystemConfiguration.ScramblerSupport;
+    DramPolicy->InterleavedMode         = SystemConfiguration.InterleavedMode;
+    DramPolicy->MinRefRate2xEnabled     = SystemConfiguration.MinRefRate2xEnabled;
+    DramPolicy->DualRankSupportEnabled  = SystemConfiguration.DualRankSupportEnabled;
+  }
+
+  DramConfig = &(DramConfigData->PlatformDram4);
+
+  DEBUG ((EFI_D_INFO, "Using smip platform override: %d\n", DramConfigData->Platform_override));
+  switch (DramConfigData->Platform_override) {
+    case 0:
+      DramConfig = &(DramConfigData->PlatformDram0);
+      break;
+    case 1:
+      DramConfig = &(DramConfigData->PlatformDram1);
+      break;
+    case 2:
+      DramConfig = &(DramConfigData->PlatformDram2);
+      break;
+    case 3:
+      DramConfig = &(DramConfigData->PlatformDram3);
+      break;
+    case 4:
+      DramConfig = &(DramConfigData->PlatformDram4);
+      break;
+    default:
+      //
+      // Do nothing if the override value does not exist. 0xFF is the
+      // default Platform_override value when no override is selected
+      //
+      break;
+    }
+
+  DramPolicy->Package                            = DramConfig->Package;
+  DramPolicy->Profile                            = DramConfig->Profile;
+  DramPolicy->MemoryDown                         = DramConfig->MemoryDown;
+  DramPolicy->DDR3LPageSize                      = DramConfig->DDR3LPageSize;
+  DramPolicy->DDR3LASR                           = DramConfig->DDR3LASR;
+  DramPolicy->SystemMemorySizeLimit              = DramConfig->MemorySizeLimit;
+  DramPolicy->SpdAddress[0]                      = DramConfig->SpdAddress0;
+  DramPolicy->SpdAddress[1]                      = DramConfig->SpdAddress1;
+  DramPolicy->DDR3LPageSize                      = DramConfig->DDR3LPageSize;
+  DramPolicy->DDR3LASR                           = DramConfig->DDR3LASR;
+  DramPolicy->HighMemMaxVal                      = DramConfig->HighMemMaxVal;
+  DramPolicy->LowMemMaxVal                       = DramConfig->LowMemMaxVal;
+  DramPolicy->DisableFastBoot                    = DramConfig->DisableFastBoot;
+  DramPolicy->RmtMode                            = DramConfig->RmtMode;
+  DramPolicy->RmtCheckRun                        = DramConfig->RmtCheckRun;
+  DramPolicy->RmtMarginCheckScaleHighThreshold   = DramConfig->RmtMarginCheckScaleHighThreshold;
+
+  DramPolicy->MsgLevelMask                       = DramConfigData->Message_level_mask;
+  DrpPtr                                         = (DRP_DRAM_POLICY *) (&(DramConfig->Ch0RankEnabled));
+  ChSwizlePtr                                    = (UINT8(*)[DRAM_POLICY_NUMBER_CHANNELS][DRAM_POLICY_NUMBER_BITS]) (&(DramConfig->Ch0_Bit00_swizzling));
+
+  if (!ReadSetupVars) {
+    DEBUG ((EFI_D_INFO, "Using smip data for DRAM policy\n"));
+    DramPolicy->ChannelHashMask         = DramConfig->ChannelHashMask;
+    DramPolicy->SliceHashMask           = DramConfig->SliceHashMask;
+    DramPolicy->ChannelsSlicesEnabled   = DramConfig->ChannelsSlicesEnabled;
+    DramPolicy->ScramblerSupport        = DramConfig->ScramblerSupport;
+    DramPolicy->InterleavedMode         = DramConfig->InterleavedMode;
+    DramPolicy->MinRefRate2xEnabled     = DramConfig->MinRefRate2xEnabled;
+    DramPolicy->DualRankSupportEnabled  = DramConfig->DualRankSupportEnabled;
+  }
+
+  //
+  // DRP
+  //
+  if (DrpPtr != NULL) {
+    CopyMem (DramPolicy->ChDrp, DrpPtr, sizeof (DramPolicy->ChDrp));
+  }
+
+  //
+  // Swizzling
+  //
+  if (ChSwizlePtr != NULL) {
+    CopyMem (DramPolicy->ChSwizzle, ChSwizlePtr, sizeof (DramPolicy->ChSwizzle));
+  }
+
+  if (ReadSetupVars) {
+    if (SystemConfiguration.Max2G == 0) {
+      DramPolicy->SystemMemorySizeLimit = 0x800;
+    }
+  }
+
+  DramPolicy->MrcTrainingDataPtr = (EFI_PHYSICAL_ADDRESS) *MrcTrainingDataAddr;
+  DramPolicy->MrcBootDataPtr     = (EFI_PHYSICAL_ADDRESS) *MrcBootDataAddr;
+
+  *DramPolicyPpi = DramPolicy;
+
+  return EFI_SUCCESS;
+}
+
+/**
+  BgUpdatePcieConfig updates the PCIe config block for platform specific items.
+
+  @param[in] PciePreMemConfig         The pointer to the PCIe premem config instance
+
+  @retval     EFI_SUCCESS             The policy default is initialized.
+  @retval     EFI_OUT_OF_RESOURCES    Insufficient resources to create buffer
+
+**/
+EFI_STATUS
+EFIAPI
+Mb3NUpdatePcieConfig (
+  IN  SC_PCIE_PREMEM_CONFIG  *PciePreMemConfig
+  )
+{
+  //
+  // Minnow Board v3 Next
+  //
+  PciePreMemConfig->RootPort[0].Perst = W_PMU_PLTRST_B; // D20:F0 - PCIe-A
+  PciePreMemConfig->RootPort[1].Perst = W_PMU_PLTRST_B; // D20:F1 - PCIe-B
+  PciePreMemConfig->RootPort[2].Perst = W_PMU_PLTRST_B; // D19:F0 - PCIe-C
+  PciePreMemConfig->RootPort[3].Perst = W_PMU_PLTRST_B; // D19:F1 - PCIe-D
+  PciePreMemConfig->RootPort[4].Perst = W_PMU_PLTRST_B; // D19:F2 - LAN
+  PciePreMemConfig->RootPort[5].Perst = W_PMU_PLTRST_B; // D19:F3 - Empty
+  PciePreMemConfig->RootPort[0].Clock = W_GPIO_210;     // D20:F0 - PCIe-A
+  PciePreMemConfig->RootPort[1].Clock = W_GPIO_211;     // D20:F1 - PCIe-B
+  PciePreMemConfig->RootPort[2].Clock = W_GPIO_212;     // D19:F0 - PCIe-C
+  PciePreMemConfig->RootPort[3].Clock = 0;              // D19:F1 - PCIe-D
+  PciePreMemConfig->RootPort[4].Clock = W_GPIO_209;     // D19:F2 - LAN
+  PciePreMemConfig->RootPort[5].Clock = 0;              // D19:F3 - Empty
+
+  return EFI_SUCCESS;
+}
+
diff --git a/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPreMem/BoardInitMiscs.h b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPreMem/BoardInitMiscs.h
new file mode 100644
index 000000000..663ab6f50
--- /dev/null
+++ b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPreMem/BoardInitMiscs.h
@@ -0,0 +1,67 @@
+/** @file
+  Multiplatform initialization header file.
+  This file includes package header files, library classes.
+
+  Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>
+
+  This program and the accompanying materials
+  are licensed and made available under the terms and conditions of the BSD License
+  which accompanies this distribution.  The full text of the license may be found at
+  http://opensource.org/licenses/bsd-license.php.
+
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+**/
+
+#ifndef _MINNOW_NEXT_MULTIPLATFORM_LIB_H_
+#define _MINNOW_NEXT_MULTIPLATFORM_LIB_H_
+
+#include <BoardFunctionsPei.h>
+#include <Guid/SetupVariable.h>
+#include <Library/IoLib.h>
+#include <Library/MemoryAllocationLib.h>
+#include <Library/PeiDxeSmmMmPciLib.h>
+#include <SaRegs.h>
+#include "PlatformId.h"
+#include "MmrcData.h"
+
+
+extern UPDATE_FSPM_UPD_FUNC             mMb3NUpdateFspmUpdPtr;
+extern DRAM_CREATE_POLICY_DEFAULTS_FUNC mMb3NDramCreatePolicyDefaultsPtr;
+extern UPDATE_PCIE_CONFIG_FUNC          mMb3NUpdatePcieConfigPtr;
+
+typedef struct {
+  UINT8    DeviceWidth[DRAM_POLICY_NUMBER_CHANNELS];
+  UINT8    DramDensity[DRAM_POLICY_NUMBER_CHANNELS];
+  UINT8    Option[DRAM_POLICY_NUMBER_CHANNELS];
+  UINT8    RankEnable[DRAM_POLICY_NUMBER_CHANNELS];
+  CHAR8    DescString[32];
+} BOARD_CHANNEL_INFO;
+
+EFI_STATUS
+EFIAPI
+Mb3NUpdateFspmUpd (
+  IN CONST EFI_PEI_SERVICES  **PeiServices,
+  IN FSPM_UPD                *FspUpdRgn
+  );
+
+EFI_STATUS
+EFIAPI
+Mb3NDramCreatePolicyDefaults (
+  IN  EFI_PEI_READ_ONLY_VARIABLE2_PPI  *VariablePpi,
+  OUT DRAM_POLICY_PPI                  **DramPolicyPpi,
+  IN  IAFWDramConfig                   *DramConfigData,
+  IN  UINTN                            *MrcTrainingDataAddr,
+  IN  UINTN                            *MrcBootDataAddr,
+  IN  UINT8                            BoardId
+  );
+
+EFI_STATUS
+EFIAPI
+Mb3NUpdatePcieConfig (
+  IN  SC_PCIE_PREMEM_CONFIG  *PciePreMemConfig
+  );
+
+#endif
+
diff --git a/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPreMem/BoardInitPreMem.inf b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPreMem/BoardInitPreMem.inf
new file mode 100644
index 000000000..6cb3dcfa5
--- /dev/null
+++ b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPreMem/BoardInitPreMem.inf
@@ -0,0 +1,62 @@
+## @file
+#  Board detected module for Intel(R) Atom(TM) x5 Processor Series.
+#  It will detect the board ID.
+#
+#  Copyright (c) 2014 - 2017, Intel Corporation. All rights reserved.<BR>
+#
+#  This program and the accompanying materials
+#  are licensed and made available under the terms and conditions of the BSD License
+#  which accompanies this distribution. The full text of the license may be found at
+#  http://opensource.org/licenses/bsd-license.php.
+#
+#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+##
+
+[Defines]
+  INF_VERSION                    = 0x00010017
+  BASE_NAME                      = MinnowBoard3NextInitPreMem
+  FILE_GUID                      = A40B6929-FF79-4CF4-8B4E-40554390EC71
+  VERSION_STRING                 = 1.0
+  MODULE_TYPE                    = PEIM
+  CONSTRUCTOR                    = MinnowBoard3NextInitConstructor
+
+[Sources]
+  BoardInit.c
+  PlatformId.c
+  BoardInitMiscs.c
+
+[LibraryClasses]
+  PeiServicesLib
+  PcdLib
+  MmPciLib
+  IoLib
+
+[Packages]
+  MdePkg/MdePkg.dec
+  BroxtonPlatformPkg/PlatformPkg.dec
+  BroxtonSiPkg/BroxtonSiPkg.dec
+  BroxtonFspPkg/BroxtonFspPkg.dec
+  IntelFsp2Pkg/IntelFsp2Pkg.dec
+  BroxtonPlatformPkg/Common/SampleCode/IntelFsp2WrapperPkg/IntelFsp2WrapperPkg.dec
+  IntelFsp2WrapperPkg/IntelFsp2WrapperPkg.dec
+  Silicon/BroxtonSoC/BroxtonSiPkg/NorthCluster/MemoryInit/MemoryInit.dec
+
+[Pcd]
+  gPlatformModuleTokenSpaceGuid.PcdBoardId
+  gPlatformModuleTokenSpaceGuid.PcdFabId
+  gPlatformModuleTokenSpaceGuid.PcdUpdateFspmUpdFunc
+  gPlatformModuleTokenSpaceGuid.PcdDramCreatePolicyDefaultsFunc
+  gPlatformModuleTokenSpaceGuid.PcdUpdatePcieConfigFunc
+  gMinnowModuleTokenSpaceGuid.PcdDefaultFabId            ## CONSUMES
+  gMinnowModuleTokenSpaceGuid.PcdMinnowBoardDetectionRun ## CONSUMES
+  gMinnowModuleTokenSpaceGuid.PcdMinnowBoardDetected     ## CONSUMES
+  gPlatformModuleTokenSpaceGuid.PcdSerialIoUartNumber
+
+[Guids]
+
+[Ppis]
+  gBoardPreMemInitPpiGuid
+  gBoardPreMemInitDoneGuid
+
diff --git a/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPreMem/PlatformId.c b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPreMem/PlatformId.c
new file mode 100644
index 000000000..c1ed7fc78
--- /dev/null
+++ b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPreMem/PlatformId.c
@@ -0,0 +1,231 @@
+/** @file
+  Implement Platform ID code.
+
+  Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR>
+
+  This program and the accompanying materials
+  are licensed and made available under the terms and conditions of the BSD License
+  which accompanies this distribution.  The full text of the license may be found at
+  http://opensource.org/licenses/bsd-license.php.
+
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+**/
+
+#include <Uefi.h>
+#include <Library/BaseMemoryLib.h>
+#include <Library/I2CLib.h>
+#include <Library/GpioLib.h>
+#include <Guid/PlatformInfo.h>
+#include "PlatformId.h"
+
+PAD_ID_INFO gRawBoardIdPadInfo[] = {
+  {NW_PMIC_STDBY,   EnPd, P_20K_L},
+  {NW_GPIO_213,     EnPd, P_20K_L},
+  {NW_PMIC_RESET_B, EnPd, P_20K_L},
+  {NW_PMIC_PWRGOOD, EnPd, P_20K_L},
+  {N_GPIO_27,       EnPd, P_20K_L},
+  {N_GPIO_72,       EnPd, P_20K_L},
+  {N_GPIO_64,       EnPd, P_20K_L}
+};
+
+//
+// MinnowBoardv3 = 0x00000017
+//===========================================
+// NW_PMIC_STDBY   - BOARD_ID0 - 10k PU -> 1
+// NW_GPIO_213     - BOARD_ID1 - 10k PU -> 1
+// NW_PMIC_RESET_B - BOARD_ID2 - 10k PU -> 1
+// NW_PMIC_PWRGOOD -           - 10k PD -> 0
+// N_GPIO_27       - BOARD_ID3 - 10k PU -> 1
+// N_GPIO_72       -           - Float  -> 0
+// N_GPIO_64       -           - Float  -> 0
+//===========================================
+
+// Benson Glacier = 0x00000024
+//===========================================
+// NW_PMIC_STDBY   - BOARD_ID0 - 10k PD -> 0
+// NW_GPIO_213     - BOARD_ID1 - 10k PD -> 0
+// NW_PMIC_RESET_B - BOARD_ID2 - 10k PU -> 1
+// NW_PMIC_PWRGOOD -           - Float  -> 0
+// N_GPIO_27       -           - Float  -> 0
+// N_GPIO_72       - BOARD_ID3 - 10k PU -> 1
+// N_GPIO_64       -           - Float  -> 0
+//===========================================
+
+// MinnowBoardv3Next = 0x00000040
+//===========================================
+// NW_PMIC_STDBY   -           - Float  -> 0
+// NW_GPIO_213     -           - Float  -> 0
+// NW_PMIC_RESET_B -           - Float  -> 0
+// NW_PMIC_PWRGOOD -           - Float  -> 0
+// N_GPIO_27       -           - Float  -> 0
+// N_GPIO_72       -           - Float  -> 0
+// N_GPIO_64       -           - 10k PU -> 1
+//===========================================
+
+// LeafHill = 0x00000047
+//===========================================
+// NW_PMIC_STDBY   - BOARD_ID0 - 10k PU -> 1
+// NW_GPIO_213     - BOARD_ID1 - 10k PU -> 1
+// NW_PMIC_RESET_B - BOARD_ID2 - 10k PU -> 1
+// NW_PMIC_PWRGOOD - BOARD_ID3 - 10k PD -> 0
+// N_GPIO_27       -           - Float  -> 0
+// N_GPIO_72       -           - Float  -> 0
+// N_GPIO_64       -           - 0k PU  -> 1
+//===========================================
+
+BOARD_ID_INFO gBoardIdInfo[] = {
+  {0x00000017, BOARD_ID_MINNOW},      // MinnowBoardv3
+  {0x00000024, BOARD_ID_BENSON},      // Benson Glacier
+  {0x00000040, BOARD_ID_MINNOW_NEXT}, // MinnowBoardv3Next
+  {0x00000047, BOARD_ID_LFH_CRB}      // LeafHill
+};
+
+PAD_ID_INFO gMb3nHwconfPadInfo[] = {
+  {W_GPIO_128, DisPuPd, P_NONE}, // HWCONF0
+  {W_GPIO_131, DisPuPd, P_NONE}, // HWCONF1
+  {W_GPIO_130, DisPuPd, P_NONE}, // HWCONF2
+  {W_GPIO_129, DisPuPd, P_NONE}, // HWCONF3
+  {W_GPIO_139, DisPuPd, P_NONE}, // HWCONF4
+  {W_GPIO_138, DisPuPd, P_NONE}, // HWCONF5
+  {NW_GPIO_80, DisPuPd, P_NONE}, // HWCONF6
+  {NW_GPIO_81, DisPuPd, P_NONE}, // HWCONF7
+  {NW_GPIO_83, DisPuPd, P_NONE}  // HWCONF8
+};
+
+UINT32
+EFIAPI
+GetId (
+  IN   PAD_ID_INFO   *PadInfoPtr,
+  IN   UINT8          NumberOfEntries
+  )
+{
+  UINT8           bit;
+  UINT32          CommAndOffset;
+  UINT8           index;
+  BXT_CONF_PAD0   padConfg0;
+  BXT_CONF_PAD0   padConfg0Org;
+  BXT_CONF_PAD1   padConfg1;
+  BXT_CONF_PAD1   padConfg1Org;
+  UINT32          ReturnId;
+
+  //
+  // Get ID from PAD
+  //
+  if ((PadInfoPtr == NULL) || (NumberOfEntries == 0)) {
+    //
+    // Nothing in structure. Skip.
+    //
+    ReturnId = 0xFF;
+  } else {
+    ReturnId = 0;
+    for (index = 0; index < NumberOfEntries; index++) {
+      CommAndOffset           = PadInfoPtr[index].CommAndOffset;
+      padConfg0Org.padCnf0    = GpioPadRead (CommAndOffset + BXT_GPIO_PAD_CONF0_OFFSET);
+      padConfg1Org.padCnf1    = GpioPadRead (CommAndOffset + BXT_GPIO_PAD_CONF1_OFFSET);
+      //
+      // Set pad to be able to read the bit
+      //
+      padConfg0.padCnf0       = GpioPadRead (CommAndOffset + BXT_GPIO_PAD_CONF0_OFFSET);
+      padConfg1.padCnf1       = GpioPadRead (CommAndOffset + BXT_GPIO_PAD_CONF1_OFFSET);
+      padConfg0.r.PMode       = M0;                        // Set to GPIO mode
+      padConfg0.r.GPIORxTxDis = GPI;                       // Set to GPI
+      padConfg1.r.IOSTerm     = PadInfoPtr[index].IOSTerm; // Enable pull-up/down
+      padConfg1.r.Term        = PadInfoPtr[index].Term;    // Set pull-up/down value
+      GpioPadWrite (CommAndOffset + BXT_GPIO_PAD_CONF0_OFFSET, padConfg0.padCnf0);
+      GpioPadWrite (CommAndOffset + BXT_GPIO_PAD_CONF1_OFFSET, padConfg1.padCnf1);
+      //
+      // Read the bit
+      //
+      bit       = (UINT8) (((GpioPadRead (CommAndOffset + BXT_GPIO_PAD_CONF0_OFFSET) & BIT1) >> 1) << index);
+      ReturnId |= bit;
+      //
+      // Restore orginal pad programming.
+      //
+      GpioPadWrite (CommAndOffset + BXT_GPIO_PAD_CONF0_OFFSET, padConfg0Org.padCnf0);
+      GpioPadWrite (CommAndOffset + BXT_GPIO_PAD_CONF1_OFFSET, padConfg1Org.padCnf1);
+    }
+  }
+  return ReturnId;
+}
+
+UINT8
+EFIAPI
+GetCommonBoardId (
+  VOID
+  )
+{
+  UINT8    BoardId;
+  UINT8    index;
+  UINT32   RawBoardId;
+  
+  DEBUG ((DEBUG_INFO, "%a(#%3d) - Starting...\n", __FUNCTION__, __LINE__));
+
+  //
+  // Get BoardId
+  //
+  RawBoardId = GetId (gRawBoardIdPadInfo, sizeof (gRawBoardIdPadInfo) / sizeof (gRawBoardIdPadInfo[0]));
+
+  //
+  // Convert from a 32-bit raw BoardId to an 8-bit one.
+  //
+  BoardId = BOARD_ID_APL_UNKNOWN;
+  for (index = 0; index < sizeof (gBoardIdInfo) / sizeof (gBoardIdInfo[0]); index++) {
+    if (gBoardIdInfo[index].RawId == RawBoardId) {
+      BoardId = gBoardIdInfo[index].BoardId;
+      break;
+    }
+  }
+  
+  DEBUG ((DEBUG_INFO, "%a(#%3d) - BoardId: %02X\n", __FUNCTION__, __LINE__, BoardId));
+  return BoardId;
+}
+
+
+
+EFI_STATUS
+EFIAPI
+Minnow3NextGetEmbeddedBoardIdFabId (
+  IN CONST EFI_PEI_SERVICES     **PeiServices,
+  OUT UINT8                     *BoardId,
+  OUT UINT8                     *FabId
+  )
+{
+  DEBUG ((DEBUG_INFO, "%a(#%3d) - Starting...\n", __FUNCTION__, __LINE__));
+
+  //
+  // Get BoardId
+  //
+  *BoardId = GetCommonBoardId ();
+
+  if (*BoardId != BOARD_ID_MINNOW_NEXT) {
+    *BoardId = BOARD_ID_APL_UNKNOWN;
+    *FabId   = UNKNOWN_FAB;
+  } else {
+    //
+    // Get FabId
+    //
+    *FabId = FAB_ID_A; // MBv3N FabID is behind the EC. Just say Fab A for now.
+    DEBUG ((DEBUG_INFO, "%a(#%3d) - FabId  : %02X\n", __FUNCTION__, __LINE__, *FabId));
+  }
+
+  return EFI_SUCCESS;
+}
+
+UINT32
+EFIAPI
+Minnow3NextGetHwconfStraps (
+  VOID
+  )
+{
+  UINT32   HwconfStraps;
+  
+  //
+  // Get HWCONF straps
+  //
+  HwconfStraps = GetId (gMb3nHwconfPadInfo, sizeof (gMb3nHwconfPadInfo) / sizeof (gMb3nHwconfPadInfo[0]));
+
+  return HwconfStraps;
+}
+
diff --git a/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPreMem/PlatformId.h b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPreMem/PlatformId.h
new file mode 100644
index 000000000..7ee6777f3
--- /dev/null
+++ b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/BoardInitPreMem/PlatformId.h
@@ -0,0 +1,45 @@
+/** @file
+  Header file for the Platform ID code.
+
+  Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR>
+
+  This program and the accompanying materials
+  are licensed and made available under the terms and conditions of the BSD License
+  which accompanies this distribution.  The full text of the license may be found at
+  http://opensource.org/licenses/bsd-license.php.
+
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+**/
+
+#ifndef __MINNOWBOARD_NEXT_PLATFORM_ID_H__
+#define __MINNOWBOARD_NEXT_PLATFORM_ID_H__
+
+typedef struct {
+  UINT32   CommAndOffset;
+  UINT8    IOSTerm;
+  UINT8    Term;
+} PAD_ID_INFO;
+
+typedef struct {
+  UINT32   RawId;
+  UINT8    BoardId;
+} BOARD_ID_INFO;
+
+EFI_STATUS
+EFIAPI
+Minnow3NextGetEmbeddedBoardIdFabId (
+  IN CONST EFI_PEI_SERVICES     **PeiServices,
+  OUT UINT8                     *BoardId,
+  OUT UINT8                     *FabId
+  );
+
+UINT32
+EFIAPI
+Minnow3NextGetHwconfStraps (
+  VOID
+  );
+
+#endif
+
-- 
2.14.1.windows.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017 4/4] Board Specific Code.
  2017-11-24  3:33 [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017 1/4] Board Specific Code zwei4
  2017-11-24  3:33 ` [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017 2/4] " zwei4
  2017-11-24  3:33 ` [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017 3/4] " zwei4
@ 2017-11-24  3:33 ` zwei4
  2 siblings, 0 replies; 4+ messages in thread
From: zwei4 @ 2017-11-24  3:33 UTC (permalink / raw)
  To: edk2-devel

Add VBT for Minnowboard3 Next pre-production board.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: zwei4 <david.wei@intel.com>
---
 .../Board/MinnowBoard3Next/Vbt/VbtBxtMipi.bin            | Bin 0 -> 5632 bytes
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/Vbt/VbtBxtMipi.bin

diff --git a/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/Vbt/VbtBxtMipi.bin b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Next/Vbt/VbtBxtMipi.bin
new file mode 100644
index 0000000000000000000000000000000000000000..5907374b5ebdc09b27125d28a2f15036252d0ad8
GIT binary patch
literal 5632
zcmeHKU2GIp6h1T4{kt=>JDnCOOD&fl%eFu}El^6WcD7qe7h1a8mRh4pw`CV?EVQ&m
ziwGTKNtzJMKA=HEw8j_>zBEyvj1eD<Bt&c<!0==VF+m~;i5PtV)-ykJx5Z5tgebz<
zoIU5>d+vAdJ?Gq?S<znGMr&J|JKCDJQH!FWfPKMH{J))QgUzj-b^bPgXKiD1U@JWX
zkHOj8o0kEi46{fmQ<Spc?x9$(uce4K^>z33#!BmAgD(yB_0v!wNc}r@#Cl@`T|==b
zZEfG|r#hZUYWMc^M(MV_ySifoRTM!Kw5Db2O4hEUw0uLUvbMBbDO-;%Rb>@b>o<y|
zZd0JSDHLq<w*_(H%`LPp*y?X>-PBau_$&>zG&clmgKeAYL^5j$fxiBI13fRiI7EGc
zB3h2)tTAwnDbqmTKz|AK_x92j-DZ%s#0FynFUO)KBGG|Pf-{Q&U~J$~fq@(409gPk
z00nT)8Yf*r0(L#aVyD7Xd+ZJf&!LbIPA^)N1?M6lNzTh?PO;8`qoa^OVyLc|q*_+j
zEh`i(wn#uzt*B`XZkLH=6;Y&GC2QwerM9H%G_{ac|EE?QF8BJY2yZQ$0Y)bPH>1E#
zR{?D1d@#hZaFDBnWm%`d>7ua8CBf6kVdT>`0%wtbLjDE$H{=`04m*Kt<i*HOAeSO<
zL=GS~AwPrMg>2so*AuL!hX6@qESYUekh0*-BG8Uo^~bGx*HsKQ60sz2Nux4@zeK{}
zfSZXkd5}mrpVDWbA_6X(sk4w8EZJyCjtg1kHk7)rI;?Uc;fi39HB#e#{gcyrBAb**
zJm{K`16y#1bI$6~d}A%!0TS<v91H`=#!Y6CEZj;;qayb`uzSrWNA)e6x$@s^@#=@e
z;$PWG2Z2e)HD)a5zp2gjS^9D!k!?|Wn@24Vvj_4U;G9c~)9J@0XJnb_iGsVUS@JyI
ztSkdAyz^PG;Q=AwrCkRN;7{=|wlT02s~XVEG%>0g&@uumzy}n28C6**R4lr%(gu`*
zhfM+c8`bB<fd^+boUjO>=qPYc652)NK|&4?`XQ0OAmnR8e<t!DgfKi^$;%sg65weM
zFYo8cA)bE9%U|*2JDy(Q<pfV$0xcC}zd*JMbdMmvA&?^i{Y;R*703?){auh9BFPr%
z22l=*q*bK*MES5t-V*7TqWrx`eiZ2qQTDjWA~&sZ%V9Tp&Mg+RHjSNTv~0KW&~Xk3
zc=mL#f+4Rl5=xtACEjwk2c=>JFMEBp0_8f``4PrF6v{gCsZYx_eN<2}VqSO{DLl^S
zM~E&0)enVA-dKf+kXJFn8SgVhz=-Pz)%aXXzY3)oj)g%{mHwQWIq0c^Bn;cU86gbQ
zuvb#06a*%2y90zzN{6Sz-a@tGSaJ?b+-@MK_K6JU&`_f)-4o@idNPS%H(x+PyDbw>
z?p)e_A`AseecXzL?#Z}ucj8ns@xyB+@$rbaKvk#}3yfw~9N)0$NzIYTDty)2c>lz5
zL@3sK0U&}cZoE^3aocDH`S5Ph_+)r=nG$+u;S2%?ysitXJre|_SUnXPjVgIz^F64~
zfx~3d5$-Z44Fu6du+a=waoG#wA-Yfzlz`sL@B<ge{b+cy(#Qur$<t>wTczdgsa&IW
ztVza#1CN1#hnRi-eNm)BM1!1&BxUQp%sJqBiX=4FhdM)DyJNlEx^~6>2L*jmvuV}q
zVBc~I-{dFm-~Z=xh@C^L7r>EvoK_HD>f0d%QCQ8q4VSo*34pN~dLY!b#wlRBcwGf%
zZX6TI*i*CJj<-q;GJt*t>0c$2)<>JZ7d<0OYI4yRx=+$kbu~E4dkX6-7+Bu3yBs6f
z>8l3({MSE1jZTk7PWtYVx9@$1U1QAOSk9em$;iys>;`RM84d6-*6;<IByC1D_fsCe
z+H{TQ!JS`RS>M*()Bno8{Ra+eP7OYQZ~nY^_2Q+A)7*vS7Xs&F=MPPNH1+Y+m8lt&
fc@$%OC27Rqm$pU5?Shv}n(@_pGXAZ>9zOXOhl)}z

literal 0
HcmV?d00001

-- 
2.14.1.windows.1



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-11-24  3:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-24  3:33 [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017 1/4] Board Specific Code zwei4
2017-11-24  3:33 ` [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017 2/4] " zwei4
2017-11-24  3:33 ` [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017 3/4] " zwei4
2017-11-24  3:33 ` [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017 4/4] " zwei4

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox