* [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017] VBT table change.
@ 2017-06-07 3:25 zwei4
0 siblings, 0 replies; 2+ messages in thread
From: zwei4 @ 2017-06-07 3:25 UTC (permalink / raw)
To: edk2-devel
Disabling “Onboard LSPCON for HDMI 2.0” in VBT table
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: zwei4 <david.wei@intel.com>
---
.../Common/Binaries/Vbt/VbtBxtMipi.bin | Bin 5632 -> 5632 bytes
1 file changed, 0 insertions(+), 0 deletions(-)
diff --git a/Platform/BroxtonPlatformPkg/Common/Binaries/Vbt/VbtBxtMipi.bin b/Platform/BroxtonPlatformPkg/Common/Binaries/Vbt/VbtBxtMipi.bin
index fcbb6bfb2d68903b0520e847ace6e1171124dcb4..21a89410ed949fc862534f3480e1f7c7be2114c7 100644
GIT binary patch
delta 25
gcmZqBY0#M<#XNz*U~(X%@J54HMn-|n+Zeq>0A9xi{r~^~
delta 25
gcmZqBY0#M<#oWVSFgcJ>c%wlpBcsUXZH!(b0A7~{{r~^~
--
2.11.0.windows.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017] VBT table change
@ 2017-09-29 10:13 zwei4
0 siblings, 0 replies; 2+ messages in thread
From: zwei4 @ 2017-09-29 10:13 UTC (permalink / raw)
To: edk2-devel; +Cc: Loeppert, Anthony
Move VBT tables from common folder into board specific folders.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: zwei4 <david.wei@intel.com>
Cc: Loeppert, Anthony <anthony.loeppert@intel.com>
---
.../BensonGlacier/BoardInitPostMem/BoardInit.c | 7 ++
.../BoardInitPostMem/BoardInitPostMem.inf | 2 +
.../BensonGlacier}/Vbt/VbtBxtEdp.bin | Bin
.../BensonGlacier}/Vbt/VbtBxtMipi.bin | Bin
.../Board/LeafHill/BoardInitPostMem/BoardInit.c | 7 ++
.../LeafHill/BoardInitPostMem/BoardInitPostMem.inf | 2 +
.../Board/LeafHill/Vbt/VbtBxtEdp.bin | Bin 0 -> 5632 bytes
.../Board/LeafHill/Vbt/VbtBxtMipi.bin | Bin 0 -> 5632 bytes
.../MinnowBoard3/BoardInitPostMem/BoardInit.c | 7 ++
.../BoardInitPostMem/BoardInitPostMem.inf | 2 +
.../Board/MinnowBoard3/Vbt/VbtBxtEdp.bin | Bin 0 -> 5632 bytes
.../Board/MinnowBoard3/Vbt/VbtBxtMipi.bin | Bin 0 -> 5632 bytes
.../PlatformGopPolicyDxe/PlatformGopPolicy.c | 88 +++++----------------
.../PlatformGopPolicyDxe/PlatformGopPolicyDxe.inf | 4 +-
.../PeiFspPolicyInitLib/PeiFspPolicyInitLib.inf | 6 +-
.../PeiFspPolicyInitLib/PeiFspSaPolicyInitLib.c | 4 +-
Platform/BroxtonPlatformPkg/PlatformPkg.dec | 7 +-
Platform/BroxtonPlatformPkg/PlatformPkg.fdf | 22 ++++--
18 files changed, 72 insertions(+), 86 deletions(-)
rename Platform/BroxtonPlatformPkg/{Common/Binaries => Board/BensonGlacier}/Vbt/VbtBxtEdp.bin (100%)
rename Platform/BroxtonPlatformPkg/{Common/Binaries => Board/BensonGlacier}/Vbt/VbtBxtMipi.bin (100%)
create mode 100644 Platform/BroxtonPlatformPkg/Board/LeafHill/Vbt/VbtBxtEdp.bin
create mode 100644 Platform/BroxtonPlatformPkg/Board/LeafHill/Vbt/VbtBxtMipi.bin
create mode 100644 Platform/BroxtonPlatformPkg/Board/MinnowBoard3/Vbt/VbtBxtEdp.bin
create mode 100644 Platform/BroxtonPlatformPkg/Board/MinnowBoard3/Vbt/VbtBxtMipi.bin
diff --git a/Platform/BroxtonPlatformPkg/Board/BensonGlacier/BoardInitPostMem/BoardInit.c b/Platform/BroxtonPlatformPkg/Board/BensonGlacier/BoardInitPostMem/BoardInit.c
index a4f3414b4..8b21b50a7 100644
--- a/Platform/BroxtonPlatformPkg/Board/BensonGlacier/BoardInitPostMem/BoardInit.c
+++ b/Platform/BroxtonPlatformPkg/Board/BensonGlacier/BoardInitPostMem/BoardInit.c
@@ -49,6 +49,7 @@ BensonGlacierPostMemInitCallback (
UINT8 BoardId;
UINT8 FabId;
UINT8 ResetType;
+ UINTN BufferSize;
Status = PeiServicesLocatePpi (
&gBoardPostMemInitDoneGuid,
@@ -82,6 +83,12 @@ BensonGlacierPostMemInitCallback (
ResetType = V_RST_CNT_HARDRESET;
PcdSet8 (PcdResetType, (UINT8) ResetType);
+ //
+ // Board specific VBT table.
+ //
+ BufferSize = sizeof (EFI_GUID);
+ PcdSetPtr(PcdBoardVbtFileGuid, &BufferSize, (UINT8 *)&gPeiBensonGlacierVbtGuid);
+
//
// Add init steps here
//
diff --git a/Platform/BroxtonPlatformPkg/Board/BensonGlacier/BoardInitPostMem/BoardInitPostMem.inf b/Platform/BroxtonPlatformPkg/Board/BensonGlacier/BoardInitPostMem/BoardInitPostMem.inf
index 4ce6ab2db..c22bfadb5 100644
--- a/Platform/BroxtonPlatformPkg/Board/BensonGlacier/BoardInitPostMem/BoardInitPostMem.inf
+++ b/Platform/BroxtonPlatformPkg/Board/BensonGlacier/BoardInitPostMem/BoardInitPostMem.inf
@@ -62,6 +62,7 @@
gPlatformModuleTokenSpaceGuid.PcdBoardId
gPlatformModuleTokenSpaceGuid.PcdFabId
gPlatformModuleTokenSpaceGuid.PcdResetType
+ gPlatformModuleTokenSpaceGuid.PcdBoardVbtFileGuid
[Guids]
gEfiPlatformInfoGuid
@@ -73,6 +74,7 @@
gEfiTpmDeviceInstanceTpm12Guid
gEfiTpmDeviceInstanceTpm20DtpmGuid
gTpmDeviceInstanceTpm20PttPtpGuid
+ gPeiBensonGlacierVbtGuid
[Ppis]
gBoardPostMemInitStartGuid
diff --git a/Platform/BroxtonPlatformPkg/Common/Binaries/Vbt/VbtBxtEdp.bin b/Platform/BroxtonPlatformPkg/Board/BensonGlacier/Vbt/VbtBxtEdp.bin
similarity index 100%
rename from Platform/BroxtonPlatformPkg/Common/Binaries/Vbt/VbtBxtEdp.bin
rename to Platform/BroxtonPlatformPkg/Board/BensonGlacier/Vbt/VbtBxtEdp.bin
diff --git a/Platform/BroxtonPlatformPkg/Common/Binaries/Vbt/VbtBxtMipi.bin b/Platform/BroxtonPlatformPkg/Board/BensonGlacier/Vbt/VbtBxtMipi.bin
similarity index 100%
rename from Platform/BroxtonPlatformPkg/Common/Binaries/Vbt/VbtBxtMipi.bin
rename to Platform/BroxtonPlatformPkg/Board/BensonGlacier/Vbt/VbtBxtMipi.bin
diff --git a/Platform/BroxtonPlatformPkg/Board/LeafHill/BoardInitPostMem/BoardInit.c b/Platform/BroxtonPlatformPkg/Board/LeafHill/BoardInitPostMem/BoardInit.c
index e591b1d1f..60fe1a31a 100644
--- a/Platform/BroxtonPlatformPkg/Board/LeafHill/BoardInitPostMem/BoardInit.c
+++ b/Platform/BroxtonPlatformPkg/Board/LeafHill/BoardInitPostMem/BoardInit.c
@@ -57,6 +57,7 @@ LeafHillPostMemInitCallback (
UINT8 BoardId;
UINT8 FabId;
UINT8 ResetType;
+ UINTN BufferSize;
Status = PeiServicesLocatePpi (
&gBoardPostMemInitDoneGuid,
@@ -90,6 +91,12 @@ LeafHillPostMemInitCallback (
ResetType = V_RST_CNT_FULLRESET;
PcdSet8 (PcdResetType, (UINT8) ResetType);
+ //
+ // Board specific VBT table.
+ //
+ BufferSize = sizeof (EFI_GUID);
+ PcdSetPtr(PcdBoardVbtFileGuid, &BufferSize, (UINT8 *)&gPeiLeafHillVbtGuid);
+
//
// Add init steps here
//
diff --git a/Platform/BroxtonPlatformPkg/Board/LeafHill/BoardInitPostMem/BoardInitPostMem.inf b/Platform/BroxtonPlatformPkg/Board/LeafHill/BoardInitPostMem/BoardInitPostMem.inf
index 01931b8c6..0717bc3dc 100644
--- a/Platform/BroxtonPlatformPkg/Board/LeafHill/BoardInitPostMem/BoardInitPostMem.inf
+++ b/Platform/BroxtonPlatformPkg/Board/LeafHill/BoardInitPostMem/BoardInitPostMem.inf
@@ -60,6 +60,7 @@
gPlatformModuleTokenSpaceGuid.PcdBoardId
gPlatformModuleTokenSpaceGuid.PcdFabId
gPlatformModuleTokenSpaceGuid.PcdResetType
+ gPlatformModuleTokenSpaceGuid.PcdBoardVbtFileGuid
[Guids]
gEfiPlatformInfoGuid
@@ -71,6 +72,7 @@
gEfiTpmDeviceInstanceTpm12Guid
gEfiTpmDeviceInstanceTpm20DtpmGuid
gTpmDeviceInstanceTpm20PttPtpGuid
+ gPeiLeafHillVbtGuid
[Ppis]
gBoardPostMemInitStartGuid
diff --git a/Platform/BroxtonPlatformPkg/Board/LeafHill/Vbt/VbtBxtEdp.bin b/Platform/BroxtonPlatformPkg/Board/LeafHill/Vbt/VbtBxtEdp.bin
new file mode 100644
index 0000000000000000000000000000000000000000..7b4e32699b6bda9b95c951e531fd4fbf3349c40d
GIT binary patch
literal 5632
zcmeHLU2GIp6h1T4{kt=>yPXy(OD&fl%eFu}El^6WcD7qe7h1a8mbylhZp$vZvCz^M
zEh2W*k~A@xeNcmjXpJ!%d}*RS86!RzNr>1!fZ@p!VuC~x5;6J!tY?1O-4-`p5TXcY
zbLO0T@44T-_uO;;c2#G62d!^w4R^Hepe98@2J50%@q07X2U^>^8hjnTuKMOy|8{yB
z9)dIZH!cB08D@!4A<Gqky+g5HZ(9j%>FbI2#>yLFgU=21_0ym~Kz+M*#d>1{-9xb`
zZSUObqZ*z_>i5TcqjbmqJw3638j2t?TGNURW$QOkTDhrQUSD1*S8T+Rnu@BLjhjW%
zu*Kin5)3r^Is(}7);8J@X!o_ZZ)vG-ev$^;TAKp(fsQQ=BAGJ;e_#KBf%r4e4pFba
zgjQlZ>vUYb%hcaD&|gM<y}h(evl*mqvBB8D^RZ}|NHm}mV9#Ly7z?-*VBmTsKn{Qc
zKmqJ?+R2n~1G|x7u~M-etOYYxSRD|aL*Yg^Eoo8?oQ;6n4VMs}VxA3KN0AS1hH8pI
zifMJtv_ipRi5qCT6*Y{(=`gU&B#LyaRPKDM^pbR)rYAD$|I~`Z;a+<Y;mu()z-R>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UKb?_L{!L&xZSy0Eu#;(pCSp(jlr&9_ug3Vj_y6N|3N|<
z)LdHg3Rt(D#5?)%yZ8Nk9<lRi?IJkRh}{a{O?@W>Aqs1mx8WjJHUTg;OZSAjUf%@_
z7jLM-$W34%>1%4P+woMXL)PBSc!5WrG#_o+T6B#ptIJ1UXg<kAwY6Zcj2AanF|abe
zw-RTt%UcWh{MR0#dZh;~r+oLo+jl;~t}@1NEbrE})XdD)tU7IC85M9dR`CX!B6U_Z
z))W3$#c3MPgR`)-y0N1t-v7dZgNI&L?J9f#-~4&u%7u#;rn&Pg&->5C&K;imXzJss
j%Tu!`3n+T~a>|Iom$pgz>4Jw#hW3>^(*8_i_n-U=ai&r(
literal 0
HcmV?d00001
diff --git a/Platform/BroxtonPlatformPkg/Board/LeafHill/Vbt/VbtBxtMipi.bin b/Platform/BroxtonPlatformPkg/Board/LeafHill/Vbt/VbtBxtMipi.bin
new file mode 100644
index 0000000000000000000000000000000000000000..23b52baea1f7ab470ad7f6c375893e453ba9cb42
GIT binary patch
literal 5632
zcmeHKU2GIp6h1T4{kt=>ot+jbOD&fl%eFu}El^6WcD7qe7h1a8mbylhZp$v(SZHaB
z77;qek~A@xeNcl+w8j_>zBEyvj1eD<Bt&dY!0==VF+m~;i5PtV)-ykJTk56@LKNXl
z&YW}4ocrB-&pr2NR<zf)(b|^gNL%wZYEcXnurGKA-*c%p*xcGt=Wp|O)HXH;w$fAZ
z5S-4vei0zXFpGpTMJWsJ9*p<+T8d~>Z&!CuytFPp@Z4Z;9}NY9)W2g#yeHn@IT(-8
z*7nVQs^f{Ic5io2jBeYzt1I4LMG-_nZ(6plWbHai%QuuNYfH<Ovi10-s;r`F{YH`0
zZ3;9ug@TR#wjg%AxrNpRTm7xAo0@7HpQNFd=7wNxux(SFNM;Qo(A&4Kzx$bI2dOVm
zM9Z<AH3qKHWg6)1?<=AHo*vqw`wY;Q_&~h>`FN~EBs$P>aAq+8j196?VBlIgKo)=s
zKmnYy+DTWCfL+h9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(9X#@^<T^Ce)CJ0KgdLlX!Q}V**
zeNgWMhsmTP+-6Q12%?E#qZy3iq8G+ObfF?B0lk(H2QGo@(THTFkq>&3r_XA(O3T|*
zxkinwNzDZZ*#-h`V)pshMUe_o4RWHA<k4%HeZc(`NocGOb%Z*1$9uMQ?u!2p3i_aC
z)2f%jzU2ho$&cN=_h&Z|dlRi*0Eg?bTS2_3Z-)@XU^Vk5T;NK^0Y<0ko>12syMP(u
zbrqPo2}~qoP0bEFo+>rS<{!8IS2AJ!wCQUxdw5ArF2+KSNjj>o24{J9VSNPy%e!}%
z;|zBAssVrh^`B6q(u0;$v3n5hJD*`!81os;xpgfyGqW|jK^s^`1Kf-?yn&`jn^w*B
zl!v!AUE_Ih=NDJjw{>;*y|8cpfrFY;gZJU<KhIx2f8qQTcW(K)z}fiOLz5p)el&S$
iavEhG#b{qiIWhRBZIN-h;Ng;{ef5sCf1|PcPyPj$6;dt$
literal 0
HcmV?d00001
diff --git a/Platform/BroxtonPlatformPkg/Board/MinnowBoard3/BoardInitPostMem/BoardInit.c b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3/BoardInitPostMem/BoardInit.c
index ef14216d8..ca79940ea 100644
--- a/Platform/BroxtonPlatformPkg/Board/MinnowBoard3/BoardInitPostMem/BoardInit.c
+++ b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3/BoardInitPostMem/BoardInit.c
@@ -57,6 +57,7 @@ MinnowBoard3PostMemInitCallback (
UINT8 BoardId;
UINT8 FabId;
UINT8 ResetType;
+ UINTN BufferSize;
Status = PeiServicesLocatePpi (
&gBoardPostMemInitDoneGuid,
@@ -90,6 +91,12 @@ MinnowBoard3PostMemInitCallback (
ResetType = V_RST_CNT_FULLRESET;
PcdSet8 (PcdResetType, (UINT8) ResetType);
+ //
+ // Board specific VBT table.
+ //
+ BufferSize = sizeof (EFI_GUID);
+ PcdSetPtr(PcdBoardVbtFileGuid, &BufferSize, (UINT8 *)&gPeiMinnowBoard3VbtGuid);
+
//
// Add init steps here
//
diff --git a/Platform/BroxtonPlatformPkg/Board/MinnowBoard3/BoardInitPostMem/BoardInitPostMem.inf b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3/BoardInitPostMem/BoardInitPostMem.inf
index f066703e1..90494bae4 100644
--- a/Platform/BroxtonPlatformPkg/Board/MinnowBoard3/BoardInitPostMem/BoardInitPostMem.inf
+++ b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3/BoardInitPostMem/BoardInitPostMem.inf
@@ -58,6 +58,7 @@
gPlatformModuleTokenSpaceGuid.PcdBoardId
gPlatformModuleTokenSpaceGuid.PcdFabId
gPlatformModuleTokenSpaceGuid.PcdResetType
+ gPlatformModuleTokenSpaceGuid.PcdBoardVbtFileGuid
[Guids]
gEfiPlatformInfoGuid
@@ -69,6 +70,7 @@
gEfiTpmDeviceInstanceTpm12Guid
gEfiTpmDeviceInstanceTpm20DtpmGuid
gTpmDeviceInstanceTpm20PttPtpGuid
+ gPeiMinnowBoard3VbtGuid
[Ppis]
gBoardPostMemInitStartGuid
diff --git a/Platform/BroxtonPlatformPkg/Board/MinnowBoard3/Vbt/VbtBxtEdp.bin b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3/Vbt/VbtBxtEdp.bin
new file mode 100644
index 0000000000000000000000000000000000000000..7b4e32699b6bda9b95c951e531fd4fbf3349c40d
GIT binary patch
literal 5632
zcmeHLU2GIp6h1T4{kt=>yPXy(OD&fl%eFu}El^6WcD7qe7h1a8mbylhZp$vZvCz^M
zEh2W*k~A@xeNcmjXpJ!%d}*RS86!RzNr>1!fZ@p!VuC~x5;6J!tY?1O-4-`p5TXcY
zbLO0T@44T-_uO;;c2#G62d!^w4R^Hepe98@2J50%@q07X2U^>^8hjnTuKMOy|8{yB
z9)dIZH!cB08D@!4A<Gqky+g5HZ(9j%>FbI2#>yLFgU=21_0ym~Kz+M*#d>1{-9xb`
zZSUObqZ*z_>i5TcqjbmqJw3638j2t?TGNURW$QOkTDhrQUSD1*S8T+Rnu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zSs@J5kjJgK(-4@1<rWY=DIcB=d5V?r(NrIpgjGjStP@%Ep{Y)hdnPIs<wOd>YTST?
zPD?hP+`YW>cnFH*#)LT+nkN(b*@<1r#t$!*CB`G3B1NX=T;OcxB=8Q4o>XnwjKW*1
zj`vTjM1)eU762kx68b$w7`KdO5fAT{j8BF}SIEJ47SAGZz-zjoShGQpOO=z6(WqPy
zGVX&~A2<vq4dFIpQb!OC1Pje#6qh_O9;Az9LH294bU$zjT#vdZtMz!$f;@9nvo&hL
zzUp;KcwK5PIB@9*xQSU8UKb?_L{!L&xZSy0Eu#;(pCSp(jlr&9_ug3Vj_y6N|3N|<
z)LdHg3Rt(D#5?)%yZ8Nk9<lRi?IJkRh}{a{O?@W>Aqs1mx8WjJHUTg;OZSAjUf%@_
z7jLM-$W34%>1%4P+woMXL)PBSc!5WrG#_o+T6B#ptIJ1UXg<kAwY6Zcj2AanF|abe
zw-RTt%UcWh{MR0#dZh;~r+oLo+jl;~t}@1NEbrE})XdD)tU7IC85M9dR`CX!B6U_Z
z))W3$#c3MPgR`)-y0N1t-v7dZgNI&L?J9f#-~4&u%7u#;rn&Pg&->5C&K;imXzJss
j%Tu!`3n+T~a>|Iom$pgz>4Jw#hW3>^(*8_i_n-U=ai&r(
literal 0
HcmV?d00001
diff --git a/Platform/BroxtonPlatformPkg/Board/MinnowBoard3/Vbt/VbtBxtMipi.bin b/Platform/BroxtonPlatformPkg/Board/MinnowBoard3/Vbt/VbtBxtMipi.bin
new file mode 100644
index 0000000000000000000000000000000000000000..23b52baea1f7ab470ad7f6c375893e453ba9cb42
GIT binary patch
literal 5632
zcmeHKU2GIp6h1T4{kt=>ot+jbOD&fl%eFu}El^6WcD7qe7h1a8mbylhZp$v(SZHaB
z77;qek~A@xeNcl+w8j_>zBEyvj1eD<Bt&dY!0==VF+m~;i5PtV)-ykJTk56@LKNXl
z&YW}4ocrB-&pr2NR<zf)(b|^gNL%wZYEcXnurGKA-*c%p*xcGt=Wp|O)HXH;w$fAZ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%U+46+}ug27{<e1AFV*S2s=N*ST=>SNIvyx)(xwmV%R+PaHeoO
zpC2K%2vk25DtV(7W|Z?PhB@PYh6p(0IzlyG*V2zdDTX6qP*kNa$3(zB=&6Dv4B5OH
zAq>&5S5l=J2u#9u3kV;V4o!u<g=*wTst-)UZXl@k@eKOVP@^hc<K?P)JcVF4Z$Lu3
zEt5#@T-tst3<XMk!kP;`k_qGN#I9r#hnGqcV^ME`s!(e#Fp^mbyu)H7HAg0+@KtML
zedEg!p;)g4pwC6ZxTgqXwvi0-;q9WaiSWoWCG^(9X#@^<T^Ce)CJ0KgdLlX!Q}V**
zeNgWMhsmTP+-6Q12%?E#qZy3iq8G+ObfF?B0lk(H2QGo@(THTFkq>&3r_XA(O3T|*
zxkinwNzDZZ*#-h`V)pshMUe_o4RWHA<k4%HeZc(`NocGOb%Z*1$9uMQ?u!2p3i_aC
z)2f%jzU2ho$&cN=_h&Z|dlRi*0Eg?bTS2_3Z-)@XU^Vk5T;NK^0Y<0ko>12syMP(u
zbrqPo2}~qoP0bEFo+>rS<{!8IS2AJ!wCQUxdw5ArF2+KSNjj>o24{J9VSNPy%e!}%
z;|zBAssVrh^`B6q(u0;$v3n5hJD*`!81os;xpgfyGqW|jK^s^`1Kf-?yn&`jn^w*B
zl!v!AUE_Ih=NDJjw{>;*y|8cpfrFY;gZJU<KhIx2f8qQTcW(K)z}fiOLz5p)el&S$
iavEhG#b{qiIWhRBZIN-h;Ng;{ef5sCf1|PcPyPj$6;dt$
literal 0
HcmV?d00001
diff --git a/Platform/BroxtonPlatformPkg/Common/Console/PlatformGopPolicyDxe/PlatformGopPolicy.c b/Platform/BroxtonPlatformPkg/Common/Console/PlatformGopPolicyDxe/PlatformGopPolicy.c
index 8f3bc4428..71ab6b575 100644
--- a/Platform/BroxtonPlatformPkg/Common/Console/PlatformGopPolicyDxe/PlatformGopPolicy.c
+++ b/Platform/BroxtonPlatformPkg/Common/Console/PlatformGopPolicyDxe/PlatformGopPolicy.c
@@ -27,12 +27,6 @@ extern EFI_BOOT_SERVICES *gBS;
PLATFORM_GOP_POLICY_PROTOCOL mPlatformGOPPolicy;
-extern EFI_GUID gPeiDefaultVbtGuid;
-extern EFI_GUID gVbtMipiAuoGuid;
-extern EFI_GUID gVbtMipiSharpGuid;
-extern EFI_GUID gVbtMipiJdiGuid;
-extern EFI_GUID gVbtEdpTypeCGuid;
-
//
// Function implementations
//
@@ -79,71 +73,27 @@ GetVbtData (
OUT UINT32 *VbtSize
)
{
- SYSTEM_CONFIGURATION SystemConfiguration;
- UINTN VarSize;
- EFI_STATUS Status;
- EFI_GUID BmpImageGuid = { 0xE08CA6D5, 0x8D02, 0x43ae, {0xAB, 0xB1, 0x95, 0x2C, 0xC7, 0x87, 0xC9, 0x33} };
- UINTN FvProtocolCount;
- EFI_HANDLE *FvHandles;
- EFI_FIRMWARE_VOLUME2_PROTOCOL *Fv;
- UINTN Index;
- UINT32 AuthenticationStatus;
- UINT8 *Buffer;
- UINTN VbtBufferSize;
-
- if (VbtAddress == NULL || VbtSize == NULL){
- return EFI_INVALID_PARAMETER;
- }
- VarSize = sizeof (SYSTEM_CONFIGURATION);
- Status = gRT->GetVariable (
- L"Setup",
- &gEfiSetupVariableGuid,
- NULL,
- &VarSize,
- &SystemConfiguration
- );
- ASSERT_EFI_ERROR (Status);
-
- BmpImageGuid = gPeiDefaultVbtGuid;
-
- Fv = NULL;
- Buffer = 0;
- FvHandles = NULL;
- Status = gBS->LocateHandleBuffer(
- ByProtocol,
- &gEfiFirmwareVolume2ProtocolGuid,
- NULL,
- &FvProtocolCount,
- &FvHandles
- );
- if (!EFI_ERROR (Status)) {
- for (Index = 0; Index < FvProtocolCount; Index++) {
- Status = gBS->HandleProtocol(
- FvHandles[Index],
- &gEfiFirmwareVolume2ProtocolGuid,
- (VOID **) &Fv
- );
- VbtBufferSize = 0;
- Status = Fv->ReadSection (
- Fv,
- &BmpImageGuid,
- EFI_SECTION_RAW,
- 0,
- (VOID **)&Buffer,
- &VbtBufferSize,
- &AuthenticationStatus
- );
- if (!EFI_ERROR (Status)) {
- *VbtAddress = (EFI_PHYSICAL_ADDRESS) Buffer;
- *VbtSize = (UINT32) VbtBufferSize;
+ VBT_INFO *VbtInfo = NULL;
+ EFI_PEI_HOB_POINTERS GuidHob;
+ EFI_STATUS Status;
+
+ //
+ // Get VBT data from HOB, which has been created in PEI phase.
+ //
+ Status = EFI_NOT_FOUND;
+ DEBUG ((DEBUG_ERROR, "GOP Policy Protocol GetVbtData from HOB\n"));
+
+ GuidHob.Raw = GetHobList ();
+ if (GuidHob.Raw != NULL) {
+ if ((GuidHob.Raw = GetNextGuidHob (&gVbtInfoGuid, GuidHob.Raw)) != NULL) {
+ VbtInfo = GET_GUID_HOB_DATA (GuidHob.Guid);
+ *VbtAddress = VbtInfo->VbtAddress;
+ *VbtSize = VbtInfo->VbtSize;
Status = EFI_SUCCESS;
- break;
- }
- }
- } else {
- Status = EFI_NOT_FOUND;
- }
+ DEBUG ((DEBUG_ERROR, "Found VBT.\n"));
+ }
+ }
return Status;
}
diff --git a/Platform/BroxtonPlatformPkg/Common/Console/PlatformGopPolicyDxe/PlatformGopPolicyDxe.inf b/Platform/BroxtonPlatformPkg/Common/Console/PlatformGopPolicyDxe/PlatformGopPolicyDxe.inf
index ae7fd1c2a..3f61a0928 100644
--- a/Platform/BroxtonPlatformPkg/Common/Console/PlatformGopPolicyDxe/PlatformGopPolicyDxe.inf
+++ b/Platform/BroxtonPlatformPkg/Common/Console/PlatformGopPolicyDxe/PlatformGopPolicyDxe.inf
@@ -47,7 +47,6 @@
[Guids]
gEfiSetupVariableGuid
gVbtInfoGuid
- gPeiDefaultVbtGuid
gVbtMipiAuoGuid
gVbtMipiSharpGuid
gVbtMipiJdiGuid
@@ -59,7 +58,8 @@
gEfiFirmwareVolume2ProtocolGuid
gPlatformGOPPolicyGuid
-[Pcd]
+[Pcd.common]
+ gPlatformModuleTokenSpaceGuid.PcdBoardVbtFileGuid
[Depex]
gEfiCpuIo2ProtocolGuid AND
diff --git a/Platform/BroxtonPlatformPkg/Common/Library/PeiFspPolicyInitLib/PeiFspPolicyInitLib.inf b/Platform/BroxtonPlatformPkg/Common/Library/PeiFspPolicyInitLib/PeiFspPolicyInitLib.inf
index b4099b2ea..f0e6bf710 100644
--- a/Platform/BroxtonPlatformPkg/Common/Library/PeiFspPolicyInitLib/PeiFspPolicyInitLib.inf
+++ b/Platform/BroxtonPlatformPkg/Common/Library/PeiFspPolicyInitLib/PeiFspPolicyInitLib.inf
@@ -76,11 +76,6 @@
[Guids]
gEfiSetupVariableGuid
- gPeiDefaultVbtGuid
- gVbtMipiAuoGuid
- gVbtMipiSharpGuid
- gVbtMipiJdiGuid
- gVbtEdpTypeCGuid
gEfiPlatformInfoGuid
gPeiLogoGuid
@@ -89,6 +84,7 @@
gEfiBxtTokenSpaceGuid.PcdP2SBBaseAddress
gEfiBxtTokenSpaceGuid.PcdPmcGcrBaseAddress
gPlatformModuleTokenSpaceGuid.PcdResetType
+ gPlatformModuleTokenSpaceGuid.PcdBoardVbtFileGuid
[Ppis]
gSiPolicyPpiGuid ## CONSUMES
diff --git a/Platform/BroxtonPlatformPkg/Common/Library/PeiFspPolicyInitLib/PeiFspSaPolicyInitLib.c b/Platform/BroxtonPlatformPkg/Common/Library/PeiFspPolicyInitLib/PeiFspSaPolicyInitLib.c
index 1dc31a08c..c76f43333 100644
--- a/Platform/BroxtonPlatformPkg/Common/Library/PeiFspPolicyInitLib/PeiFspSaPolicyInitLib.c
+++ b/Platform/BroxtonPlatformPkg/Common/Library/PeiFspPolicyInitLib/PeiFspSaPolicyInitLib.c
@@ -233,9 +233,9 @@ PeiFspSaPolicyInit (
}
//
- // Update VbtGuid based on VbtSelect opion from setup
+ // Update VbtGuid.
//
- PeiVbtGuid = gPeiDefaultVbtGuid;
+ CopyMem (&PeiVbtGuid, PcdGetPtr (PcdBoardVbtFileGuid), sizeof (EFI_GUID));
//
// Update UPD:LogoPtr
diff --git a/Platform/BroxtonPlatformPkg/PlatformPkg.dec b/Platform/BroxtonPlatformPkg/PlatformPkg.dec
index 208f2a534..4813145d0 100644
--- a/Platform/BroxtonPlatformPkg/PlatformPkg.dec
+++ b/Platform/BroxtonPlatformPkg/PlatformPkg.dec
@@ -58,7 +58,9 @@
gVbtMipiSharpGuid = { 0xC7DCFF6F, 0x6F2A, 0x4DC1, { 0x91, 0xC6, 0xDF, 0x0B, 0xAF, 0xDB, 0xDA, 0x46 } }
gVbtMipiJdiGuid = { 0xB850A139, 0xBABB, 0x4D91, { 0x9F, 0x27, 0x72, 0xD2, 0xEF, 0x01, 0xBF, 0x3A } }
gVbtEdpTypeCGuid = { 0x21E70404, 0xDF72, 0x4122, { 0xB0, 0x30, 0x28, 0x13, 0x06, 0xEB, 0x7B, 0xE3 } }
- gPeiDefaultVbtGuid = { 0xE08CA6D5, 0x8D02, 0x43ae, { 0xAB, 0xB1, 0x95, 0x2C, 0xC7, 0x87, 0xC9, 0x33 } }
+ gPeiLeafHillVbtGuid = { 0x6ae80680, 0x5e3f, 0x4e63, { 0xa5, 0xf5, 0x78, 0xe5, 0x21, 0x4f, 0x13, 0xfe } }
+ gPeiMinnowBoard3VbtGuid = { 0xE08CA6D5, 0x8D02, 0x43ae, { 0xAB, 0xB1, 0x95, 0x2C, 0xC7, 0x87, 0xC9, 0x33 } }
+ gPeiBensonGlacierVbtGuid = { 0xbfde308e, 0x2d5a, 0x4ca7, { 0xaa, 0x76, 0x19, 0x93, 0x8a, 0xaa, 0xe4, 0xda } }
gPeiLogoGuid = { 0x7BB28B99, 0x61BB, 0x11d5, { 0x9A, 0x5D, 0x00, 0x90, 0x27, 0x3F, 0xC1, 0x4D } }
gPlatformEmmcHs400TuningInfoGuid = { 0xb0ae3e81, 0xc6b0, 0x4d35, { 0xad, 0x51, 0x91, 0x17, 0xe0, 0x65, 0x1e, 0xa3 } }
gEfiTraceHubDebugLibIa32Guid = { 0x23a3e7ba, 0x75d1, 0x4cb9, { 0x9c, 0x8f, 0x56, 0xfa, 0x4e, 0x48, 0xd9, 0x9e } }
@@ -179,7 +181,8 @@
gPlatformModuleTokenSpaceGuid.PcdDramCreatePolicyDefaultsFunc|0|UINT64|0x80000011
gPlatformModuleTokenSpaceGuid.PcdGetBoardNameFunc|0|UINT64|0x80000012
gPlatformModuleTokenSpaceGuid.PcdResetType|0x0E|UINT8|0x80000013
-
+ gPlatformModuleTokenSpaceGuid.PcdBoardVbtFileGuid|{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }|VOID*|0x80000014
+
## MemoryCheck value for checking memory before boot OS.
## To save the boot performance, the default MemoryCheck is set to 0.
gClientCommonModuleTokenSpaceGuid.PcdPlatformMemoryCheck|0|UINT8|0x40000005
diff --git a/Platform/BroxtonPlatformPkg/PlatformPkg.fdf b/Platform/BroxtonPlatformPkg/PlatformPkg.fdf
index c975a4c2a..1c1eb475f 100644
--- a/Platform/BroxtonPlatformPkg/PlatformPkg.fdf
+++ b/Platform/BroxtonPlatformPkg/PlatformPkg.fdf
@@ -242,13 +242,27 @@
INF $(PLATFORM_PACKAGE_COMMON)/SampleCode/IntelFsp2WrapperPkg/FspsWrapperPeim/FspsWrapperPeim.inf
INF $(PLATFORM_PACKAGE_COMMON)/PlatformSettings/PlatformPostMemPei/PlatformPostMemPei.inf
+
!if $(PEI_DISPLAY_ENABLE) == TRUE
FILE FREEFORM = 7BB28B99-61BB-11D5-9A5D-0090273FC14D {
SECTION RAW = $(PLATFORM_PACKAGE_COMMON)/Binaries/Logo/Logo.bmp
}
-
+
+ # VBT For Leaf Hill (File Guid is gPeiLeafHillVbtGuid)
+ FILE FREEFORM = 6AE80680-5E3F-4E63-A5F5-78E5214F13FE {
+ SECTION RAW = $(PLATFORM_NAME)/Board/LeafHill/Vbt/VbtBxtMipi.bin
+ SECTION UI = "IntelGopVbt1"
+ }
+
+ # VBT For Minnowboard 3 (File Guid is gPeiMinnowBoard3VbtGuid)
FILE FREEFORM = E08CA6D5-8D02-43ae-ABB1-952CC787C933 {
- SECTION RAW = $(PLATFORM_PACKAGE_COMMON)/Binaries/Vbt/VbtBxtMipi.bin
+ SECTION RAW = $(PLATFORM_NAME)/Board/MinnowBoard3/Vbt/VbtBxtMipi.bin
+ SECTION UI = "IntelGopVbt1"
+ }
+
+ # VBT For Benson Glacier (File Guid is gPeiBensonGlacierVbtGuid)
+ FILE FREEFORM = BFDE308E-2D5A-4CA7-AA76-19938AAAE4DA {
+ SECTION RAW = $(PLATFORM_NAME)/Board/BensonGlacier/Vbt/VbtBxtMipi.bin
SECTION UI = "IntelGopVbt1"
}
!endif
@@ -561,10 +575,6 @@ APRIORI DXE {
!if $(GOP_DRIVER_ENABLE) == TRUE
INF $(PLATFORM_PACKAGE_COMMON)/Console/PlatformGopPolicyDxe/PlatformGopPolicyDxe.inf
- FILE FREEFORM = E08CA6D5-8D02-43ae-ABB1-952CC787C933 {
- SECTION RAW = $(PLATFORM_PACKAGE_COMMON)/Binaries/Vbt/VbtBxtMipi.bin
- SECTION UI = "IntelGopVbt1"
- }
!endif
INF $(PLATFORM_PACKAGE_COMMON)/Console/GraphicsOutputDxe/GraphicsOutputDxe.inf
--
2.14.1.windows.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-09-29 10:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-07 3:25 [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017] VBT table change zwei4
-- strict thread matches above, loose matches on Subject: below --
2017-09-29 10:13 zwei4
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox