diff options
author | Lin Huang <hl@rock-chips.com> | 2018-02-02 10:07:52 +0800 |
---|---|---|
committer | Julius Werner <jwerner@chromium.org> | 2018-02-02 22:17:46 +0000 |
commit | 1cce10ed5ccabc6d2eb6360cdc1f9051196c484b (patch) | |
tree | 1abfa46056b3ac1a75302add1f90972ecbc8f99c /src/mainboard | |
parent | 2177ccfac9a85f3ef431884a4a59b136c34cb5cd (diff) | |
download | coreboot-1cce10ed5ccabc6d2eb6360cdc1f9051196c484b.tar.xz |
google/gru: Use newer version of Innolux P097PFG panel init code
There is a line artifact in the lower third of the display with the
current initialization code. So update it with code provided by
Innolux to fix this issue.
BUG=b:69689064, b:72191820
TEST=boot on dru with an Innolux panel and artifact line disappear.
Change-Id: I9679c4f7f706fd6cd2e1dba7ec79e772fe3f227a
Signed-off-by: Lin Huang <hl@rock-chips.com>
Reviewed-on: https://review.coreboot.org/23561
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/mainboard')
-rw-r--r-- | src/mainboard/google/gru/mainboard.c | 173 |
1 files changed, 91 insertions, 82 deletions
diff --git a/src/mainboard/google/gru/mainboard.c b/src/mainboard/google/gru/mainboard.c index 3ab26fc4a6..7cd9acd589 100644 --- a/src/mainboard/google/gru/mainboard.c +++ b/src/mainboard/google/gru/mainboard.c @@ -378,100 +378,109 @@ void mainboard_power_on_backlight(void) static struct panel_init_command innolux_p097pfg_init_cmds[] = { /* page 0 */ - MIPI_INIT_CMD(0xf0, 0x55, 0xaa, 0x52, 0x08, 0x00), - MIPI_INIT_CMD(0xb1, 0xe8, 0x11), - MIPI_INIT_CMD(0xb2, 0x25, 0x02), - MIPI_INIT_CMD(0xb5, 0x08, 0x00), - MIPI_INIT_CMD(0xbc, 0x0f, 0x00), - MIPI_INIT_CMD(0xb8, 0x03, 0x06, 0x00, 0x00), - MIPI_INIT_CMD(0xbd, 0x01, 0x90, 0x14, 0x14), - MIPI_INIT_CMD(0xc0, 0x17), - MIPI_INIT_CMD(0xc1, 0x17), - MIPI_INIT_CMD(0xd9, 0x01, 0x09, 0x70), - MIPI_INIT_CMD(0xc5, 0x12, 0x21, 0x00), - MIPI_INIT_CMD(0xbb, 0x23, 0x23), + MIPI_INIT_CMD(0xF0, 0x55, 0xAA, 0x52, 0x08, 0x00), + MIPI_INIT_CMD(0xB1, 0xE8, 0x11), + MIPI_INIT_CMD(0xB2, 0x25, 0x02), + MIPI_INIT_CMD(0xB5, 0x08, 0x00), + MIPI_INIT_CMD(0xBC, 0x0F, 0x00), + MIPI_INIT_CMD(0xB8, 0x03, 0x06, 0x00, 0x00), + MIPI_INIT_CMD(0xBD, 0x01, 0x90, 0x14, 0x14), + MIPI_INIT_CMD(0x6F, 0x01), + MIPI_INIT_CMD(0xC0, 0x03), + MIPI_INIT_CMD(0x6F, 0x02), + MIPI_INIT_CMD(0xC1, 0x0D), + MIPI_INIT_CMD(0xD9, 0x01, 0x09, 0x70), + MIPI_INIT_CMD(0xC5, 0x12, 0x21, 0x00), + MIPI_INIT_CMD(0xBB, 0x93, 0x93), /* page 1 */ - MIPI_INIT_CMD(0xf0, 0x55, 0xaa, 0x52, 0x08, 0x01), - MIPI_INIT_CMD(0xb3, 0x2d, 0x2d), - MIPI_INIT_CMD(0xb4, 0x19, 0x19), - MIPI_INIT_CMD(0xb9, 0x36, 0x36), - MIPI_INIT_CMD(0xba, 0x35, 0x35), - MIPI_INIT_CMD(0xca, 0x01), - MIPI_INIT_CMD(0xce, 0x04), - MIPI_INIT_CMD(0xc3, 0x14, 0x14), - MIPI_INIT_CMD(0xd8, 0xc0, 0x03), - MIPI_INIT_CMD(0xbc, 0x5a, 0x01), - MIPI_INIT_CMD(0xbd, 0x76, 0x01), + MIPI_INIT_CMD(0xF0, 0x55, 0xAA, 0x52, 0x08, 0x01), + MIPI_INIT_CMD(0xB3, 0x3C, 0x3C), + MIPI_INIT_CMD(0xB4, 0x0F, 0x0F), + MIPI_INIT_CMD(0xB9, 0x45, 0x45), + MIPI_INIT_CMD(0xBA, 0x14, 0x14), + MIPI_INIT_CMD(0xCA, 0x02), + MIPI_INIT_CMD(0xCE, 0x04), + MIPI_INIT_CMD(0xC3, 0x9B, 0x9B), + MIPI_INIT_CMD(0xD8, 0xC0, 0x03), + MIPI_INIT_CMD(0xBC, 0x82, 0x01), + MIPI_INIT_CMD(0xBD, 0x9E, 0x01), /* page 2 */ - MIPI_INIT_CMD(0xf0, 0x55, 0xaa, 0x52, 0x08, 0x02), - MIPI_INIT_CMD(0xb0, 0x00), - MIPI_INIT_CMD(0xd1, 0x00, 0x37, 0x00, 0x61, 0x00, 0x92), - MIPI_INIT_CMD(0xd2, 0x01, 0x6b, 0x01, 0xa7, 0x01, 0xd3), - MIPI_INIT_CMD(0xd3, 0x02, 0xe2, 0x03, 0x0f, 0x03, 0x30), - MIPI_INIT_CMD(0xd4, 0x03, 0xba, 0x03, 0xc1), - MIPI_INIT_CMD(0xe0, 0x00, 0x37, 0x00, 0x61, 0x00, 0x92), - MIPI_INIT_CMD(0xe1, 0x01, 0x6b, 0x01, 0xa7, 0x01, 0xd3), - MIPI_INIT_CMD(0xe2, 0x02, 0xe2, 0x03, 0x0f, 0x03, 0x30), - MIPI_INIT_CMD(0xe3, 0x03, 0xba, 0x03, 0xc1), + MIPI_INIT_CMD(0xF0, 0x55, 0xAA, 0x52, 0x08, 0x02), + MIPI_INIT_CMD(0xB0, 0x82), + MIPI_INIT_CMD(0xD1, 0x00, 0x00, 0x00, 0x3E, 0x00, 0x82, 0x00, 0xA5, + 0x00, 0xC1, 0x00, 0xEA, 0x01, 0x0D, 0x01, 0x40), + MIPI_INIT_CMD(0xD2, 0x01, 0x6A, 0x01, 0xA8, 0x01, 0xDC, 0x02, 0x29, + 0x02, 0x67, 0x02, 0x68, 0x02, 0xA8, 0x02, 0xF0), + MIPI_INIT_CMD(0xD3, 0x03, 0x19, 0x03, 0x49, 0x03, 0x67, 0x03, 0x8C, + 0x03, 0xA6, 0x03, 0xC7, 0x03, 0xDE, 0x03, 0xEC), + MIPI_INIT_CMD(0xD4, 0x03, 0xFF, 0x03, 0xFF), + MIPI_INIT_CMD(0xE0, 0x00, 0x00, 0x00, 0x86, 0x00, 0xC5, 0x00, 0xE5, + 0x00, 0xFF, 0x01, 0x26, 0x01, 0x45, 0x01, 0x75), + MIPI_INIT_CMD(0xE1, 0x01, 0x9C, 0x01, 0xD5, 0x02, 0x05, 0x02, 0x4D, + 0x02, 0x86, 0x02, 0x87, 0x02, 0xC3, 0x03, 0x03), + MIPI_INIT_CMD(0xE2, 0x03, 0x2A, 0x03, 0x56, 0x03, 0x72, 0x03, 0x94, + 0x03, 0xAC, 0x03, 0xCB, 0x03, 0xE0, 0x03, 0xED), + MIPI_INIT_CMD(0xE3, 0x03, 0xFF, 0x03, 0xFF), /* page 3 */ - MIPI_INIT_CMD(0xf0, 0x55, 0xaa, 0x52, 0x08, 0x03), - MIPI_INIT_CMD(0xb0, 0x00, 0x00, 0x00, 0x00), - MIPI_INIT_CMD(0xb1, 0x00, 0x00, 0x00, 0x00), - MIPI_INIT_CMD(0xb2, 0x00, 0x00, 0x06, 0x04, 0x00, 0xb0, 0x75), - MIPI_INIT_CMD(0xb3, 0x10, 0x07, 0xfd, 0x04, 0x00, 0xb0, 0x75), - MIPI_INIT_CMD(0xb6, 0xf0, 0x05, 0x07, 0x03, 0x00), - MIPI_INIT_CMD(0xba, 0xc5, 0x07, 0x00, 0x04, 0x01, 0xb0, 0x75), - MIPI_INIT_CMD(0xbb, 0xc5, 0x07, 0x00, 0x03, 0x01, 0xb0, 0x75), - MIPI_INIT_CMD(0xc0, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x80, 0x80), - MIPI_INIT_CMD(0xc1, 0x00, 0x3c, 0x00, 0x00, 0x00, 0x80, 0x80), - MIPI_INIT_CMD(0xc4, 0x00, 0x00), - MIPI_INIT_CMD(0xef, 0x41), + MIPI_INIT_CMD(0xF0, 0x55, 0xAA, 0x52, 0x08, 0x03), + MIPI_INIT_CMD(0xB0, 0x00, 0x00, 0x00, 0x00), + MIPI_INIT_CMD(0xB1, 0x00, 0x00, 0x00, 0x00), + MIPI_INIT_CMD(0xB2, 0x00, 0x00, 0x06, 0x04, 0x01, 0x40, 0x85), + MIPI_INIT_CMD(0xB3, 0x10, 0x07, 0xFC, 0x04, 0x01, 0x40, 0x80), + MIPI_INIT_CMD(0xB6, 0xF0, 0x08, 0x00, 0x04, 0x00, 0x00, 0x00, 0x01, + 0x40, 0x80), + MIPI_INIT_CMD(0xBA, 0xC5, 0x07, 0x00, 0x04, 0x11, 0x25, 0x8C), + MIPI_INIT_CMD(0xBB, 0xC5, 0x07, 0x00, 0x03, 0x11, 0x25, 0x8C), + MIPI_INIT_CMD(0xC0, 0x00, 0x3C, 0x00, 0x00, 0x00, 0x80, 0x80), + MIPI_INIT_CMD(0xC1, 0x00, 0x3C, 0x00, 0x00, 0x00, 0x80, 0x80), + MIPI_INIT_CMD(0xC4, 0x00, 0x00), + MIPI_INIT_CMD(0xEF, 0x41), /* page 4 */ - MIPI_INIT_CMD(0xf0, 0x55, 0xaa, 0x52, 0x08, 0x04), - MIPI_INIT_CMD(0xec, 0x4c), + MIPI_INIT_CMD(0xF0, 0x55, 0xAA, 0x52, 0x08, 0x04), + MIPI_INIT_CMD(0xEC, 0x4C), /* page 5 */ - MIPI_INIT_CMD(0xf0, 0x55, 0xaa, 0x52, 0x08, 0x05), - MIPI_INIT_CMD(0xb0, 0x13, 0x03, 0x03, 0x01), - MIPI_INIT_CMD(0xb1, 0x30, 0x00), - MIPI_INIT_CMD(0xb2, 0x02, 0x02, 0x00), - MIPI_INIT_CMD(0xb3, 0x82, 0x23, 0x82, 0x38), - MIPI_INIT_CMD(0xb4, 0xc5, 0x75, 0x24, 0x57), - MIPI_INIT_CMD(0xb5, 0x00, 0xd4, 0x72, 0x11, 0x11, 0xab, 0x0a), - MIPI_INIT_CMD(0xb6, 0x00, 0x00, 0xd5, 0x72, 0x24, 0x56), - MIPI_INIT_CMD(0xb7, 0x5c, 0xdc, 0x5c, 0x5c), - MIPI_INIT_CMD(0xb9, 0x0c, 0x00, 0x00, 0x01, 0x00), - MIPI_INIT_CMD(0xc0, 0x75, 0x11, 0x11, 0x54, 0x05), - MIPI_INIT_CMD(0xc6, 0x00, 0x00, 0x00, 0x00), - MIPI_INIT_CMD(0xd0, 0x00, 0x48, 0x0a, 0x00, 0x00), - MIPI_INIT_CMD(0xd1, 0x00, 0x48, 0x0b, 0x00, 0x00), + MIPI_INIT_CMD(0xF0, 0x55, 0xAA, 0x52, 0x08, 0x05), + MIPI_INIT_CMD(0xB0, 0x13, 0x03, 0x03, 0x01), + MIPI_INIT_CMD(0xB1, 0x30, 0x00), + MIPI_INIT_CMD(0xB2, 0x02, 0x02, 0x00), + MIPI_INIT_CMD(0xB3, 0x82, 0x23, 0x82, 0x9D), + MIPI_INIT_CMD(0xB4, 0xC5, 0x75, 0x24, 0x57), + MIPI_INIT_CMD(0xB5, 0x00, 0xD4, 0x72, 0x11, 0x11, 0xAB, 0x0A), + MIPI_INIT_CMD(0xB6, 0x00, 0x00, 0xD5, 0x72, 0x24, 0x56), + MIPI_INIT_CMD(0xB7, 0x5C, 0xDC, 0x5C, 0x5C), + MIPI_INIT_CMD(0xB9, 0x0C, 0x00, 0x00, 0x01, 0x00), + MIPI_INIT_CMD(0xC0, 0x75, 0x11, 0x11, 0x54, 0x05), + MIPI_INIT_CMD(0xC6, 0x00, 0x00, 0x00, 0x00), + MIPI_INIT_CMD(0xD0, 0x00, 0x48, 0x08, 0x00, 0x00), + MIPI_INIT_CMD(0xD1, 0x00, 0x48, 0x09, 0x00, 0x00), /* page 6 */ - MIPI_INIT_CMD(0xf0, 0x55, 0xaa, 0x52, 0x08, 0x06), - MIPI_INIT_CMD(0xb0, 0x02, 0x32, 0x32, 0x08, 0x2f), - MIPI_INIT_CMD(0xb1, 0x2e, 0x15, 0x14, 0x13, 0x12), - MIPI_INIT_CMD(0xb2, 0x11, 0x10, 0x00, 0x3d, 0x3d), - MIPI_INIT_CMD(0xb3, 0x3d, 0x3d, 0x3d, 0x3d, 0x3d), - MIPI_INIT_CMD(0xb4, 0x3d, 0x32), - MIPI_INIT_CMD(0xb5, 0x03, 0x32, 0x32, 0x09, 0x2f), - MIPI_INIT_CMD(0xb6, 0x2e, 0x1b, 0x1a, 0x19, 0x18), - MIPI_INIT_CMD(0xb7, 0x17, 0x16, 0x01, 0x3d, 0x3d), - MIPI_INIT_CMD(0xb8, 0x3d, 0x3d, 0x3d, 0x3d, 0x3d), - MIPI_INIT_CMD(0xb9, 0x3d, 0x32), - MIPI_INIT_CMD(0xc0, 0x00, 0x32, 0x32, 0x08, 0x2f), - MIPI_INIT_CMD(0xc1, 0x2e, 0x10, 0x11, 0x12, 0x13), - MIPI_INIT_CMD(0xc2, 0x14, 0x15, 0x02, 0x3d, 0x3d), - MIPI_INIT_CMD(0xc3, 0x3d, 0x3d, 0x3d, 0x3d, 0x3d), - MIPI_INIT_CMD(0xc4, 0x3d, 0x3d), - MIPI_INIT_CMD(0xc5, 0x01, 0x32, 0x32, 0x09, 0x2f), - MIPI_INIT_CMD(0xc6, 0x2e, 0x16, 0x17, 0x18, 0x19), - MIPI_INIT_CMD(0xc7, 0x1a, 0x1b, 0x03, 0x3d, 0x3d), - MIPI_INIT_CMD(0xc8, 0x3d, 0x3d, 0x3d, 0x3d, 0x3d), - MIPI_INIT_CMD(0xc9, 0x3d, 0x3d), + MIPI_INIT_CMD(0xF0, 0x55, 0xAA, 0x52, 0x08, 0x06), + MIPI_INIT_CMD(0xB0, 0x02, 0x32, 0x32, 0x08, 0x2F), + MIPI_INIT_CMD(0xB1, 0x2E, 0x15, 0x14, 0x13, 0x12), + MIPI_INIT_CMD(0xB2, 0x11, 0x10, 0x00, 0x3D, 0x3D), + MIPI_INIT_CMD(0xB3, 0x3D, 0x3D, 0x3D, 0x3D, 0x3D), + MIPI_INIT_CMD(0xB4, 0x3D, 0x32), + MIPI_INIT_CMD(0xB5, 0x03, 0x32, 0x32, 0x09, 0x2F), + MIPI_INIT_CMD(0xB6, 0x2E, 0x1B, 0x1A, 0x19, 0x18), + MIPI_INIT_CMD(0xB7, 0x17, 0x16, 0x01, 0x3D, 0x3D), + MIPI_INIT_CMD(0xB8, 0x3D, 0x3D, 0x3D, 0x3D, 0x3D), + MIPI_INIT_CMD(0xB9, 0x3D, 0x32), + MIPI_INIT_CMD(0xC0, 0x01, 0x32, 0x32, 0x09, 0x2F), + MIPI_INIT_CMD(0xC1, 0x2E, 0x1A, 0x1B, 0x16, 0x17), + MIPI_INIT_CMD(0xC2, 0x18, 0x19, 0x03, 0x3D, 0x3D), + MIPI_INIT_CMD(0xC3, 0x3D, 0x3D, 0x3D, 0x3D, 0x3D), + MIPI_INIT_CMD(0xC4, 0x3D, 0x32), + MIPI_INIT_CMD(0xC5, 0x00, 0x32, 0x32, 0x08, 0x2F), + MIPI_INIT_CMD(0xC6, 0x2E, 0x14, 0x15, 0x10, 0x11), + MIPI_INIT_CMD(0xC7, 0x12, 0x13, 0x02, 0x3D, 0x3D), + MIPI_INIT_CMD(0xC8, 0x3D, 0x3D, 0x3D, 0x3D, 0x3D), + MIPI_INIT_CMD(0xC9, 0x3D, 0x32), {}, }; |