summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
authorPeichao Wang <peichao.wang@bitland.corp-partner.google.com>2019-08-20 14:05:58 +0800
committerMartin Roth <martinroth@google.com>2019-08-23 06:32:27 +0000
commit652799b7385168d1d61bf188a777234fc3d63dbd (patch)
treef9467e6b60fb6069cc3b076f40da3e7cbf402dd4 /src/mainboard/google
parenta23a0388e60e4442d23d2f1613bc737e8ccb7832 (diff)
mb/google/kukui: Add panel for Kodama
Declare the following panel for Kodama: - AUO B101UAN08.3 BUG=b:139699622 TEST=builds Kodama image and working properly Signed-off-by: Peichao Wang <peichao.wang@bitland.corp-partner.google.com> Change-Id: I3f688ffd0ece6afac08d353ab5a6cf1cf876b32f Reviewed-on: https://review.coreboot.org/c/coreboot/+/35001 Reviewed-by: Hung-Te Lin <hungte@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/kukui/panel_kodama.c1
-rw-r--r--src/mainboard/google/kukui/panel_params/Makefile.inc1
-rw-r--r--src/mainboard/google/kukui/panel_params/panel-AUO_B101UAN08_3.c81
3 files changed, 83 insertions, 0 deletions
diff --git a/src/mainboard/google/kukui/panel_kodama.c b/src/mainboard/google/kukui/panel_kodama.c
index fe0152dc34..033e469964 100644
--- a/src/mainboard/google/kukui/panel_kodama.c
+++ b/src/mainboard/google/kukui/panel_kodama.c
@@ -16,6 +16,7 @@
#include "panel.h"
static struct panel_description kodama_panels[] = {
+ [1] = { .name = "AUO_B101UAN08_3", },
[2] = { .name = "BOE_TV101WUM_N53", },
};
diff --git a/src/mainboard/google/kukui/panel_params/Makefile.inc b/src/mainboard/google/kukui/panel_params/Makefile.inc
index c51992a436..016dad05ef 100644
--- a/src/mainboard/google/kukui/panel_params/Makefile.inc
+++ b/src/mainboard/google/kukui/panel_params/Makefile.inc
@@ -1,6 +1,7 @@
panel-params-y :=
panel-params-$(CONFIG_BOARD_GOOGLE_KRANE) += panel-AUO_KD101N80_45NA
panel-params-$(CONFIG_BOARD_GOOGLE_KRANE) += panel-BOE_TV101WUM_NL6
+panel-params-$(CONFIG_BOARD_GOOGLE_KODAMA) += panel-AUO_B101UAN08_3
panel-params-$(CONFIG_BOARD_GOOGLE_KODAMA) += panel-BOE_TV101WUM_N53
panel-params-$(CONFIG_BOARD_GOOGLE_KUKUI) += panel-CMN_P097PFG_SSD2858
panel-params-$(CONFIG_BOARD_GOOGLE_FLAPJACK) += panel-AUO_NT51021D8P
diff --git a/src/mainboard/google/kukui/panel_params/panel-AUO_B101UAN08_3.c b/src/mainboard/google/kukui/panel_params/panel-AUO_B101UAN08_3.c
new file mode 100644
index 0000000000..a3da2a8876
--- /dev/null
+++ b/src/mainboard/google/kukui/panel_params/panel-AUO_B101UAN08_3.c
@@ -0,0 +1,81 @@
+/*
+ * 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"
+
+struct panel_serializable_data AUO_B101UAN08_3 = {
+ .edid = {
+ .ascii_string = "B101UAN08.3",
+ .manufacturer_name = "AUO",
+ .panel_bits_per_color = 8,
+ .panel_bits_per_pixel = 24,
+ .mode = {
+ .pixel_clock = 159192,
+ .lvds_dual_channel = 0,
+ .refresh = 60,
+ .ha = 1200, .hbl = 144, .hso = 60, .hspw = 4,
+ .va = 1920, .vbl = 60, .vso = 34, .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, 0x01),
+ INIT_DCS_CMD(0xC0, 0x48),
+ INIT_DCS_CMD(0xC1, 0x48),
+ INIT_DCS_CMD(0xC2, 0x47),
+ INIT_DCS_CMD(0xC3, 0x47),
+ INIT_DCS_CMD(0xC4, 0x46),
+ INIT_DCS_CMD(0xC5, 0x46),
+ INIT_DCS_CMD(0xC6, 0x45),
+ INIT_DCS_CMD(0xC7, 0x45),
+ INIT_DCS_CMD(0xC8, 0x64),
+ INIT_DCS_CMD(0xC9, 0x64),
+ INIT_DCS_CMD(0xCA, 0x4F),
+ INIT_DCS_CMD(0xCB, 0x4F),
+ INIT_DCS_CMD(0xCC, 0x40),
+ INIT_DCS_CMD(0xCD, 0x40),
+ INIT_DCS_CMD(0xCE, 0x66),
+ INIT_DCS_CMD(0xCF, 0x66),
+ INIT_DCS_CMD(0xD0, 0x4F),
+ INIT_DCS_CMD(0xD1, 0x4F),
+ INIT_DCS_CMD(0xD2, 0x41),
+ INIT_DCS_CMD(0xD3, 0x41),
+ INIT_DCS_CMD(0xD4, 0x48),
+ INIT_DCS_CMD(0xD5, 0x48),
+ INIT_DCS_CMD(0xD6, 0x47),
+ INIT_DCS_CMD(0xD7, 0x47),
+ INIT_DCS_CMD(0xD8, 0x46),
+ INIT_DCS_CMD(0xD9, 0x46),
+ INIT_DCS_CMD(0xDA, 0x45),
+ INIT_DCS_CMD(0xDB, 0x45),
+ INIT_DCS_CMD(0xDC, 0x64),
+ INIT_DCS_CMD(0xDD, 0x64),
+ INIT_DCS_CMD(0xDE, 0x4F),
+ INIT_DCS_CMD(0xDF, 0x4F),
+ INIT_DCS_CMD(0xE0, 0x40),
+ INIT_DCS_CMD(0xE1, 0x40),
+ INIT_DCS_CMD(0xE2, 0x66),
+ INIT_DCS_CMD(0xE3, 0x66),
+ INIT_DCS_CMD(0xE4, 0x4F),
+ INIT_DCS_CMD(0xE5, 0x4F),
+ INIT_DCS_CMD(0xE6, 0x41),
+ INIT_DCS_CMD(0xE7, 0x41),
+ INIT_DELAY_CMD(150),
+ INIT_END_CMD,
+ },
+};