From eb91954c6601539765b8855f386d376b29e8a9a4 Mon Sep 17 00:00:00 2001 From: Guo Dong Date: Tue, 22 Mar 2022 21:10:36 -0700 Subject: [PATCH] [ADL] Add a new platform Add a new SO DDR5 platform ID 0x31. Signed-off-by: Guo Dong --- Platform/AlderlakeBoardPkg/Include/PlatformBoardId.h | 3 +++ .../Library/FspmUpdUpdateLib/FspmUpdUpdateLib.c | 1 + .../AlderlakeBoardPkg/Library/Stage1BBoardInitLib/EcSupport.c | 4 +++- .../Library/Stage1BBoardInitLib/Stage1BBoardInitLib.c | 1 + Silicon/AlderlakePkg/Library/IgdOpRegionLib/IgdOpRegionLib.c | 1 + 5 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Platform/AlderlakeBoardPkg/Include/PlatformBoardId.h b/Platform/AlderlakeBoardPkg/Include/PlatformBoardId.h index 289b4c9e..5662624f 100644 --- a/Platform/AlderlakeBoardPkg/Include/PlatformBoardId.h +++ b/Platform/AlderlakeBoardPkg/Include/PlatformBoardId.h @@ -55,4 +55,7 @@ Defines Platform BoardIds #define BoardIdTestSDdr5UDimm1DRvp 0x39 #define PLATFORM_ID_TEST_S_DDR5_UDIMM_RVP 0x19 +#define BoardIdTestSDdr5SODimmRvp 0x31 // S17 +#define PLATFORM_ID_TEST_S_DDR5_SODIMM_RVP 0x11 + #endif // _PLATFORM_BOARD_ID_H_ diff --git a/Platform/AlderlakeBoardPkg/Library/FspmUpdUpdateLib/FspmUpdUpdateLib.c b/Platform/AlderlakeBoardPkg/Library/FspmUpdUpdateLib/FspmUpdUpdateLib.c index fd869389..c92506d9 100644 --- a/Platform/AlderlakeBoardPkg/Library/FspmUpdUpdateLib/FspmUpdUpdateLib.c +++ b/Platform/AlderlakeBoardPkg/Library/FspmUpdUpdateLib/FspmUpdUpdateLib.c @@ -520,6 +520,7 @@ UpdateFspConfig ( CopyMem(SaDisplayConfigTable, (VOID *)(UINTN)mAdlPSEdpHdmiDisplayDdiConfig, sizeof(mAdlPSEdpHdmiDisplayDdiConfig)); break; case PLATFORM_ID_TEST_S_DDR5_UDIMM_RVP: + case PLATFORM_ID_TEST_S_DDR5_SODIMM_RVP: // DP + DP CopyMem(SaDisplayConfigTable, (VOID *)(UINTN)mTestSDdr5RowDisplayDdiConfig3, sizeof(mTestSDdr5RowDisplayDdiConfig3)); break; diff --git a/Platform/AlderlakeBoardPkg/Library/Stage1BBoardInitLib/EcSupport.c b/Platform/AlderlakeBoardPkg/Library/Stage1BBoardInitLib/EcSupport.c index 630fb419..7085adc5 100644 --- a/Platform/AlderlakeBoardPkg/Library/Stage1BBoardInitLib/EcSupport.c +++ b/Platform/AlderlakeBoardPkg/Library/Stage1BBoardInitLib/EcSupport.c @@ -282,7 +282,9 @@ GetBoardId ( case BoardIdTestSDdr5UDimm1DRvp: *PlatformId = PLATFORM_ID_TEST_S_DDR5_UDIMM_RVP; break; - + case BoardIdTestSDdr5SODimmRvp: + *PlatformId = PLATFORM_ID_TEST_S_DDR5_SODIMM_RVP; + break; default: DEBUG((DEBUG_INFO, "Unsupported board Id %x .....\n", *PlatformId)); break; diff --git a/Platform/AlderlakeBoardPkg/Library/Stage1BBoardInitLib/Stage1BBoardInitLib.c b/Platform/AlderlakeBoardPkg/Library/Stage1BBoardInitLib/Stage1BBoardInitLib.c index 61a80bfb..d3a04232 100644 --- a/Platform/AlderlakeBoardPkg/Library/Stage1BBoardInitLib/Stage1BBoardInitLib.c +++ b/Platform/AlderlakeBoardPkg/Library/Stage1BBoardInitLib/Stage1BBoardInitLib.c @@ -601,6 +601,7 @@ DEBUG_CODE_END(); ConfigureGpio (CDATA_NO_TAG, sizeof (mGpioTablePreMemAdlPDdr5Rvp) / sizeof (mGpioTablePreMemAdlPDdr5Rvp[0]), (UINT8*)mGpioTablePreMemAdlPDdr5Rvp); break; case PLATFORM_ID_TEST_S_DDR5_UDIMM_RVP: + case PLATFORM_ID_TEST_S_DDR5_SODIMM_RVP: ConfigureGpio (CDATA_NO_TAG, sizeof (mGpioTableEarlyPreMemTestSDdr5UDimm1DRvp) / sizeof (mGpioTableEarlyPreMemTestSDdr5UDimm1DRvp[0]), (UINT8*)mGpioTableEarlyPreMemTestSDdr5UDimm1DRvp); break; case PLATFORM_ID_ADL_PS_DDR5_RVP: diff --git a/Silicon/AlderlakePkg/Library/IgdOpRegionLib/IgdOpRegionLib.c b/Silicon/AlderlakePkg/Library/IgdOpRegionLib/IgdOpRegionLib.c index 5c42faec..122de2c2 100644 --- a/Silicon/AlderlakePkg/Library/IgdOpRegionLib/IgdOpRegionLib.c +++ b/Silicon/AlderlakePkg/Library/IgdOpRegionLib/IgdOpRegionLib.c @@ -241,6 +241,7 @@ UpdateVbt ( case PLATFORM_ID_ADL_S_ADP_S_CRB: case PLATFORM_ID_ADL_S_ADP_S_DDR5_UDIMM_1DC_CRB: case PLATFORM_ID_TEST_S_DDR5_UDIMM_RVP: + case PLATFORM_ID_TEST_S_DDR5_SODIMM_RVP: case PLATFORM_ID_ADL_S_ADP_S_DDR4_SODIMM_CRB: case PLATFORM_ID_ADL_S_ADP_S_DDR5_SODIMM_CRB: DEBUG((DEBUG_INFO, "UpdateVbt: PLATFORM_ID_ADL_S_ADP_S_CRB .....\n"));