<p>Nico Huber has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/27061">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gma config: Limit types of CPU and CPU_Var<br><br>Limit the range of values for `CPU` and `CPU_Var` based on the<br>generation.<br><br>Change-Id: Ibeca7d0fb5cbc617a0819448e78d406793c6f866<br>Signed-off-by: Nico Huber <nico.h@gmx.de><br>---<br>M common/hw-gfx-gma-config.ads.template<br>1 file changed, 23 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/libgfxinit refs/changes/61/27061/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/common/hw-gfx-gma-config.ads.template b/common/hw-gfx-gma-config.ads.template</span><br><span>index 659832f..5715e3b 100644</span><br><span>--- a/common/hw-gfx-gma-config.ads.template</span><br><span>+++ b/common/hw-gfx-gma-config.ads.template</span><br><span>@@ -19,9 +19,30 @@</span><br><span> </span><br><span>    Gen : constant Generation := <<GEN>>;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-   CPU : constant CPU_Type := <<CPU>>;</span><br><span style="color: hsl(120, 100%, 40%);">+   CPU_First : constant CPU_Type :=</span><br><span style="color: hsl(120, 100%, 40%);">+     (case Gen is</span><br><span style="color: hsl(120, 100%, 40%);">+         when G45       => G45,</span><br><span style="color: hsl(120, 100%, 40%);">+         when Ironlake  => Ironlake,</span><br><span style="color: hsl(120, 100%, 40%);">+         when Haswell   => Haswell,</span><br><span style="color: hsl(120, 100%, 40%);">+         when Broxton   => Broxton,</span><br><span style="color: hsl(120, 100%, 40%);">+         when Skylake   => Skylake);</span><br><span style="color: hsl(120, 100%, 40%);">+   CPU_Last : constant CPU_Type :=</span><br><span style="color: hsl(120, 100%, 40%);">+     (case Gen is</span><br><span style="color: hsl(120, 100%, 40%);">+         when G45       => G45,</span><br><span style="color: hsl(120, 100%, 40%);">+         when Ironlake  => Ivybridge,</span><br><span style="color: hsl(120, 100%, 40%);">+         when Haswell   => Broadwell,</span><br><span style="color: hsl(120, 100%, 40%);">+         when Broxton   => Broxton,</span><br><span style="color: hsl(120, 100%, 40%);">+         when Skylake   => Skylake);</span><br><span style="color: hsl(120, 100%, 40%);">+   CPU_Var_Last : constant CPU_Variant :=</span><br><span style="color: hsl(120, 100%, 40%);">+     (case Gen is</span><br><span style="color: hsl(120, 100%, 40%);">+         when Haswell | Skylake  => ULT,</span><br><span style="color: hsl(120, 100%, 40%);">+         when others             => Normal);</span><br><span style="color: hsl(120, 100%, 40%);">+   subtype Gen_CPU_Type is CPU_Type range CPU_First .. CPU_Last;</span><br><span style="color: hsl(120, 100%, 40%);">+   subtype Gen_CPU_Variant is CPU_Variant range Normal .. CPU_Var_Last;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-   CPU_Var : constant CPU_Variant := <<CPU_VARIANT>>;</span><br><span style="color: hsl(120, 100%, 40%);">+   CPU : constant Gen_CPU_Type := <<CPU>>;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+   CPU_Var : constant Gen_CPU_Variant := <<CPU_VARIANT>>;</span><br><span> </span><br><span>    Internal_Display : constant Internal_Type := <<INTERNAL_PORT>>;</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/27061">change 27061</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/27061"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libgfxinit </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ibeca7d0fb5cbc617a0819448e78d406793c6f866 </div>
<div style="display:none"> Gerrit-Change-Number: 27061 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Nico Huber <nico.h@gmx.de> </div>