From 8130959d011023077738bd9d6b6b65ab0d7f5233 Mon Sep 17 00:00:00 2001 From: chenzanxi Date: Fri, 22 Jan 2021 18:16:13 +0800 Subject: mb/google/kukui: Add panel for Katsu Declare the following panel for Katsu: - BOE_TV105WUM_NW0 - STA_2081101QFH032011_53G BUG=b:176523929 TEST=build Katsu image passed BRANCH=kukui Change-Id: I59a02198bc0e13f2760677ae4ea3eb05eb883464 Signed-off-by: chenzanxi Reviewed-on: https://review.coreboot.org/c/coreboot/+/49830 Tested-by: build bot (Jenkins) Reviewed-by: Hung-Te Lin Reviewed-by: Yu-Ping Wu --- src/mainboard/google/kukui/Makefile.inc | 1 + src/mainboard/google/kukui/panel_katsu.c | 16 +++ .../google/kukui/panel_params/Makefile.inc | 2 + .../panel_params/panel-STA_2081101QFH032011_53G.c | 117 +++++++++++++++++++++ 4 files changed, 136 insertions(+) create mode 100644 src/mainboard/google/kukui/panel_katsu.c create mode 100644 src/mainboard/google/kukui/panel_params/panel-STA_2081101QFH032011_53G.c diff --git a/src/mainboard/google/kukui/Makefile.inc b/src/mainboard/google/kukui/Makefile.inc index 7e065a3d8d..968ee19627 100644 --- a/src/mainboard/google/kukui/Makefile.inc +++ b/src/mainboard/google/kukui/Makefile.inc @@ -21,6 +21,7 @@ ramstage-y += chromeos.c ramstage-y += mainboard.c ramstage-$(CONFIG_BOARD_GOOGLE_FLAPJACK) += panel_flapjack.c ramstage-$(CONFIG_BOARD_GOOGLE_KAKADU) += panel_kakadu.c +ramstage-$(CONFIG_BOARD_GOOGLE_KATSU) += panel_katsu.c ramstage-$(CONFIG_BOARD_GOOGLE_KODAMA) += panel_kodama.c ramstage-$(CONFIG_BOARD_GOOGLE_KRANE) += panel_krane.c ramstage-$(CONFIG_BOARD_GOOGLE_KUKUI) += panel_kukui.c diff --git a/src/mainboard/google/kukui/panel_katsu.c b/src/mainboard/google/kukui/panel_katsu.c new file mode 100644 index 0000000000..f2a2070146 --- /dev/null +++ b/src/mainboard/google/kukui/panel_katsu.c @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include "panel.h" + +static struct panel_description katsu_panels[] = { + [1] = { .name = "BOE_TV105WUM_NW0", }, + [2] = { .name = "STA_2081101QFH032011_53G", }, +}; + +struct panel_description *get_panel_description(int panel_id) +{ + if (panel_id < 0 || panel_id >= ARRAY_SIZE(katsu_panels)) + return NULL; + + return get_panel_from_cbfs(&katsu_panels[panel_id]); +} diff --git a/src/mainboard/google/kukui/panel_params/Makefile.inc b/src/mainboard/google/kukui/panel_params/Makefile.inc index 3bd605d9b2..5d84f96ffd 100644 --- a/src/mainboard/google/kukui/panel_params/Makefile.inc +++ b/src/mainboard/google/kukui/panel_params/Makefile.inc @@ -9,6 +9,8 @@ panel-params-$(CONFIG_BOARD_GOOGLE_FLAPJACK) += panel-AUO_NT51021D8P panel-params-$(CONFIG_BOARD_GOOGLE_FLAPJACK) += panel-BOE_TV080WUM_NG0 panel-params-$(CONFIG_BOARD_GOOGLE_FLAPJACK) += panel-BOE_TV101WUM_NG0 panel-params-$(CONFIG_BOARD_GOOGLE_FLAPJACK) += panel-INX_OTA7290D10P +panel-params-$(CONFIG_BOARD_GOOGLE_KATSU) += panel-STA_2081101QFH032011_53G +panel-params-$(CONFIG_BOARD_GOOGLE_KATSU) += panel-BOE_TV105WUM_NW0 $(foreach params,$(panel-params-y), \ $(eval cbfs-files-y += $(params)) \ diff --git a/src/mainboard/google/kukui/panel_params/panel-STA_2081101QFH032011_53G.c b/src/mainboard/google/kukui/panel_params/panel-STA_2081101QFH032011_53G.c new file mode 100644 index 0000000000..baf3dacc74 --- /dev/null +++ b/src/mainboard/google/kukui/panel_params/panel-STA_2081101QFH032011_53G.c @@ -0,0 +1,117 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include "../panel.h" + +struct panel_serializable_data STA_QFH032011_53G = { + .edid = { + .ascii_string = "QFH032011-53G", + .manufacturer_name = "STA", + .panel_bits_per_color = 8, + .panel_bits_per_pixel = 24, + .mode = { + .pixel_clock = 150451, + .lvds_dual_channel = 0, + .refresh = 60, + .ha = 1200, .hbl = 210, .hso = 100, .hspw = 10, + .va = 1920, .vbl = 39, .vso = 14, .vspw = 10, + .phsync = '-', .pvsync = '-', + .x_mm = 135, .y_mm = 217, + }, + }, + .orientation = LB_FB_ORIENTATION_LEFT_UP, + .init = { + INIT_DCS_CMD(0xB0, 0x41), + INIT_DCS_CMD(0xC3, 0x4F), + INIT_DCS_CMD(0xC4, 0x40), + INIT_DCS_CMD(0xC5, 0x40), + INIT_DCS_CMD(0xC6, 0x40), + INIT_DCS_CMD(0xC7, 0x40), + INIT_DCS_CMD(0xC8, 0x4D), + INIT_DCS_CMD(0xC9, 0x52), + INIT_DCS_CMD(0xCA, 0x51), + INIT_DCS_CMD(0xCD, 0x5D), + INIT_DCS_CMD(0xCE, 0x5B), + INIT_DCS_CMD(0xCF, 0x4B), + INIT_DCS_CMD(0xD0, 0x49), + INIT_DCS_CMD(0xD1, 0x47), + INIT_DCS_CMD(0xD2, 0x45), + INIT_DCS_CMD(0xD3, 0x41), + INIT_DCS_CMD(0xD7, 0x50), + INIT_DCS_CMD(0xD8, 0x40), + INIT_DCS_CMD(0xD9, 0x40), + INIT_DCS_CMD(0xDA, 0x40), + INIT_DCS_CMD(0xDB, 0x40), + INIT_DCS_CMD(0xDC, 0x4E), + INIT_DCS_CMD(0xDD, 0x52), + INIT_DCS_CMD(0xDE, 0x51), + INIT_DCS_CMD(0xE1, 0x5E), + INIT_DCS_CMD(0xE2, 0x5C), + INIT_DCS_CMD(0xE3, 0x4C), + INIT_DCS_CMD(0xE4, 0x4A), + INIT_DCS_CMD(0xE5, 0x48), + INIT_DCS_CMD(0xE6, 0x46), + INIT_DCS_CMD(0xE7, 0x42), + INIT_DCS_CMD(0xB0, 0x03), + INIT_DCS_CMD(0xBE, 0x03), + INIT_DCS_CMD(0xCC, 0x44), + INIT_DCS_CMD(0xC8, 0x07), + INIT_DCS_CMD(0xC9, 0x05), + INIT_DCS_CMD(0xCA, 0x42), + INIT_DCS_CMD(0xCD, 0x3E), + INIT_DCS_CMD(0xCF, 0x60), + INIT_DCS_CMD(0xD2, 0x04), + INIT_DCS_CMD(0xD3, 0x04), + INIT_DCS_CMD(0xD4, 0x01), + INIT_DCS_CMD(0xD5, 0x00), + INIT_DCS_CMD(0xC6, 0x03), + INIT_DCS_CMD(0xD7, 0x04), + INIT_DCS_CMD(0xD9, 0x01), + INIT_DCS_CMD(0xDB, 0x01), + INIT_DCS_CMD(0xE4, 0xF0), + INIT_DCS_CMD(0xE5, 0x0A), + INIT_DCS_CMD(0xB0, 0x00), + INIT_DCS_CMD(0xC2, 0x08), + INIT_DCS_CMD(0xC4, 0x10), + INIT_DCS_CMD(0xB0, 0x02), + INIT_DCS_CMD(0xC0, 0x00), + INIT_DCS_CMD(0xC1, 0x0A), + INIT_DCS_CMD(0xC2, 0x20), + INIT_DCS_CMD(0xC3, 0x24), + INIT_DCS_CMD(0xC4, 0x23), + INIT_DCS_CMD(0xC5, 0x29), + INIT_DCS_CMD(0xC6, 0x23), + INIT_DCS_CMD(0xC7, 0x1C), + INIT_DCS_CMD(0xC8, 0x19), + INIT_DCS_CMD(0xC9, 0x17), + INIT_DCS_CMD(0xCA, 0x17), + INIT_DCS_CMD(0xCB, 0x18), + INIT_DCS_CMD(0xCC, 0x1A), + INIT_DCS_CMD(0xCD, 0x1E), + INIT_DCS_CMD(0xCE, 0x20), + INIT_DCS_CMD(0xCF, 0x23), + INIT_DCS_CMD(0xD0, 0x07), + INIT_DCS_CMD(0xD1, 0x00), + INIT_DCS_CMD(0xD2, 0x00), + INIT_DCS_CMD(0xD3, 0x0A), + INIT_DCS_CMD(0xD4, 0x13), + INIT_DCS_CMD(0xD5, 0x1C), + INIT_DCS_CMD(0xD6, 0x1A), + INIT_DCS_CMD(0xD7, 0x13), + INIT_DCS_CMD(0xD8, 0x17), + INIT_DCS_CMD(0xD9, 0x1C), + INIT_DCS_CMD(0xDA, 0x19), + INIT_DCS_CMD(0xDB, 0x17), + INIT_DCS_CMD(0xDC, 0x17), + INIT_DCS_CMD(0xDD, 0x18), + INIT_DCS_CMD(0xDE, 0x1A), + INIT_DCS_CMD(0xDF, 0x1E), + INIT_DCS_CMD(0xE0, 0x20), + INIT_DCS_CMD(0xE1, 0x23), + INIT_DCS_CMD(0xE2, 0x07), + INIT_DCS_CMD(0X11), + INIT_DELAY_CMD(120), + INIT_DCS_CMD(0X29), + INIT_DELAY_CMD(50), + INIT_END_CMD, + }, +}; -- cgit v1.2.3