summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeichao Wang <peichao.wang@bitland.corp-partner.google.com>2019-07-23 11:42:49 +0800
committerJulius Werner <jwerner@chromium.org>2019-08-15 00:53:58 +0000
commit1d5fc281c88632268df8b796ca331c583d695436 (patch)
treec81ff8dc168a7170fcafa2f69a808b14be5fadfe /src
parentbca33b43f77b01bf6df34d09342baf9e771a7c25 (diff)
mb/google/kukui: Add panel for Kodama
Declare the following panel for Kodama: - BOE TV101WUM-N53 BUG=b:138156559 TEST=builds Kodama image and working properly Change-Id: I129cb6bf084b76da3ad33b7a19e38e884442b1aa Signed-off-by: Peichao Wang <peichao.wang@bitland.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34505 Reviewed-by: Julius Werner <jwerner@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/kukui/Makefile.inc1
-rw-r--r--src/mainboard/google/kukui/panel_kodama.c341
2 files changed, 342 insertions, 0 deletions
diff --git a/src/mainboard/google/kukui/Makefile.inc b/src/mainboard/google/kukui/Makefile.inc
index 727f8894de..3f3d931c46 100644
--- a/src/mainboard/google/kukui/Makefile.inc
+++ b/src/mainboard/google/kukui/Makefile.inc
@@ -24,6 +24,7 @@ ramstage-y += boardid.c
ramstage-y += chromeos.c
ramstage-y += mainboard.c
ramstage-y += memlayout.ld
+ramstage-$(CONFIG_BOARD_GOOGLE_KODAMA) += panel_kodama.c
ramstage-$(CONFIG_BOARD_GOOGLE_KRANE) += panel_krane.c
ramstage-$(CONFIG_BOARD_GOOGLE_KUKUI) += panel_kukui.c
ramstage-y += reset.c
diff --git a/src/mainboard/google/kukui/panel_kodama.c b/src/mainboard/google/kukui/panel_kodama.c
new file mode 100644
index 0000000000..15e46a4b82
--- /dev/null
+++ b/src/mainboard/google/kukui/panel_kodama.c
@@ -0,0 +1,341 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright 2019 Bitland Tech Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#include "panel.h"
+
+static struct panel_description BOE_TV101WUM_N53 = {
+ .edid = {
+ .ascii_string = "TV101WUM-N53",
+ .panel_bits_per_color = 8,
+ .panel_bits_per_pixel = 24,
+ .mode = {
+ .name = "1200x1920@60Hz",
+ .pixel_clock = 156297,
+ .lvds_dual_channel = 0,
+ .refresh = 60,
+ .ha = 1200, .hbl = 164, .hso = 60, .hspw = 24,
+ .va = 1920, .vbl = 26, .vso = 14, .vspw = 2,
+ .phsync = '-', .pvsync = '-',
+ .x_mm = 135, .y_mm = 216,
+ },
+ },
+ .orientation = LB_FB_ORIENTATION_LEFT_UP,
+ .init = {
+ INIT_DELAY_CMD(24),
+ INIT_DCS_CMD(0xB0, 0x05),
+ INIT_DCS_CMD(0xB1, 0xE5),
+ INIT_DCS_CMD(0xB3, 0x52),
+ INIT_DCS_CMD(0xB0, 0x00),
+ INIT_DCS_CMD(0xB3, 0x88),
+ INIT_DCS_CMD(0xB0, 0x04),
+ INIT_DCS_CMD(0xB8, 0x00),
+ INIT_DCS_CMD(0xB0, 0x00),
+ INIT_DCS_CMD(0xB6, 0x03),
+ INIT_DCS_CMD(0xBA, 0x8B),
+ INIT_DCS_CMD(0xBF, 0x1A),
+ INIT_DCS_CMD(0xC0, 0x0F),
+ INIT_DCS_CMD(0xC2, 0x0C),
+ INIT_DCS_CMD(0xC3, 0x02),
+ INIT_DCS_CMD(0xC4, 0x0C),
+ INIT_DCS_CMD(0xC5, 0x02),
+ INIT_DCS_CMD(0xB0, 0x01),
+ INIT_DCS_CMD(0xE0, 0x26),
+ INIT_DCS_CMD(0xE1, 0x26),
+ INIT_DCS_CMD(0xDC, 0x00),
+ INIT_DCS_CMD(0xDD, 0x00),
+ INIT_DCS_CMD(0xCC, 0x26),
+ INIT_DCS_CMD(0xCD, 0x26),
+ INIT_DCS_CMD(0xC8, 0x00),
+ INIT_DCS_CMD(0xC9, 0x00),
+ INIT_DCS_CMD(0xD2, 0x03),
+ INIT_DCS_CMD(0xD3, 0x03),
+ INIT_DCS_CMD(0xE6, 0x04),
+ INIT_DCS_CMD(0xE7, 0x04),
+ INIT_DCS_CMD(0xC4, 0x09),
+ INIT_DCS_CMD(0xC5, 0x09),
+ INIT_DCS_CMD(0xD8, 0x0A),
+ INIT_DCS_CMD(0xD9, 0x0A),
+ INIT_DCS_CMD(0xC2, 0x0B),
+ INIT_DCS_CMD(0xC3, 0x0B),
+ INIT_DCS_CMD(0xD6, 0x0C),
+ INIT_DCS_CMD(0xD7, 0x0C),
+ INIT_DCS_CMD(0xC0, 0x05),
+ INIT_DCS_CMD(0xC1, 0x05),
+ INIT_DCS_CMD(0xD4, 0x06),
+ INIT_DCS_CMD(0xD5, 0x06),
+ INIT_DCS_CMD(0xCA, 0x07),
+ INIT_DCS_CMD(0xCB, 0x07),
+ INIT_DCS_CMD(0xDE, 0x08),
+ INIT_DCS_CMD(0xDF, 0x08),
+ INIT_DCS_CMD(0xB0, 0x02),
+ INIT_DCS_CMD(0xC0, 0x00),
+ INIT_DCS_CMD(0xC1, 0x0D),
+ INIT_DCS_CMD(0xC2, 0x17),
+ INIT_DCS_CMD(0xC3, 0x26),
+ INIT_DCS_CMD(0xC4, 0x31),
+ INIT_DCS_CMD(0xC5, 0x1C),
+ INIT_DCS_CMD(0xC6, 0x2C),
+ INIT_DCS_CMD(0xC7, 0x33),
+ INIT_DCS_CMD(0xC8, 0x31),
+ INIT_DCS_CMD(0xC9, 0x37),
+ INIT_DCS_CMD(0xCA, 0x37),
+ INIT_DCS_CMD(0xCB, 0x37),
+ INIT_DCS_CMD(0xCC, 0x39),
+ INIT_DCS_CMD(0xC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00),
+ INIT_DCS_CMD(0xB0, 0x07),
+ INIT_DCS_CMD(0xB1, 0x00),
+ INIT_DCS_CMD(0xB2, 0x02),
+ INIT_DCS_CMD(0xB3, 0x0F),
+ INIT_DCS_CMD(0xB4, 0x25),
+ INIT_DCS_CMD(0xB5, 0x39),
+ INIT_DCS_CMD(0xB6, 0x4E),
+ INIT_DCS_CMD(0xB7, 0x72),
+ INIT_DCS_CMD(0xB8, 0x97),
+ INIT_DCS_CMD(0xB9, 0xDC),
+ INIT_DCS_CMD(0xBA, 0x22),
+ INIT_DCS_CMD(0xBB, 0xA4),
+ INIT_DCS_CMD(0xBC, 0x2B),
+ INIT_DCS_CMD(0xBD, 0x2F),
+ INIT_DCS_CMD(0xBE, 0xA9),
+ INIT_DCS_CMD(0xBF, 0x25),
+ INIT_DCS_CMD(0xC0, 0x61),
+ INIT_DCS_CMD(0xC1, 0x97),
+ INIT_DCS_CMD(0xC2, 0xB2),
+ INIT_DCS_CMD(0xC3, 0xCD),
+ INIT_DCS_CMD(0xC4, 0xD9),
+ INIT_DCS_CMD(0xC5, 0xE7),
+ INIT_DCS_CMD(0xC6, 0xF4),
+ INIT_DCS_CMD(0xC7, 0xFA),
+ INIT_DCS_CMD(0xC8, 0xFC),
+ INIT_DCS_CMD(0xC9, 0x00),
+ INIT_DCS_CMD(0xCA, 0x00),
+ INIT_DCS_CMD(0xCB, 0x16),
+ INIT_DCS_CMD(0xCC, 0xAF),
+ INIT_DCS_CMD(0xCD, 0xFF),
+ INIT_DCS_CMD(0xCE, 0xFF),
+ INIT_DCS_CMD(0xB0, 0x08),
+ INIT_DCS_CMD(0xB1, 0x04),
+ INIT_DCS_CMD(0xB2, 0x05),
+ INIT_DCS_CMD(0xB3, 0x11),
+ INIT_DCS_CMD(0xB4, 0x24),
+ INIT_DCS_CMD(0xB5, 0x39),
+ INIT_DCS_CMD(0xB6, 0x4F),
+ INIT_DCS_CMD(0xB7, 0x72),
+ INIT_DCS_CMD(0xB8, 0x98),
+ IN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DCS_CMD(0xB5, 0x3B),
+ INIT_DCS_CMD(0xB6, 0x4F),
+ INIT_DCS_CMD(0xB7, 0x73),
+ INIT_DCS_CMD(0xB8, 0x99),
+ INIT_DCS_CMD(0xB9, 0xE0),
+ INIT_DCS_CMD(0xBA, 0x26),
+ INIT_DCS_CMD(0xBB, 0xAD),
+ INIT_DCS_CMD(0xBC, 0x36),
+ INIT_DCS_CMD(0xBD, 0x3A),
+ INIT_DCS_CMD(0xBE, 0xAE),
+ INIT_DCS_CMD(0xBF, 0x2A),
+ INIT_DCS_CMD(0xC0, 0x66),
+ INIT_DCS_CMD(0xC1, 0x9E),
+ INIT_DCS_CMD(0xC2, 0xB8),
+ INIT_DCS_CMD(0xC3, 0xD1),
+ INIT_DCS_CMD(0xC4, 0xDD),
+ INIT_DCS_CMD(0xC5, 0xE9),
+ INIT_DCS_CMD(0xC6, 0xF6),
+ INIT_DCS_CMD(0xC7, 0xFA),
+ INIT_DCS_CMD(0xC8, 0xFC),
+ INIT_DCS_CMD(0xC9, 0x00),
+ INIT_DCS_CMD(0xCA, 0x00),
+ INIT_DCS_CMD(0xCB, 0x16),
+ INIT_DCS_CMD(0xCC, 0xAF),
+ INIT_DCS_CMD(0xCD, 0xFF),
+ INIT_DCS_CMD(0xCE, 0xFF),
+ INIT_DCS_CMD(0xB0, 0x00),
+ INIT_DCS_CMD(0xB3, 0x08),
+ INIT_DCS_CMD(0xB0, 0x04),
+ INIT_DCS_CMD(0xB8, 0x68),
+ INIT_DELAY_CMD(150),
+ INIT_END_CMD,
+ },
+};
+
+static struct panel_description *kodama_panels[] = {
+ [2] = &BOE_TV101WUM_N53,
+};
+
+struct panel_description *get_panel_description(int panel_id)
+{
+ if (panel_id < 0 || panel_id >= ARRAY_SIZE(kodama_panels))
+ return NULL;
+ return kodama_panels[panel_id];
+}