<p>Lin Huang has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/20831">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">google/gru: Correct Scarlet pwm regulator minimum value and maximum value<br><br>In Scarlet pwm regulatoror minimum value and maximum value differs from<br>other board variants, Correct it so we can get the right voltage.<br><br>Change-Id: I1f722eabb697b3438d9f4aa29c205b0161eb442a<br>Signed-off-by: Lin Huang <hl@rock-chips.com><br>---<br>M src/mainboard/google/gru/pwm_regulator.c<br>1 file changed, 9 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/31/20831/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/mainboard/google/gru/pwm_regulator.c b/src/mainboard/google/gru/pwm_regulator.c<br>index 696f09a..729c1fe 100644<br>--- a/src/mainboard/google/gru/pwm_regulator.c<br>+++ b/src/mainboard/google/gru/pwm_regulator.c<br>@@ -47,6 +47,12 @@<br>     [PWM_REGULATOR_CENTERLOG] = {7994, 10499}<br> };<br> <br>+int scarlet_pwm_design_voltage[][2] = {<br>+  [PWM_REGULATOR_GPU] = {7996, 10990},<br>+ [PWM_REGULATOR_BIG] = {8000, 12992},<br>+ [PWM_REGULATOR_LIT] = {8021, 11996},<br>+};<br>+<br> int pwm_enum_to_pwm_number[] = {<br>       [PWM_REGULATOR_GPU] = 0,<br>      [PWM_REGULATOR_LIT] = 2,<br>@@ -74,6 +80,9 @@<br>   } else if (IS_ENABLED(CONFIG_BOARD_GOOGLE_KEVIN) && board_id() >= 6) {<br>             voltage_min = kevin6_pwm_design_voltage[pwm][0];<br>              voltage_max = kevin6_pwm_design_voltage[pwm][1];<br>+     } else if (IS_ENABLED(CONFIG_BOARD_GOOGLE_SCARLET)) {<br>+                voltage_min = scarlet_pwm_design_voltage[pwm][0];<br>+            voltage_max = scarlet_pwm_design_voltage[pwm][1];<br>     }<br> <br>  assert(voltage <= voltage_max && voltage >= voltage_min);<br></pre><p>To view, visit <a href="https://review.coreboot.org/20831">change 20831</a>. To unsubscribe, 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/20831"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I1f722eabb697b3438d9f4aa29c205b0161eb442a </div>
<div style="display:none"> Gerrit-Change-Number: 20831 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Lin Huang <hl@rock-chips.com> </div>