<p>Lin Huang has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/23311">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">HACK: drm/panel: Innolux P097PFG: Add initialization sequence<br><br>Innolux didn't deliver a working init sequence yet for devices without<br>OTP programming. The sequence in this change has been derived from a<br>register dump of a mostly working panel with OTP. It is not meant to<br>be final, but to make devices with unprogrammed OTP work, while Innolux<br>is figuring out a proper sequence. There is a known issue with an<br>artifact line in the lower third of the display.<br><br>Change-Id: I7096506208e4cb29c5f31a7ac502231a6c23ac92<br>Signed-off-by: Lin Huang <hl@rock-chips.com><br>---<br>M src/mainboard/google/gru/mainboard.c<br>1 file changed, 101 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/11/23311/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/mainboard/google/gru/mainboard.c b/src/mainboard/google/gru/mainboard.c</span><br><span>index 0611ca5..b524e29 100644</span><br><span>--- a/src/mainboard/google/gru/mainboard.c</span><br><span>+++ b/src/mainboard/google/gru/mainboard.c</span><br><span>@@ -376,6 +376,106 @@</span><br><span>             prepare_backlight_i2c();</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+static struct panel_init_command innolux_p097pfg_init_cmds[] = {</span><br><span style="color: hsl(120, 100%, 40%);">+   /* page 0 */</span><br><span style="color: hsl(120, 100%, 40%);">+  _INIT_CMD(0xf0, 0x55, 0xaa, 0x52, 0x08, 0x00),</span><br><span style="color: hsl(120, 100%, 40%);">+        _INIT_CMD(0xb1, 0xe8, 0x11),</span><br><span style="color: hsl(120, 100%, 40%);">+  _INIT_CMD(0xb2, 0x25, 0x02),</span><br><span style="color: hsl(120, 100%, 40%);">+  _INIT_CMD(0xb5, 0x08, 0x00),</span><br><span style="color: hsl(120, 100%, 40%);">+  _INIT_CMD(0xbc, 0x0f, 0x00),</span><br><span style="color: hsl(120, 100%, 40%);">+  _INIT_CMD(0xb8, 0x03, 0x06, 0x00, 0x00),</span><br><span style="color: hsl(120, 100%, 40%);">+      _INIT_CMD(0xbd, 0x01, 0x90, 0x14, 0x14),</span><br><span style="color: hsl(120, 100%, 40%);">+      _INIT_CMD(0xc0, 0x17),</span><br><span style="color: hsl(120, 100%, 40%);">+        _INIT_CMD(0xc1, 0x17),</span><br><span style="color: hsl(120, 100%, 40%);">+        _INIT_CMD(0xd9, 0x01, 0x09, 0x70),</span><br><span style="color: hsl(120, 100%, 40%);">+    _INIT_CMD(0xc5, 0x12, 0x21, 0x00),</span><br><span style="color: hsl(120, 100%, 40%);">+    _INIT_CMD(0xbb, 0x23, 0x23),</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+        /* page 1 */</span><br><span style="color: hsl(120, 100%, 40%);">+  _INIT_CMD(0xf0, 0x55, 0xaa, 0x52, 0x08, 0x01),</span><br><span style="color: hsl(120, 100%, 40%);">+        _INIT_CMD(0xb3, 0x2d, 0x2d),</span><br><span style="color: hsl(120, 100%, 40%);">+  _INIT_CMD(0xb4, 0x19, 0x19),</span><br><span style="color: hsl(120, 100%, 40%);">+  _INIT_CMD(0xb9, 0x36, 0x36),</span><br><span style="color: hsl(120, 100%, 40%);">+  _INIT_CMD(0xba, 0x35, 0x35),</span><br><span style="color: hsl(120, 100%, 40%);">+  _INIT_CMD(0xca, 0x01),</span><br><span style="color: hsl(120, 100%, 40%);">+        _INIT_CMD(0xce, 0x04),</span><br><span style="color: hsl(120, 100%, 40%);">+        _INIT_CMD(0xc3, 0x14, 0x14),</span><br><span style="color: hsl(120, 100%, 40%);">+  _INIT_CMD(0xd8, 0xc0, 0x03),</span><br><span style="color: hsl(120, 100%, 40%);">+  _INIT_CMD(0xbc, 0x5a, 0x01),</span><br><span style="color: hsl(120, 100%, 40%);">+  _INIT_CMD(0xbd, 0x76, 0x01),</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+        /* page 2 */</span><br><span style="color: hsl(120, 100%, 40%);">+  _INIT_CMD(0xf0, 0x55, 0xaa, 0x52, 0x08, 0x02),</span><br><span style="color: hsl(120, 100%, 40%);">+        _INIT_CMD(0xb0, 0x00),</span><br><span style="color: hsl(120, 100%, 40%);">+        _INIT_CMD(0xd1, 0x00, 0x37, 0x00, 0x61, 0x00, 0x92),</span><br><span style="color: hsl(120, 100%, 40%);">+  _INIT_CMD(0xd2, 0x01, 0x6b, 0x01, 0xa7, 0x01, 0xd3),</span><br><span style="color: hsl(120, 100%, 40%);">+  _INIT_CMD(0xd3, 0x02, 0xe2, 0x03, 0x0f, 0x03, 0x30),</span><br><span style="color: hsl(120, 100%, 40%);">+  _INIT_CMD(0xd4, 0x03, 0xba, 0x03, 0xc1),</span><br><span style="color: hsl(120, 100%, 40%);">+      _INIT_CMD(0xe0, 0x00, 0x37, 0x00, 0x61, 0x00, 0x92),</span><br><span style="color: hsl(120, 100%, 40%);">+  _INIT_CMD(0xe1, 0x01, 0x6b, 0x01, 0xa7, 0x01, 0xd3),</span><br><span style="color: hsl(120, 100%, 40%);">+  _INIT_CMD(0xe2, 0x02, 0xe2, 0x03, 0x0f, 0x03, 0x30),</span><br><span style="color: hsl(120, 100%, 40%);">+  _INIT_CMD(0xe3, 0x03, 0xba, 0x03, 0xc1),</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+    /* page 3 */</span><br><span style="color: hsl(120, 100%, 40%);">+  _INIT_CMD(0xf0, 0x55, 0xaa, 0x52, 0x08, 0x03),</span><br><span style="color: hsl(120, 100%, 40%);">+        _INIT_CMD(0xb0, 0x00, 0x00, 0x00, 0x00),</span><br><span style="color: hsl(120, 100%, 40%);">+      _INIT_CMD(0xb1, 0x00, 0x00, 0x00, 0x00),</span><br><span style="color: hsl(120, 100%, 40%);">+      _INIT_CMD(0xb2, 0x00, 0x00, 0x06, 0x04, 0x00, 0xb0, 0x75),</span><br><span style="color: hsl(120, 100%, 40%);">+    _INIT_CMD(0xb3, 0x10, 0x07, 0xfd, 0x04, 0x00, 0xb0, 0x75),</span><br><span style="color: hsl(120, 100%, 40%);">+    _INIT_CMD(0xb6, 0xf0, 0x05, 0x07, 0x03, 0x00),</span><br><span style="color: hsl(120, 100%, 40%);">+        _INIT_CMD(0xba, 0xc5, 0x07, 0x00, 0x04, 0x01, 0xb0, 0x75),</span><br><span style="color: hsl(120, 100%, 40%);">+    _INIT_CMD(0xbb, 0xc5, 0x07, 0x00, 0x03, 0x01, 0xb0, 0x75),</span><br><span style="color: hsl(120, 100%, 40%);">+    _INIT_CMD(0xc0, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x80, 0x80),</span><br><span style="color: hsl(120, 100%, 40%);">+    _INIT_CMD(0xc1, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x80, 0x80),</span><br><span style="color: hsl(120, 100%, 40%);">+    _INIT_CMD(0xc4, 0x00, 0x00),</span><br><span style="color: hsl(120, 100%, 40%);">+  _INIT_CMD(0xef, 0x41),</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+      /* page 4 */</span><br><span style="color: hsl(120, 100%, 40%);">+  _INIT_CMD(0xf0, 0x55, 0xaa, 0x52, 0x08, 0x04),</span><br><span style="color: hsl(120, 100%, 40%);">+        _INIT_CMD(0xec, 0x4c),</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+      /* page 5 */</span><br><span style="color: hsl(120, 100%, 40%);">+  _INIT_CMD(0xf0, 0x55, 0xaa, 0x52, 0x08, 0x05),</span><br><span style="color: hsl(120, 100%, 40%);">+        _INIT_CMD(0xb0, 0x13, 0x03, 0x03, 0x01),</span><br><span style="color: hsl(120, 100%, 40%);">+      _INIT_CMD(0xb1, 0x30, 0x00),</span><br><span style="color: hsl(120, 100%, 40%);">+  _INIT_CMD(0xb2, 0x02, 0x02, 0x00),</span><br><span style="color: hsl(120, 100%, 40%);">+    _INIT_CMD(0xb3, 0x82, 0x23, 0x82, 0x38),</span><br><span style="color: hsl(120, 100%, 40%);">+      _INIT_CMD(0xb4, 0xc5, 0x75, 0x24, 0x57),</span><br><span style="color: hsl(120, 100%, 40%);">+      _INIT_CMD(0xb5, 0x00, 0xd4, 0x72, 0x11, 0x11, 0xab, 0x0a),</span><br><span style="color: hsl(120, 100%, 40%);">+    _INIT_CMD(0xb6, 0x00, 0x00, 0xd5, 0x72, 0x24, 0x56),</span><br><span style="color: hsl(120, 100%, 40%);">+  _INIT_CMD(0xb7, 0x5c, 0xdc, 0x5c, 0x5c),</span><br><span style="color: hsl(120, 100%, 40%);">+      _INIT_CMD(0xb9, 0x0c, 0x00, 0x00, 0x01, 0x00),</span><br><span style="color: hsl(120, 100%, 40%);">+        _INIT_CMD(0xc0, 0x75, 0x11, 0x11, 0x54, 0x05),</span><br><span style="color: hsl(120, 100%, 40%);">+        _INIT_CMD(0xc6, 0x00, 0x00, 0x00, 0x00),</span><br><span style="color: hsl(120, 100%, 40%);">+      _INIT_CMD(0xd0, 0x00, 0x48, 0x0a, 0x00, 0x00),</span><br><span style="color: hsl(120, 100%, 40%);">+        _INIT_CMD(0xd1, 0x00, 0x48, 0x0b, 0x00, 0x00),</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+      /* page 6 */</span><br><span style="color: hsl(120, 100%, 40%);">+  _INIT_CMD(0xf0, 0x55, 0xaa, 0x52, 0x08, 0x06),</span><br><span style="color: hsl(120, 100%, 40%);">+        _INIT_CMD(0xb0, 0x02, 0x32, 0x32, 0x08, 0x2f),</span><br><span style="color: hsl(120, 100%, 40%);">+        _INIT_CMD(0xb1, 0x2e, 0x15, 0x14, 0x13, 0x12),</span><br><span style="color: hsl(120, 100%, 40%);">+        _INIT_CMD(0xb2, 0x11, 0x10, 0x00, 0x3d, 0x3d),</span><br><span style="color: hsl(120, 100%, 40%);">+        _INIT_CMD(0xb3, 0x3d, 0x3d, 0x3d, 0x3d, 0x3d),</span><br><span style="color: hsl(120, 100%, 40%);">+        _INIT_CMD(0xb4, 0x3d, 0x32),</span><br><span style="color: hsl(120, 100%, 40%);">+  _INIT_CMD(0xb5, 0x03, 0x32, 0x32, 0x09, 0x2f),</span><br><span style="color: hsl(120, 100%, 40%);">+        _INIT_CMD(0xb6, 0x2e, 0x1b, 0x1a, 0x19, 0x18),</span><br><span style="color: hsl(120, 100%, 40%);">+        _INIT_CMD(0xb7, 0x17, 0x16, 0x01, 0x3d, 0x3d),</span><br><span style="color: hsl(120, 100%, 40%);">+        _INIT_CMD(0xb8, 0x3d, 0x3d, 0x3d, 0x3d, 0x3d),</span><br><span style="color: hsl(120, 100%, 40%);">+        _INIT_CMD(0xb9, 0x3d, 0x32),</span><br><span style="color: hsl(120, 100%, 40%);">+  _INIT_CMD(0xc0, 0x01, 0x32, 0x32, 0x09, 0x2f),</span><br><span style="color: hsl(120, 100%, 40%);">+        _INIT_CMD(0xc1, 0x2e, 0x1a, 0x1b, 0x16, 0x17),</span><br><span style="color: hsl(120, 100%, 40%);">+        _INIT_CMD(0xc2, 0x18, 0x19, 0x03, 0x3d, 0x3d),</span><br><span style="color: hsl(120, 100%, 40%);">+        _INIT_CMD(0xc3, 0x3d, 0x3d, 0x3d, 0x3d, 0x3d),</span><br><span style="color: hsl(120, 100%, 40%);">+        _INIT_CMD(0xc4, 0x3d, 0x3d),</span><br><span style="color: hsl(120, 100%, 40%);">+  _INIT_CMD(0xc5, 0x00, 0x32, 0x32, 0x08, 0x2f),</span><br><span style="color: hsl(120, 100%, 40%);">+        _INIT_CMD(0xc6, 0x2e, 0x14, 0x15, 0x10, 0x11),</span><br><span style="color: hsl(120, 100%, 40%);">+        _INIT_CMD(0xc7, 0x12, 0x13, 0x02, 0x3d, 0x3d),</span><br><span style="color: hsl(120, 100%, 40%);">+        _INIT_CMD(0xc8, 0x3d, 0x3d, 0x3d, 0x3d, 0x3d),</span><br><span style="color: hsl(120, 100%, 40%);">+        _INIT_CMD(0xc9, 0x3d, 0x3d),</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+        {},</span><br><span style="color: hsl(120, 100%, 40%);">+};</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> static struct panel_init_command kd097d04_init_commands[] = {</span><br><span>   /* voltage setting */</span><br><span>        _INIT_CMD(0xB0, 0x00),</span><br><span>@@ -540,6 +640,7 @@</span><br><span>         .lanes = 8,</span><br><span>  .display_on_udelay = 120000,</span><br><span>         .video_mode_udelay = 5000,</span><br><span style="color: hsl(120, 100%, 40%);">+    .init_cmd = innolux_p097pfg_init_cmds,</span><br><span> };</span><br><span> </span><br><span> static const struct edid_mode inx097pfg_edid_mode = {</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/23311">change 23311</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/23311"/><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: I7096506208e4cb29c5f31a7ac502231a6c23ac92 </div>
<div style="display:none"> Gerrit-Change-Number: 23311 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Lin Huang <hl@rock-chips.com> </div>