device: Move MIPI panel library from mainboard/google/kukui into common
All boards that are trying to use MIPI panels eventually run into the
problem that they need to store physical parameters and a list of DCS
initialization commands for each panel, and these commands can be very
different (e.g. a large amount of very short commands, a few very large
commands, etc.). Finding a data format to fit all these different cases
efficiently into the same structures keeps being a challenge, and the
Kukui mainboard already once put a lot of effort into designing a
clean, flexible and efficient solution for this. This patch moves that
framework into a common src/device/mipi/ library where it can be used by
other boards as well. (Also, this will hopefully allow us to save some
duplicated work when using the same panel on different boards at some
point.)
Signed-off-by: Julius Werner <jwerner@chromium.org>
Change-Id: I877f2b0c7ab984412b288e2ed27f37cd93c70863
Reviewed-on: https://review.coreboot.org/c/coreboot/+/56965
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
diff --git a/src/device/Kconfig b/src/device/Kconfig
index 5ae3466..16daeaa 100644
--- a/src/device/Kconfig
+++ b/src/device/Kconfig
@@ -1,5 +1,7 @@
## SPDX-License-Identifier: GPL-2.0-only
+source "src/device/mipi/Kconfig"
+
menu "Devices"
config HAVE_VGA_TEXT_FRAMEBUFFER
diff --git a/src/device/Makefile.inc b/src/device/Makefile.inc
index 808648d..70013c9 100644
--- a/src/device/Makefile.inc
+++ b/src/device/Makefile.inc
@@ -40,7 +40,7 @@
ramstage-$(CONFIG_CARDBUS_PLUGIN_SUPPORT) += cardbus_device.c
endif
-subdirs-y += oprom dram
+subdirs-y += oprom dram mipi
bootblock-$(CONFIG_SOFTWARE_I2C) += software_i2c.c
verstage-$(CONFIG_SOFTWARE_I2C) += software_i2c.c
diff --git a/src/device/mipi/Kconfig b/src/device/mipi/Kconfig
new file mode 100644
index 0000000..0b05e46
--- /dev/null
+++ b/src/device/mipi/Kconfig
@@ -0,0 +1,37 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
+# Mainboards should select the options in here to specify which panel parameter
+# settings they want stored in their CBFS.
+
+config MIPI_PANEL_AUO_B101UAN08_3
+ bool
+
+config MIPI_PANEL_AUO_KD101N80_45NA
+ bool
+
+config MIPI_PANEL_AUO_NT51021D8P
+ bool
+
+config MIPI_PANEL_BOE_TV080WUM_NG0
+ bool
+
+config MIPI_PANEL_BOE_TV101WUM_N53
+ bool
+
+config MIPI_PANEL_BOE_TV101WUM_NG0
+ bool
+
+config MIPI_PANEL_BOE_TV101WUM_NL6
+ bool
+
+config MIPI_PANEL_BOE_TV105WUM_NW0
+ bool
+
+config MIPI_PANEL_CMN_P097PFG_SSD2858
+ bool
+
+config MIPI_PANEL_INX_OTA7290D10P
+ bool
+
+config MIPI_PANEL_STA_2081101QFH032011_53G
+ bool
diff --git a/src/device/mipi/Makefile.inc b/src/device/mipi/Makefile.inc
new file mode 100644
index 0000000..cea7c3af
--- /dev/null
+++ b/src/device/mipi/Makefile.inc
@@ -0,0 +1,28 @@
+# SPDX-License-Identifier: GPL-2.0-only
+
+ramstage-y += panel.c
+
+panel-params-y :=
+
+panel-params-$(CONFIG_MIPI_PANEL_AUO_B101UAN08_3) += panel-AUO_B101UAN08_3
+panel-params-$(CONFIG_MIPI_PANEL_AUO_KD101N80_45NA) += panel-AUO_KD101N80_45NA
+panel-params-$(CONFIG_MIPI_PANEL_AUO_NT51021D8P) += panel-AUO_NT51021D8P
+
+panel-params-$(CONFIG_MIPI_PANEL_BOE_TV080WUM_NG0) += panel-BOE_TV080WUM_NG0
+panel-params-$(CONFIG_MIPI_PANEL_BOE_TV101WUM_N53) += panel-BOE_TV101WUM_N53
+panel-params-$(CONFIG_MIPI_PANEL_BOE_TV101WUM_NG0) += panel-BOE_TV101WUM_NG0
+panel-params-$(CONFIG_MIPI_PANEL_BOE_TV101WUM_NL6) += panel-BOE_TV101WUM_NL6
+panel-params-$(CONFIG_MIPI_PANEL_BOE_TV105WUM_NW0) += panel-BOE_TV105WUM_NW0
+
+panel-params-$(CONFIG_MIPI_PANEL_CMN_P097PFG_SSD2858) += panel-CMN_P097PFG_SSD2858
+
+panel-params-$(CONFIG_MIPI_PANEL_INX_OTA7290D10P) += panel-INX_OTA7290D10P
+
+panel-params-$(CONFIG_MIPI_PANEL_STA_2081101QFH032011_53G) += panel-STA_2081101QFH032011_53G
+
+$(foreach params,$(panel-params-y), \
+ $(eval cbfs-files-y += $(params)) \
+ $(eval $(params)-file := $(params).c:struct) \
+ $(eval $(params)-type := struct) \
+ $(eval $(params)-compression := $(CBFS_COMPRESS_FLAG)) \
+)
diff --git a/src/device/mipi/panel-AUO_B101UAN08_3.c b/src/device/mipi/panel-AUO_B101UAN08_3.c
new file mode 100644
index 0000000..5bdb7ba
--- /dev/null
+++ b/src/device/mipi/panel-AUO_B101UAN08_3.c
@@ -0,0 +1,68 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <device/mipi_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 = {
+ PANEL_DELAY(24),
+ PANEL_DCS(0xB0, 0x01),
+ PANEL_DCS(0xC0, 0x48),
+ PANEL_DCS(0xC1, 0x48),
+ PANEL_DCS(0xC2, 0x47),
+ PANEL_DCS(0xC3, 0x47),
+ PANEL_DCS(0xC4, 0x46),
+ PANEL_DCS(0xC5, 0x46),
+ PANEL_DCS(0xC6, 0x45),
+ PANEL_DCS(0xC7, 0x45),
+ PANEL_DCS(0xC8, 0x64),
+ PANEL_DCS(0xC9, 0x64),
+ PANEL_DCS(0xCA, 0x4F),
+ PANEL_DCS(0xCB, 0x4F),
+ PANEL_DCS(0xCC, 0x40),
+ PANEL_DCS(0xCD, 0x40),
+ PANEL_DCS(0xCE, 0x66),
+ PANEL_DCS(0xCF, 0x66),
+ PANEL_DCS(0xD0, 0x4F),
+ PANEL_DCS(0xD1, 0x4F),
+ PANEL_DCS(0xD2, 0x41),
+ PANEL_DCS(0xD3, 0x41),
+ PANEL_DCS(0xD4, 0x48),
+ PANEL_DCS(0xD5, 0x48),
+ PANEL_DCS(0xD6, 0x47),
+ PANEL_DCS(0xD7, 0x47),
+ PANEL_DCS(0xD8, 0x46),
+ PANEL_DCS(0xD9, 0x46),
+ PANEL_DCS(0xDA, 0x45),
+ PANEL_DCS(0xDB, 0x45),
+ PANEL_DCS(0xDC, 0x64),
+ PANEL_DCS(0xDD, 0x64),
+ PANEL_DCS(0xDE, 0x4F),
+ PANEL_DCS(0xDF, 0x4F),
+ PANEL_DCS(0xE0, 0x40),
+ PANEL_DCS(0xE1, 0x40),
+ PANEL_DCS(0xE2, 0x66),
+ PANEL_DCS(0xE3, 0x66),
+ PANEL_DCS(0xE4, 0x4F),
+ PANEL_DCS(0xE5, 0x4F),
+ PANEL_DCS(0xE6, 0x41),
+ PANEL_DCS(0xE7, 0x41),
+ PANEL_DELAY(150),
+ PANEL_END,
+ },
+};
diff --git a/src/mainboard/google/kukui/panel_params/panel-AUO_KD101N80_45NA.c b/src/device/mipi/panel-AUO_KD101N80_45NA.c
similarity index 78%
rename from src/mainboard/google/kukui/panel_params/panel-AUO_KD101N80_45NA.c
rename to src/device/mipi/panel-AUO_KD101N80_45NA.c
index a739f92..5856b0d 100644
--- a/src/mainboard/google/kukui/panel_params/panel-AUO_KD101N80_45NA.c
+++ b/src/device/mipi/panel-AUO_KD101N80_45NA.c
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include "../panel.h"
+#include <device/mipi_panel.h>
struct panel_serializable_data AUO_KD101N80_45NA = {
.edid = {
@@ -20,11 +20,11 @@
},
.orientation = LB_FB_ORIENTATION_LEFT_UP,
.init = {
- INIT_DELAY_CMD(10),
- INIT_DCS_CMD(0x11),
- INIT_DELAY_CMD(120),
- INIT_DCS_CMD(0x29),
- INIT_DELAY_CMD(20),
- INIT_END_CMD,
+ PANEL_DELAY(10),
+ PANEL_DCS(0x11),
+ PANEL_DELAY(120),
+ PANEL_DCS(0x29),
+ PANEL_DELAY(20),
+ PANEL_END,
},
};
diff --git a/src/mainboard/google/kukui/panel_params/panel-AUO_NT51021D8P.c b/src/device/mipi/panel-AUO_NT51021D8P.c
similarity index 78%
rename from src/mainboard/google/kukui/panel_params/panel-AUO_NT51021D8P.c
rename to src/device/mipi/panel-AUO_NT51021D8P.c
index f914eaf..37c41fd 100644
--- a/src/mainboard/google/kukui/panel_params/panel-AUO_NT51021D8P.c
+++ b/src/device/mipi/panel-AUO_NT51021D8P.c
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include "../panel.h"
+#include <device/mipi_panel.h>
struct panel_serializable_data AUO_NT51021D8P = {
.edid = {
@@ -19,10 +19,10 @@
},
},
.init = {
- INIT_DCS_CMD(0x11),
- INIT_DELAY_CMD(0x78),
- INIT_DCS_CMD(0x29),
- INIT_DELAY_CMD(0x14),
- INIT_END_CMD,
+ PANEL_DCS(0x11),
+ PANEL_DELAY(0x78),
+ PANEL_DCS(0x29),
+ PANEL_DELAY(0x14),
+ PANEL_END,
},
};
diff --git a/src/device/mipi/panel-BOE_TV080WUM_NG0.c b/src/device/mipi/panel-BOE_TV080WUM_NG0.c
new file mode 100644
index 0000000..baeb655
--- /dev/null
+++ b/src/device/mipi/panel-BOE_TV080WUM_NG0.c
@@ -0,0 +1,337 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <device/mipi_panel.h>
+
+struct panel_serializable_data BOE_TV080WUM_NG0 = {
+ .edid = {
+ .ascii_string = "TV080WUM-NG0",
+ .manufacturer_name = "BOE",
+ .panel_bits_per_color = 8,
+ .panel_bits_per_pixel = 24,
+ .mode = {
+ .pixel_clock = 159420,
+ .lvds_dual_channel = 0,
+ .refresh = 60,
+ .ha = 1200, .hbl = 164, .hso = 80, .hspw = 24,
+ .va = 1920, .vbl = 28, .vso = 10, .vspw = 4,
+ .phsync = '-', .pvsync = '-',
+ .x_mm = 107, .y_mm = 132,
+ },
+ },
+ .init = {
+ PANEL_DCS(0x10),
+ PANEL_DELAY(0x22),
+ PANEL_DCS(0xB0, 0x05),
+ PANEL_DCS(0xB1, 0xE5),
+ PANEL_DCS(0xB3, 0x52),
+ PANEL_DCS(0xB0, 0x00),
+ PANEL_DCS(0xB3, 0x88),
+ PANEL_DCS(0xB0, 0x04),
+ PANEL_DCS(0xB8, 0x00),
+ PANEL_DCS(0xB0, 0x00),
+ PANEL_DCS(0xB2, 0x50),
+ PANEL_DCS(0xB6, 0x03),
+ PANEL_DCS(0xBA, 0x8B),
+ PANEL_DCS(0xBF, 0x15),
+ PANEL_DCS(0xC0, 0x0F),
+ PANEL_DCS(0xC2, 0x0C),
+ PANEL_DCS(0xC3, 0x02),
+ PANEL_DCS(0xC4, 0x0C),
+ PANEL_DCS(0xC5, 0x02),
+ PANEL_DCS(0xB0, 0x01),
+ PANEL_DCS(0xE0, 0x26),
+ PANEL_DCS(0xE1, 0x26),
+ PANEL_DCS(0xDC, 0x00),
+ PANEL_DCS(0xDD, 0x00),
+ PANEL_DCS(0xCC, 0x26),
+ PANEL_DCS(0xCD, 0x26),
+ PANEL_DCS(0xC8, 0x00),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xD2, 0x04),
+ PANEL_DCS(0xD3, 0x04),
+ PANEL_DCS(0xE6, 0x03),
+ PANEL_DCS(0xE7, 0x03),
+ PANEL_DCS(0xC4, 0x08),
+ PANEL_DCS(0xC5, 0x08),
+ PANEL_DCS(0xD8, 0x07),
+ PANEL_DCS(0xD9, 0x07),
+ PANEL_DCS(0xC2, 0x06),
+ PANEL_DCS(0xC3, 0x06),
+ PANEL_DCS(0xD6, 0x05),
+ PANEL_DCS(0xD7, 0x05),
+ PANEL_DCS(0xC0, 0x0C),
+ PANEL_DCS(0xC1, 0x0C),
+ PANEL_DCS(0xD4, 0x0B),
+ PANEL_DCS(0xD5, 0x0B),
+ PANEL_DCS(0xCA, 0x0A),
+ PANEL_DCS(0xCB, 0x0A),
+ PANEL_DCS(0xDE, 0x09),
+ PANEL_DCS(0xDF, 0x09),
+ PANEL_DCS(0xC6, 0x26),
+ PANEL_DCS(0xC7, 0x26),
+ PANEL_DCS(0xCE, 0x00),
+ PANEL_DCS(0xCF, 0x00),
+ PANEL_DCS(0xDA, 0x26),
+ PANEL_DCS(0xDB, 0x26),
+ PANEL_DCS(0xE2, 0x00),
+ PANEL_DCS(0xE3, 0x00),
+ PANEL_DCS(0xB0, 0x02),
+ PANEL_DCS(0xC0, 0x00),
+ PANEL_DCS(0xC1, 0x07),
+ PANEL_DCS(0xC2, 0x0D),
+ PANEL_DCS(0xC3, 0x18),
+ PANEL_DCS(0xC4, 0x27),
+ PANEL_DCS(0xC5, 0x28),
+ PANEL_DCS(0xC6, 0x30),
+ PANEL_DCS(0xC7, 0x2E),
+ PANEL_DCS(0xC8, 0x2F),
+ PANEL_DCS(0xC9, 0x1A),
+ PANEL_DCS(0xCA, 0x20),
+ PANEL_DCS(0xCB, 0x29),
+ PANEL_DCS(0xCC, 0x26),
+ PANEL_DCS(0xCD, 0x32),
+ PANEL_DCS(0xCE, 0x33),
+ PANEL_DCS(0xCF, 0x31),
+ PANEL_DCS(0xD0, 0x06),
+ PANEL_DCS(0xD2, 0x00),
+ PANEL_DCS(0xD3, 0x07),
+ PANEL_DCS(0xD4, 0x12),
+ PANEL_DCS(0xD5, 0x26),
+ PANEL_DCS(0xD6, 0x3D),
+ PANEL_DCS(0xD7, 0x3F),
+ PANEL_DCS(0xD8, 0x3F),
+ PANEL_DCS(0xD9, 0x3F),
+ PANEL_DCS(0xDA, 0x3F),
+ PANEL_DCS(0xDB, 0x3F),
+ PANEL_DCS(0xDC, 0x3F),
+ PANEL_DCS(0xDD, 0x3F),
+ PANEL_DCS(0xDE, 0x3F),
+ PANEL_DCS(0xDF, 0x3A),
+ PANEL_DCS(0xE0, 0x37),
+ PANEL_DCS(0xE1, 0x35),
+ PANEL_DCS(0xE2, 0x07),
+ PANEL_DCS(0xB0, 0x03),
+ PANEL_DCS(0xC8, 0x0B),
+ PANEL_DCS(0xC9, 0x07),
+ PANEL_DCS(0xC3, 0x00),
+ PANEL_DCS(0xE7, 0x00),
+ PANEL_DCS(0xC5, 0x2A),
+ PANEL_DCS(0xDE, 0x2A),
+ PANEL_DCS(0xCA, 0x43),
+ PANEL_DCS(0xC9, 0x07),
+ PANEL_DCS(0xE4, 0xC0),
+ PANEL_DCS(0xE5, 0x0D),
+ PANEL_DCS(0xCB, 0x00),
+ PANEL_DCS(0xB0, 0x06),
+ PANEL_DCS(0xB8, 0xA5),
+ PANEL_DCS(0xC0, 0xA5),
+ PANEL_DCS(0xC7, 0x0F),
+ PANEL_DCS(0xD5, 0x32),
+ PANEL_DCS(0xB8, 0x00),
+ PANEL_DCS(0xC0, 0x00),
+ PANEL_DCS(0xBC, 0x00),
+ PANEL_DCS(0xB0, 0x07),
+ PANEL_DCS(0xB1, 0x00),
+ PANEL_DCS(0xB2, 0x09),
+ PANEL_DCS(0xB3, 0x19),
+ PANEL_DCS(0xB4, 0x2F),
+ PANEL_DCS(0xB5, 0x44),
+ PANEL_DCS(0xB6, 0x52),
+ PANEL_DCS(0xB7, 0x6A),
+ PANEL_DCS(0xB8, 0x8A),
+ PANEL_DCS(0xB9, 0xCA),
+ PANEL_DCS(0xBA, 0x0C),
+ PANEL_DCS(0xBB, 0x87),
+ PANEL_DELAY(0x05),
+ PANEL_DCS(0xBC, 0x06),
+ PANEL_DCS(0xBD, 0x0A),
+ PANEL_DCS(0xBE, 0x9B),
+ PANEL_DCS(0xBF, 0x0C),
+ PANEL_DCS(0xC0, 0x3D),
+ PANEL_DCS(0xC1, 0x71),
+ PANEL_DCS(0xC2, 0x90),
+ PANEL_DCS(0xC3, 0xA0),
+ PANEL_DCS(0xC4, 0xA8),
+ PANEL_DCS(0xC5, 0xB1),
+ PANEL_DCS(0xC6, 0xBB),
+ PANEL_DCS(0xC7, 0xC0),
+ PANEL_DCS(0xC8, 0xC4),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xCA, 0x00),
+ PANEL_DCS(0xCB, 0x16),
+ PANEL_DCS(0xCC, 0xAF),
+ PANEL_DCS(0xCD, 0xFF),
+ PANEL_DCS(0xCE, 0xFF),
+ PANEL_DCS(0xB0, 0x08),
+ PANEL_DCS(0xB1, 0x04),
+ PANEL_DCS(0xB2, 0x08),
+ PANEL_DCS(0xB3, 0x19),
+ PANEL_DCS(0xB4, 0x31),
+ PANEL_DCS(0xB5, 0x46),
+ PANEL_DCS(0xB6, 0x55),
+ PANEL_DCS(0xB7, 0x6E),
+ PANEL_DCS(0xB8, 0x92),
+ PANEL_DCS(0xB9, 0xD4),
+ PANEL_DCS(0xBA, 0x1B),
+ PANEL_DCS(0xBB, 0x9B),
+ PANEL_DELAY(0x05),
+ PANEL_DCS(0xBC, 0x28),
+ PANEL_DCS(0xBD, 0x2D),
+ PANEL_DCS(0xBE, 0xC3),
+ PANEL_DCS(0xBF, 0x2F),
+ PANEL_DCS(0xC0, 0x62),
+ PANEL_DCS(0xC1, 0x99),
+ PANEL_DCS(0xC2, 0xAB),
+ PANEL_DCS(0xC3, 0xBF),
+ PANEL_DCS(0xC4, 0xCF),
+ PANEL_DCS(0xC5, 0xDF),
+ PANEL_DCS(0xC6, 0xF0),
+ PANEL_DCS(0xC7, 0xF9),
+ PANEL_DCS(0xC8, 0xFC),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xCA, 0x00),
+ PANEL_DCS(0xCB, 0x16),
+ PANEL_DCS(0xCC, 0xAF),
+ PANEL_DCS(0xCD, 0xFF),
+ PANEL_DCS(0xCE, 0xFF),
+ PANEL_DCS(0xB0, 0x09),
+ PANEL_DCS(0xB1, 0x04),
+ PANEL_DCS(0xB2, 0x05),
+ PANEL_DCS(0xB3, 0x17),
+ PANEL_DCS(0xB4, 0x2E),
+ PANEL_DCS(0xB5, 0x42),
+ PANEL_DCS(0xB6, 0x51),
+ PANEL_DCS(0xB7, 0x69),
+ PANEL_DCS(0xB8, 0x88),
+ PANEL_DCS(0xB9, 0xC9),
+ PANEL_DCS(0xBA, 0x0C),
+ PANEL_DCS(0xBB, 0x86),
+ PANEL_DELAY(0x05),
+ PANEL_DCS(0xBC, 0x03),
+ PANEL_DCS(0xBD, 0x08),
+ PANEL_DCS(0xBE, 0x95),
+ PANEL_DCS(0xBF, 0x05),
+ PANEL_DCS(0xC0, 0x35),
+ PANEL_DCS(0xC1, 0x62),
+ PANEL_DCS(0xC2, 0x81),
+ PANEL_DCS(0xC3, 0x96),
+ PANEL_DCS(0xC4, 0x9E),
+ PANEL_DCS(0xC5, 0xA5),
+ PANEL_DCS(0xC6, 0xAD),
+ PANEL_DCS(0xC7, 0xB1),
+ PANEL_DCS(0xC8, 0xB4),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xCA, 0x00),
+ PANEL_DCS(0xCB, 0x16),
+ PANEL_DCS(0xCC, 0xAF),
+ PANEL_DCS(0xCD, 0xFF),
+ PANEL_DCS(0xCE, 0xFF),
+ PANEL_DCS(0xB0, 0x0A),
+ PANEL_DCS(0xB1, 0x00),
+ PANEL_DCS(0xB2, 0x09),
+ PANEL_DCS(0xB3, 0x19),
+ PANEL_DCS(0xB4, 0x2F),
+ PANEL_DCS(0xB5, 0x44),
+ PANEL_DCS(0xB6, 0x52),
+ PANEL_DCS(0xB7, 0x6A),
+ PANEL_DCS(0xB8, 0x8A),
+ PANEL_DCS(0xB9, 0xCA),
+ PANEL_DCS(0xBA, 0x0C),
+ PANEL_DCS(0xBB, 0x87),
+ PANEL_DELAY(0x05),
+ PANEL_DCS(0xBC, 0x06),
+ PANEL_DCS(0xBD, 0x0A),
+ PANEL_DCS(0xBE, 0x9B),
+ PANEL_DCS(0xBF, 0x0C),
+ PANEL_DCS(0xC0, 0x3D),
+ PANEL_DCS(0xC1, 0x71),
+ PANEL_DCS(0xC2, 0x90),
+ PANEL_DCS(0xC3, 0xA0),
+ PANEL_DCS(0xC4, 0xA8),
+ PANEL_DCS(0xC5, 0xB1),
+ PANEL_DCS(0xC6, 0xBB),
+ PANEL_DCS(0xC7, 0xC0),
+ PANEL_DCS(0xC8, 0xC4),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xCA, 0x00),
+ PANEL_DCS(0xCB, 0x16),
+ PANEL_DCS(0xCC, 0xAF),
+ PANEL_DCS(0xCD, 0xFF),
+ PANEL_DCS(0xCE, 0xFF),
+ PANEL_DCS(0xB0, 0x0B),
+ PANEL_DCS(0xB1, 0x04),
+ PANEL_DCS(0xB2, 0x08),
+ PANEL_DCS(0xB3, 0x19),
+ PANEL_DCS(0xB4, 0x31),
+ PANEL_DCS(0xB5, 0x46),
+ PANEL_DCS(0xB6, 0x55),
+ PANEL_DCS(0xB7, 0x6E),
+ PANEL_DCS(0xB8, 0x92),
+ PANEL_DCS(0xB9, 0xD4),
+ PANEL_DCS(0xBA, 0x1B),
+ PANEL_DCS(0xBB, 0x9B),
+ PANEL_DELAY(0x05),
+ PANEL_DCS(0xBC, 0x28),
+ PANEL_DCS(0xBD, 0x2D),
+ PANEL_DCS(0xBE, 0xC3),
+ PANEL_DCS(0xBF, 0x2F),
+ PANEL_DCS(0xC0, 0x62),
+ PANEL_DCS(0xC1, 0x99),
+ PANEL_DCS(0xC2, 0xAB),
+ PANEL_DCS(0xC3, 0xBF),
+ PANEL_DCS(0xC4, 0xCF),
+ PANEL_DCS(0xC5, 0xDF),
+ PANEL_DCS(0xC6, 0xF0),
+ PANEL_DCS(0xC7, 0xF9),
+ PANEL_DCS(0xC8, 0xFC),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xCA, 0x00),
+ PANEL_DCS(0xCB, 0x16),
+ PANEL_DCS(0xCC, 0xAF),
+ PANEL_DCS(0xCD, 0xFF),
+ PANEL_DCS(0xCE, 0xFF),
+ PANEL_DCS(0xB0, 0x0C),
+ PANEL_DCS(0xB1, 0x04),
+ PANEL_DCS(0xB2, 0x05),
+ PANEL_DCS(0xB3, 0x17),
+ PANEL_DCS(0xB4, 0x2E),
+ PANEL_DCS(0xB5, 0x42),
+ PANEL_DCS(0xB6, 0x51),
+ PANEL_DCS(0xB7, 0x69),
+ PANEL_DCS(0xB8, 0x88),
+ PANEL_DCS(0xB9, 0xC9),
+ PANEL_DCS(0xBA, 0x0C),
+ PANEL_DCS(0xBB, 0x86),
+ PANEL_DELAY(0x05),
+ PANEL_DCS(0xBC, 0x03),
+ PANEL_DCS(0xBD, 0x08),
+ PANEL_DCS(0xBE, 0x95),
+ PANEL_DCS(0xBF, 0x05),
+ PANEL_DCS(0xC0, 0x35),
+ PANEL_DCS(0xC1, 0x62),
+ PANEL_DCS(0xC2, 0x81),
+ PANEL_DCS(0xC3, 0x96),
+ PANEL_DCS(0xC4, 0x9E),
+ PANEL_DCS(0xC5, 0xA5),
+ PANEL_DCS(0xC6, 0xAD),
+ PANEL_DCS(0xC7, 0xB1),
+ PANEL_DCS(0xC8, 0xB4),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xCA, 0x00),
+ PANEL_DCS(0xCB, 0x16),
+ PANEL_DCS(0xCC, 0xAF),
+ PANEL_DCS(0xCD, 0xFF),
+ PANEL_DCS(0xCE, 0xFF),
+ PANEL_DELAY(0x64),
+ PANEL_DCS(0xB0, 0x00),
+ PANEL_DCS(0xB3, 0x08),
+ PANEL_DCS(0xB0, 0x04),
+ PANEL_DCS(0xB8, 0x68),
+ PANEL_DELAY(0x0A),
+ PANEL_DCS(0x11),
+ PANEL_DELAY(0x78),
+ PANEL_DCS(0x29),
+ PANEL_DELAY(0x14),
+ PANEL_END,
+ },
+};
diff --git a/src/device/mipi/panel-BOE_TV101WUM_N53.c b/src/device/mipi/panel-BOE_TV101WUM_N53.c
new file mode 100644
index 0000000..b40999f
--- /dev/null
+++ b/src/device/mipi/panel-BOE_TV101WUM_N53.c
@@ -0,0 +1,317 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <device/mipi_panel.h>
+
+struct panel_serializable_data BOE_TV101WUM_N53 = {
+ .edid = {
+ .ascii_string = "TV101WUM-N53",
+ .manufacturer_name = "BOE",
+ .panel_bits_per_color = 8,
+ .panel_bits_per_pixel = 24,
+ .mode = {
+ .pixel_clock = 159916,
+ .lvds_dual_channel = 0,
+ .refresh = 60,
+ .ha = 1200, .hbl = 164, .hso = 80, .hspw = 24,
+ .va = 1920, .vbl = 34, .vso = 20, .vspw = 4,
+ .phsync = '-', .pvsync = '-',
+ .x_mm = 135, .y_mm = 216,
+ },
+ },
+ .orientation = LB_FB_ORIENTATION_LEFT_UP,
+ .init = {
+ PANEL_DELAY(24),
+ PANEL_DCS(0xB0, 0x05),
+ PANEL_DCS(0xB1, 0xE5),
+ PANEL_DCS(0xB3, 0x52),
+ PANEL_DCS(0xB0, 0x00),
+ PANEL_DCS(0xB3, 0x88),
+ PANEL_DCS(0xB0, 0x04),
+ PANEL_DCS(0xB8, 0x00),
+ PANEL_DCS(0xB0, 0x00),
+ PANEL_DCS(0xB6, 0x03),
+ PANEL_DCS(0xBA, 0x8B),
+ PANEL_DCS(0xBF, 0x1A),
+ PANEL_DCS(0xC0, 0x0F),
+ PANEL_DCS(0xC2, 0x0C),
+ PANEL_DCS(0xC3, 0x02),
+ PANEL_DCS(0xC4, 0x0C),
+ PANEL_DCS(0xC5, 0x02),
+ PANEL_DCS(0xB0, 0x01),
+ PANEL_DCS(0xE0, 0x26),
+ PANEL_DCS(0xE1, 0x26),
+ PANEL_DCS(0xDC, 0x00),
+ PANEL_DCS(0xDD, 0x00),
+ PANEL_DCS(0xCC, 0x26),
+ PANEL_DCS(0xCD, 0x26),
+ PANEL_DCS(0xC8, 0x00),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xD2, 0x03),
+ PANEL_DCS(0xD3, 0x03),
+ PANEL_DCS(0xE6, 0x04),
+ PANEL_DCS(0xE7, 0x04),
+ PANEL_DCS(0xC4, 0x09),
+ PANEL_DCS(0xC5, 0x09),
+ PANEL_DCS(0xD8, 0x0A),
+ PANEL_DCS(0xD9, 0x0A),
+ PANEL_DCS(0xC2, 0x0B),
+ PANEL_DCS(0xC3, 0x0B),
+ PANEL_DCS(0xD6, 0x0C),
+ PANEL_DCS(0xD7, 0x0C),
+ PANEL_DCS(0xC0, 0x05),
+ PANEL_DCS(0xC1, 0x05),
+ PANEL_DCS(0xD4, 0x06),
+ PANEL_DCS(0xD5, 0x06),
+ PANEL_DCS(0xCA, 0x07),
+ PANEL_DCS(0xCB, 0x07),
+ PANEL_DCS(0xDE, 0x08),
+ PANEL_DCS(0xDF, 0x08),
+ PANEL_DCS(0xB0, 0x02),
+ PANEL_DCS(0xC0, 0x00),
+ PANEL_DCS(0xC1, 0x0D),
+ PANEL_DCS(0xC2, 0x17),
+ PANEL_DCS(0xC3, 0x26),
+ PANEL_DCS(0xC4, 0x31),
+ PANEL_DCS(0xC5, 0x1C),
+ PANEL_DCS(0xC6, 0x2C),
+ PANEL_DCS(0xC7, 0x33),
+ PANEL_DCS(0xC8, 0x31),
+ PANEL_DCS(0xC9, 0x37),
+ PANEL_DCS(0xCA, 0x37),
+ PANEL_DCS(0xCB, 0x37),
+ PANEL_DCS(0xCC, 0x39),
+ PANEL_DCS(0xCD, 0x2E),
+ PANEL_DCS(0xCE, 0x2F),
+ PANEL_DCS(0xCF, 0x2F),
+ PANEL_DCS(0xD0, 0x07),
+ PANEL_DCS(0xD2, 0x00),
+ PANEL_DCS(0xD3, 0x0D),
+ PANEL_DCS(0xD4, 0x17),
+ PANEL_DCS(0xD5, 0x26),
+ PANEL_DCS(0xD6, 0x31),
+ PANEL_DCS(0xD7, 0x3F),
+ PANEL_DCS(0xD8, 0x3F),
+ PANEL_DCS(0xD9, 0x3F),
+ PANEL_DCS(0xDA, 0x3F),
+ PANEL_DCS(0xDB, 0x37),
+ PANEL_DCS(0xDC, 0x37),
+ PANEL_DCS(0xDD, 0x37),
+ PANEL_DCS(0xDE, 0x39),
+ PANEL_DCS(0xDF, 0x2E),
+ PANEL_DCS(0xE0, 0x2F),
+ PANEL_DCS(0xE1, 0x2F),
+ PANEL_DCS(0xE2, 0x07),
+ PANEL_DCS(0xB0, 0x03),
+ PANEL_DCS(0xC8, 0x0B),
+ PANEL_DCS(0xC9, 0x07),
+ PANEL_DCS(0xC3, 0x00),
+ PANEL_DCS(0xE7, 0x00),
+ PANEL_DCS(0xC5, 0x2A),
+ PANEL_DCS(0xDE, 0x2A),
+ PANEL_DCS(0xCA, 0x43),
+ PANEL_DCS(0xC9, 0x07),
+ PANEL_DCS(0xE4, 0xC0),
+ PANEL_DCS(0xE5, 0x0D),
+ PANEL_DCS(0xCB, 0x00),
+ PANEL_DCS(0xB0, 0x06),
+ PANEL_DCS(0xB8, 0xA5),
+ PANEL_DCS(0xC0, 0xA5),
+ PANEL_DCS(0xC7, 0x0F),
+ PANEL_DCS(0xD5, 0x32),
+ PANEL_DCS(0xB8, 0x00),
+ PANEL_DCS(0xC0, 0x00),
+ PANEL_DCS(0xBC, 0x00),
+ PANEL_DCS(0xB0, 0x07),
+ PANEL_DCS(0xB1, 0x00),
+ PANEL_DCS(0xB2, 0x02),
+ PANEL_DCS(0xB3, 0x0F),
+ PANEL_DCS(0xB4, 0x25),
+ PANEL_DCS(0xB5, 0x39),
+ PANEL_DCS(0xB6, 0x4E),
+ PANEL_DCS(0xB7, 0x72),
+ PANEL_DCS(0xB8, 0x97),
+ PANEL_DCS(0xB9, 0xDC),
+ PANEL_DCS(0xBA, 0x22),
+ PANEL_DCS(0xBB, 0xA4),
+ PANEL_DCS(0xBC, 0x2B),
+ PANEL_DCS(0xBD, 0x2F),
+ PANEL_DCS(0xBE, 0xA9),
+ PANEL_DCS(0xBF, 0x25),
+ PANEL_DCS(0xC0, 0x61),
+ PANEL_DCS(0xC1, 0x97),
+ PANEL_DCS(0xC2, 0xB2),
+ PANEL_DCS(0xC3, 0xCD),
+ PANEL_DCS(0xC4, 0xD9),
+ PANEL_DCS(0xC5, 0xE7),
+ PANEL_DCS(0xC6, 0xF4),
+ PANEL_DCS(0xC7, 0xFA),
+ PANEL_DCS(0xC8, 0xFC),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xCA, 0x00),
+ PANEL_DCS(0xCB, 0x16),
+ PANEL_DCS(0xCC, 0xAF),
+ PANEL_DCS(0xCD, 0xFF),
+ PANEL_DCS(0xCE, 0xFF),
+ PANEL_DCS(0xB0, 0x08),
+ PANEL_DCS(0xB1, 0x04),
+ PANEL_DCS(0xB2, 0x05),
+ PANEL_DCS(0xB3, 0x11),
+ PANEL_DCS(0xB4, 0x24),
+ PANEL_DCS(0xB5, 0x39),
+ PANEL_DCS(0xB6, 0x4F),
+ PANEL_DCS(0xB7, 0x72),
+ PANEL_DCS(0xB8, 0x98),
+ PANEL_DCS(0xB9, 0xDC),
+ PANEL_DCS(0xBA, 0x23),
+ PANEL_DCS(0xBB, 0xA6),
+ PANEL_DCS(0xBC, 0x2C),
+ PANEL_DCS(0xBD, 0x30),
+ PANEL_DCS(0xBE, 0xAA),
+ PANEL_DCS(0xBF, 0x26),
+ PANEL_DCS(0xC0, 0x62),
+ PANEL_DCS(0xC1, 0x9B),
+ PANEL_DCS(0xC2, 0xB5),
+ PANEL_DCS(0xC3, 0xCF),
+ PANEL_DCS(0xC4, 0xDB),
+ PANEL_DCS(0xC5, 0xE8),
+ PANEL_DCS(0xC6, 0xF5),
+ PANEL_DCS(0xC7, 0xFA),
+ PANEL_DCS(0xC8, 0xFC),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xCA, 0x00),
+ PANEL_DCS(0xCB, 0x16),
+ PANEL_DCS(0xCC, 0xAF),
+ PANEL_DCS(0xCD, 0xFF),
+ PANEL_DCS(0xCE, 0xFF),
+ PANEL_DCS(0xB0, 0x09),
+ PANEL_DCS(0xB1, 0x04),
+ PANEL_DCS(0xB2, 0x02),
+ PANEL_DCS(0xB3, 0x16),
+ PANEL_DCS(0xB4, 0x24),
+ PANEL_DCS(0xB5, 0x3B),
+ PANEL_DCS(0xB6, 0x4F),
+ PANEL_DCS(0xB7, 0x73),
+ PANEL_DCS(0xB8, 0x99),
+ PANEL_DCS(0xB9, 0xE0),
+ PANEL_DCS(0xBA, 0x26),
+ PANEL_DCS(0xBB, 0xAD),
+ PANEL_DCS(0xBC, 0x36),
+ PANEL_DCS(0xBD, 0x3A),
+ PANEL_DCS(0xBE, 0xAE),
+ PANEL_DCS(0xBF, 0x2A),
+ PANEL_DCS(0xC0, 0x66),
+ PANEL_DCS(0xC1, 0x9E),
+ PANEL_DCS(0xC2, 0xB8),
+ PANEL_DCS(0xC3, 0xD1),
+ PANEL_DCS(0xC4, 0xDD),
+ PANEL_DCS(0xC5, 0xE9),
+ PANEL_DCS(0xC6, 0xF6),
+ PANEL_DCS(0xC7, 0xFA),
+ PANEL_DCS(0xC8, 0xFC),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xCA, 0x00),
+ PANEL_DCS(0xCB, 0x16),
+ PANEL_DCS(0xCC, 0xAF),
+ PANEL_DCS(0xCD, 0xFF),
+ PANEL_DCS(0xCE, 0xFF),
+ PANEL_DCS(0xB0, 0x0A),
+ PANEL_DCS(0xB1, 0x00),
+ PANEL_DCS(0xB2, 0x02),
+ PANEL_DCS(0xB3, 0x0F),
+ PANEL_DCS(0xB4, 0x25),
+ PANEL_DCS(0xB5, 0x39),
+ PANEL_DCS(0xB6, 0x4E),
+ PANEL_DCS(0xB7, 0x72),
+ PANEL_DCS(0xB8, 0x97),
+ PANEL_DCS(0xB9, 0xDC),
+ PANEL_DCS(0xBA, 0x22),
+ PANEL_DCS(0xBB, 0xA4),
+ PANEL_DCS(0xBC, 0x2B),
+ PANEL_DCS(0xBD, 0x2F),
+ PANEL_DCS(0xBE, 0xA9),
+ PANEL_DCS(0xBF, 0x25),
+ PANEL_DCS(0xC0, 0x61),
+ PANEL_DCS(0xC1, 0x97),
+ PANEL_DCS(0xC2, 0xB2),
+ PANEL_DCS(0xC3, 0xCD),
+ PANEL_DCS(0xC4, 0xD9),
+ PANEL_DCS(0xC5, 0xE7),
+ PANEL_DCS(0xC6, 0xF4),
+ PANEL_DCS(0xC7, 0xFA),
+ PANEL_DCS(0xC8, 0xFC),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xCA, 0x00),
+ PANEL_DCS(0xCB, 0x16),
+ PANEL_DCS(0xCC, 0xAF),
+ PANEL_DCS(0xCD, 0xFF),
+ PANEL_DCS(0xCE, 0xFF),
+ PANEL_DCS(0xB0, 0x0B),
+ PANEL_DCS(0xB1, 0x04),
+ PANEL_DCS(0xB2, 0x05),
+ PANEL_DCS(0xB3, 0x11),
+ PANEL_DCS(0xB4, 0x24),
+ PANEL_DCS(0xB5, 0x39),
+ PANEL_DCS(0xB6, 0x4F),
+ PANEL_DCS(0xB7, 0x72),
+ PANEL_DCS(0xB8, 0x98),
+ PANEL_DCS(0xB9, 0xDC),
+ PANEL_DCS(0xBA, 0x23),
+ PANEL_DCS(0xBB, 0xA6),
+ PANEL_DCS(0xBC, 0x2C),
+ PANEL_DCS(0xBD, 0x30),
+ PANEL_DCS(0xBE, 0xAA),
+ PANEL_DCS(0xBF, 0x26),
+ PANEL_DCS(0xC0, 0x62),
+ PANEL_DCS(0xC1, 0x9B),
+ PANEL_DCS(0xC2, 0xB5),
+ PANEL_DCS(0xC3, 0xCF),
+ PANEL_DCS(0xC4, 0xDB),
+ PANEL_DCS(0xC5, 0xE8),
+ PANEL_DCS(0xC6, 0xF5),
+ PANEL_DCS(0xC7, 0xFA),
+ PANEL_DCS(0xC8, 0xFC),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xCA, 0x00),
+ PANEL_DCS(0xCB, 0x16),
+ PANEL_DCS(0xCC, 0xAF),
+ PANEL_DCS(0xCD, 0xFF),
+ PANEL_DCS(0xCE, 0xFF),
+ PANEL_DCS(0xB0, 0x0C),
+ PANEL_DCS(0xB1, 0x04),
+ PANEL_DCS(0xB2, 0x02),
+ PANEL_DCS(0xB3, 0x16),
+ PANEL_DCS(0xB4, 0x24),
+ PANEL_DCS(0xB5, 0x3B),
+ PANEL_DCS(0xB6, 0x4F),
+ PANEL_DCS(0xB7, 0x73),
+ PANEL_DCS(0xB8, 0x99),
+ PANEL_DCS(0xB9, 0xE0),
+ PANEL_DCS(0xBA, 0x26),
+ PANEL_DCS(0xBB, 0xAD),
+ PANEL_DCS(0xBC, 0x36),
+ PANEL_DCS(0xBD, 0x3A),
+ PANEL_DCS(0xBE, 0xAE),
+ PANEL_DCS(0xBF, 0x2A),
+ PANEL_DCS(0xC0, 0x66),
+ PANEL_DCS(0xC1, 0x9E),
+ PANEL_DCS(0xC2, 0xB8),
+ PANEL_DCS(0xC3, 0xD1),
+ PANEL_DCS(0xC4, 0xDD),
+ PANEL_DCS(0xC5, 0xE9),
+ PANEL_DCS(0xC6, 0xF6),
+ PANEL_DCS(0xC7, 0xFA),
+ PANEL_DCS(0xC8, 0xFC),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xCA, 0x00),
+ PANEL_DCS(0xCB, 0x16),
+ PANEL_DCS(0xCC, 0xAF),
+ PANEL_DCS(0xCD, 0xFF),
+ PANEL_DCS(0xCE, 0xFF),
+ PANEL_DCS(0xB0, 0x00),
+ PANEL_DCS(0xB3, 0x08),
+ PANEL_DCS(0xB0, 0x04),
+ PANEL_DCS(0xB8, 0x68),
+ PANEL_DELAY(150),
+ PANEL_END,
+ },
+};
diff --git a/src/device/mipi/panel-BOE_TV101WUM_NG0.c b/src/device/mipi/panel-BOE_TV101WUM_NG0.c
new file mode 100644
index 0000000..fc3f998
--- /dev/null
+++ b/src/device/mipi/panel-BOE_TV101WUM_NG0.c
@@ -0,0 +1,337 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <device/mipi_panel.h>
+
+struct panel_serializable_data BOE_TV101WUM_NG0 = {
+ .edid = {
+ .ascii_string = "TV101WUM-NG0",
+ .manufacturer_name = "BOE",
+ .panel_bits_per_color = 8,
+ .panel_bits_per_pixel = 24,
+ .mode = {
+ .pixel_clock = 159420,
+ .lvds_dual_channel = 0,
+ .refresh = 60,
+ .ha = 1200, .hbl = 164, .hso = 80, .hspw = 24,
+ .va = 1920, .vbl = 28, .vso = 10, .vspw = 4,
+ .phsync = '-', .pvsync = '-',
+ .x_mm = 135, .y_mm = 216,
+ },
+ },
+ .init = {
+ PANEL_DCS(0x10),
+ PANEL_DELAY(0x22),
+ PANEL_DCS(0xB0, 0x05),
+ PANEL_DCS(0xB1, 0xE5),
+ PANEL_DCS(0xB3, 0x52),
+ PANEL_DCS(0xB0, 0x00),
+ PANEL_DCS(0xB3, 0x88),
+ PANEL_DCS(0xB0, 0x04),
+ PANEL_DCS(0xB8, 0x00),
+ PANEL_DCS(0xB0, 0x00),
+ PANEL_DCS(0xB2, 0x50),
+ PANEL_DCS(0xB6, 0x03),
+ PANEL_DCS(0xBA, 0x8B),
+ PANEL_DCS(0xBF, 0x15),
+ PANEL_DCS(0xC0, 0x0F),
+ PANEL_DCS(0xC2, 0x0C),
+ PANEL_DCS(0xC3, 0x02),
+ PANEL_DCS(0xC4, 0x0C),
+ PANEL_DCS(0xC5, 0x02),
+ PANEL_DCS(0xB0, 0x01),
+ PANEL_DCS(0xE0, 0x26),
+ PANEL_DCS(0xE1, 0x26),
+ PANEL_DCS(0xDC, 0x00),
+ PANEL_DCS(0xDD, 0x00),
+ PANEL_DCS(0xCC, 0x26),
+ PANEL_DCS(0xCD, 0x26),
+ PANEL_DCS(0xC8, 0x00),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xD2, 0x04),
+ PANEL_DCS(0xD3, 0x04),
+ PANEL_DCS(0xE6, 0x03),
+ PANEL_DCS(0xE7, 0x03),
+ PANEL_DCS(0xC4, 0x08),
+ PANEL_DCS(0xC5, 0x08),
+ PANEL_DCS(0xD8, 0x07),
+ PANEL_DCS(0xD9, 0x07),
+ PANEL_DCS(0xC2, 0x06),
+ PANEL_DCS(0xC3, 0x06),
+ PANEL_DCS(0xD6, 0x05),
+ PANEL_DCS(0xD7, 0x05),
+ PANEL_DCS(0xC0, 0x0C),
+ PANEL_DCS(0xC1, 0x0C),
+ PANEL_DCS(0xD4, 0x0B),
+ PANEL_DCS(0xD5, 0x0B),
+ PANEL_DCS(0xCA, 0x0A),
+ PANEL_DCS(0xCB, 0x0A),
+ PANEL_DCS(0xDE, 0x09),
+ PANEL_DCS(0xDF, 0x09),
+ PANEL_DCS(0xC6, 0x26),
+ PANEL_DCS(0xC7, 0x26),
+ PANEL_DCS(0xCE, 0x00),
+ PANEL_DCS(0xCF, 0x00),
+ PANEL_DCS(0xDA, 0x26),
+ PANEL_DCS(0xDB, 0x26),
+ PANEL_DCS(0xE2, 0x00),
+ PANEL_DCS(0xE3, 0x00),
+ PANEL_DCS(0xB0, 0x02),
+ PANEL_DCS(0xC0, 0x00),
+ PANEL_DCS(0xC1, 0x07),
+ PANEL_DCS(0xC2, 0x0D),
+ PANEL_DCS(0xC3, 0x18),
+ PANEL_DCS(0xC4, 0x27),
+ PANEL_DCS(0xC5, 0x28),
+ PANEL_DCS(0xC6, 0x30),
+ PANEL_DCS(0xC7, 0x2E),
+ PANEL_DCS(0xC8, 0x2F),
+ PANEL_DCS(0xC9, 0x1A),
+ PANEL_DCS(0xCA, 0x20),
+ PANEL_DCS(0xCB, 0x29),
+ PANEL_DCS(0xCC, 0x26),
+ PANEL_DCS(0xCD, 0x32),
+ PANEL_DCS(0xCE, 0x33),
+ PANEL_DCS(0xCF, 0x31),
+ PANEL_DCS(0xD0, 0x06),
+ PANEL_DCS(0xD2, 0x00),
+ PANEL_DCS(0xD3, 0x07),
+ PANEL_DCS(0xD4, 0x12),
+ PANEL_DCS(0xD5, 0x26),
+ PANEL_DCS(0xD6, 0x3D),
+ PANEL_DCS(0xD7, 0x3F),
+ PANEL_DCS(0xD8, 0x3F),
+ PANEL_DCS(0xD9, 0x3F),
+ PANEL_DCS(0xDA, 0x3F),
+ PANEL_DCS(0xDB, 0x3F),
+ PANEL_DCS(0xDC, 0x3F),
+ PANEL_DCS(0xDD, 0x3F),
+ PANEL_DCS(0xDE, 0x3F),
+ PANEL_DCS(0xDF, 0x3A),
+ PANEL_DCS(0xE0, 0x37),
+ PANEL_DCS(0xE1, 0x35),
+ PANEL_DCS(0xE2, 0x07),
+ PANEL_DCS(0xB0, 0x03),
+ PANEL_DCS(0xC8, 0x0B),
+ PANEL_DCS(0xC9, 0x07),
+ PANEL_DCS(0xC3, 0x00),
+ PANEL_DCS(0xE7, 0x00),
+ PANEL_DCS(0xC5, 0x2A),
+ PANEL_DCS(0xDE, 0x2A),
+ PANEL_DCS(0xCA, 0x43),
+ PANEL_DCS(0xC9, 0x07),
+ PANEL_DCS(0xE4, 0xC0),
+ PANEL_DCS(0xE5, 0x0D),
+ PANEL_DCS(0xCB, 0x00),
+ PANEL_DCS(0xB0, 0x06),
+ PANEL_DCS(0xB8, 0xA5),
+ PANEL_DCS(0xC0, 0xA5),
+ PANEL_DCS(0xC7, 0x0F),
+ PANEL_DCS(0xD5, 0x32),
+ PANEL_DCS(0xB8, 0x00),
+ PANEL_DCS(0xC0, 0x00),
+ PANEL_DCS(0xBC, 0x00),
+ PANEL_DCS(0xB0, 0x07),
+ PANEL_DCS(0xB1, 0x00),
+ PANEL_DCS(0xB2, 0x09),
+ PANEL_DCS(0xB3, 0x19),
+ PANEL_DCS(0xB4, 0x2F),
+ PANEL_DCS(0xB5, 0x44),
+ PANEL_DCS(0xB6, 0x52),
+ PANEL_DCS(0xB7, 0x6A),
+ PANEL_DCS(0xB8, 0x8A),
+ PANEL_DCS(0xB9, 0xCA),
+ PANEL_DCS(0xBA, 0x0C),
+ PANEL_DCS(0xBB, 0x87),
+ PANEL_DELAY(0x05),
+ PANEL_DCS(0xBC, 0x06),
+ PANEL_DCS(0xBD, 0x0A),
+ PANEL_DCS(0xBE, 0x9B),
+ PANEL_DCS(0xBF, 0x0C),
+ PANEL_DCS(0xC0, 0x3D),
+ PANEL_DCS(0xC1, 0x71),
+ PANEL_DCS(0xC2, 0x90),
+ PANEL_DCS(0xC3, 0xA0),
+ PANEL_DCS(0xC4, 0xA8),
+ PANEL_DCS(0xC5, 0xB1),
+ PANEL_DCS(0xC6, 0xBB),
+ PANEL_DCS(0xC7, 0xC0),
+ PANEL_DCS(0xC8, 0xC4),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xCA, 0x00),
+ PANEL_DCS(0xCB, 0x16),
+ PANEL_DCS(0xCC, 0xAF),
+ PANEL_DCS(0xCD, 0xFF),
+ PANEL_DCS(0xCE, 0xFF),
+ PANEL_DCS(0xB0, 0x08),
+ PANEL_DCS(0xB1, 0x04),
+ PANEL_DCS(0xB2, 0x08),
+ PANEL_DCS(0xB3, 0x19),
+ PANEL_DCS(0xB4, 0x31),
+ PANEL_DCS(0xB5, 0x46),
+ PANEL_DCS(0xB6, 0x55),
+ PANEL_DCS(0xB7, 0x6E),
+ PANEL_DCS(0xB8, 0x92),
+ PANEL_DCS(0xB9, 0xD4),
+ PANEL_DCS(0xBA, 0x1B),
+ PANEL_DCS(0xBB, 0x9B),
+ PANEL_DELAY(0x05),
+ PANEL_DCS(0xBC, 0x28),
+ PANEL_DCS(0xBD, 0x2D),
+ PANEL_DCS(0xBE, 0xC3),
+ PANEL_DCS(0xBF, 0x2F),
+ PANEL_DCS(0xC0, 0x62),
+ PANEL_DCS(0xC1, 0x99),
+ PANEL_DCS(0xC2, 0xAB),
+ PANEL_DCS(0xC3, 0xBF),
+ PANEL_DCS(0xC4, 0xCF),
+ PANEL_DCS(0xC5, 0xDF),
+ PANEL_DCS(0xC6, 0xF0),
+ PANEL_DCS(0xC7, 0xF9),
+ PANEL_DCS(0xC8, 0xFC),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xCA, 0x00),
+ PANEL_DCS(0xCB, 0x16),
+ PANEL_DCS(0xCC, 0xAF),
+ PANEL_DCS(0xCD, 0xFF),
+ PANEL_DCS(0xCE, 0xFF),
+ PANEL_DCS(0xB0, 0x09),
+ PANEL_DCS(0xB1, 0x04),
+ PANEL_DCS(0xB2, 0x05),
+ PANEL_DCS(0xB3, 0x17),
+ PANEL_DCS(0xB4, 0x2E),
+ PANEL_DCS(0xB5, 0x42),
+ PANEL_DCS(0xB6, 0x51),
+ PANEL_DCS(0xB7, 0x69),
+ PANEL_DCS(0xB8, 0x88),
+ PANEL_DCS(0xB9, 0xC9),
+ PANEL_DCS(0xBA, 0x0C),
+ PANEL_DCS(0xBB, 0x86),
+ PANEL_DELAY(0x05),
+ PANEL_DCS(0xBC, 0x03),
+ PANEL_DCS(0xBD, 0x08),
+ PANEL_DCS(0xBE, 0x95),
+ PANEL_DCS(0xBF, 0x05),
+ PANEL_DCS(0xC0, 0x35),
+ PANEL_DCS(0xC1, 0x62),
+ PANEL_DCS(0xC2, 0x81),
+ PANEL_DCS(0xC3, 0x96),
+ PANEL_DCS(0xC4, 0x9E),
+ PANEL_DCS(0xC5, 0xA5),
+ PANEL_DCS(0xC6, 0xAD),
+ PANEL_DCS(0xC7, 0xB1),
+ PANEL_DCS(0xC8, 0xB4),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xCA, 0x00),
+ PANEL_DCS(0xCB, 0x16),
+ PANEL_DCS(0xCC, 0xAF),
+ PANEL_DCS(0xCD, 0xFF),
+ PANEL_DCS(0xCE, 0xFF),
+ PANEL_DCS(0xB0, 0x0A),
+ PANEL_DCS(0xB1, 0x00),
+ PANEL_DCS(0xB2, 0x09),
+ PANEL_DCS(0xB3, 0x19),
+ PANEL_DCS(0xB4, 0x2F),
+ PANEL_DCS(0xB5, 0x44),
+ PANEL_DCS(0xB6, 0x52),
+ PANEL_DCS(0xB7, 0x6A),
+ PANEL_DCS(0xB8, 0x8A),
+ PANEL_DCS(0xB9, 0xCA),
+ PANEL_DCS(0xBA, 0x0C),
+ PANEL_DCS(0xBB, 0x87),
+ PANEL_DELAY(0x05),
+ PANEL_DCS(0xBC, 0x06),
+ PANEL_DCS(0xBD, 0x0A),
+ PANEL_DCS(0xBE, 0x9B),
+ PANEL_DCS(0xBF, 0x0C),
+ PANEL_DCS(0xC0, 0x3D),
+ PANEL_DCS(0xC1, 0x71),
+ PANEL_DCS(0xC2, 0x90),
+ PANEL_DCS(0xC3, 0xA0),
+ PANEL_DCS(0xC4, 0xA8),
+ PANEL_DCS(0xC5, 0xB1),
+ PANEL_DCS(0xC6, 0xBB),
+ PANEL_DCS(0xC7, 0xC0),
+ PANEL_DCS(0xC8, 0xC4),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xCA, 0x00),
+ PANEL_DCS(0xCB, 0x16),
+ PANEL_DCS(0xCC, 0xAF),
+ PANEL_DCS(0xCD, 0xFF),
+ PANEL_DCS(0xCE, 0xFF),
+ PANEL_DCS(0xB0, 0x0B),
+ PANEL_DCS(0xB1, 0x04),
+ PANEL_DCS(0xB2, 0x08),
+ PANEL_DCS(0xB3, 0x19),
+ PANEL_DCS(0xB4, 0x31),
+ PANEL_DCS(0xB5, 0x46),
+ PANEL_DCS(0xB6, 0x55),
+ PANEL_DCS(0xB7, 0x6E),
+ PANEL_DCS(0xB8, 0x92),
+ PANEL_DCS(0xB9, 0xD4),
+ PANEL_DCS(0xBA, 0x1B),
+ PANEL_DCS(0xBB, 0x9B),
+ PANEL_DELAY(0x05),
+ PANEL_DCS(0xBC, 0x28),
+ PANEL_DCS(0xBD, 0x2D),
+ PANEL_DCS(0xBE, 0xC3),
+ PANEL_DCS(0xBF, 0x2F),
+ PANEL_DCS(0xC0, 0x62),
+ PANEL_DCS(0xC1, 0x99),
+ PANEL_DCS(0xC2, 0xAB),
+ PANEL_DCS(0xC3, 0xBF),
+ PANEL_DCS(0xC4, 0xCF),
+ PANEL_DCS(0xC5, 0xDF),
+ PANEL_DCS(0xC6, 0xF0),
+ PANEL_DCS(0xC7, 0xF9),
+ PANEL_DCS(0xC8, 0xFC),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xCA, 0x00),
+ PANEL_DCS(0xCB, 0x16),
+ PANEL_DCS(0xCC, 0xAF),
+ PANEL_DCS(0xCD, 0xFF),
+ PANEL_DCS(0xCE, 0xFF),
+ PANEL_DCS(0xB0, 0x0C),
+ PANEL_DCS(0xB1, 0x04),
+ PANEL_DCS(0xB2, 0x05),
+ PANEL_DCS(0xB3, 0x17),
+ PANEL_DCS(0xB4, 0x2E),
+ PANEL_DCS(0xB5, 0x42),
+ PANEL_DCS(0xB6, 0x51),
+ PANEL_DCS(0xB7, 0x69),
+ PANEL_DCS(0xB8, 0x88),
+ PANEL_DCS(0xB9, 0xC9),
+ PANEL_DCS(0xBA, 0x0C),
+ PANEL_DCS(0xBB, 0x86),
+ PANEL_DELAY(0x05),
+ PANEL_DCS(0xBC, 0x03),
+ PANEL_DCS(0xBD, 0x08),
+ PANEL_DCS(0xBE, 0x95),
+ PANEL_DCS(0xBF, 0x05),
+ PANEL_DCS(0xC0, 0x35),
+ PANEL_DCS(0xC1, 0x62),
+ PANEL_DCS(0xC2, 0x81),
+ PANEL_DCS(0xC3, 0x96),
+ PANEL_DCS(0xC4, 0x9E),
+ PANEL_DCS(0xC5, 0xA5),
+ PANEL_DCS(0xC6, 0xAD),
+ PANEL_DCS(0xC7, 0xB1),
+ PANEL_DCS(0xC8, 0xB4),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xCA, 0x00),
+ PANEL_DCS(0xCB, 0x16),
+ PANEL_DCS(0xCC, 0xAF),
+ PANEL_DCS(0xCD, 0xFF),
+ PANEL_DCS(0xCE, 0xFF),
+ PANEL_DELAY(0x64),
+ PANEL_DCS(0xB0, 0x00),
+ PANEL_DCS(0xB3, 0x08),
+ PANEL_DCS(0xB0, 0x04),
+ PANEL_DCS(0xB8, 0x68),
+ PANEL_DELAY(0x0A),
+ PANEL_DCS(0x11),
+ PANEL_DELAY(0x78),
+ PANEL_DCS(0x29),
+ PANEL_DELAY(0x14),
+ PANEL_END,
+ },
+};
diff --git a/src/device/mipi/panel-BOE_TV101WUM_NL6.c b/src/device/mipi/panel-BOE_TV101WUM_NL6.c
new file mode 100644
index 0000000..7369cbe
--- /dev/null
+++ b/src/device/mipi/panel-BOE_TV101WUM_NL6.c
@@ -0,0 +1,317 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <device/mipi_panel.h>
+
+struct panel_serializable_data BOE_TV101WUM_NL6 = {
+ .edid = {
+ .ascii_string = "TV101WUM-NL6",
+ .manufacturer_name = "BOE",
+ .panel_bits_per_color = 8,
+ .panel_bits_per_pixel = 24,
+ .mode = {
+ .pixel_clock = 159425,
+ .lvds_dual_channel = 0,
+ .refresh = 60,
+ .ha = 1200, .hbl = 164, .hso = 100, .hspw = 24,
+ .va = 1920, .vbl = 28, .vso = 10, .vspw = 4,
+ .phsync = '-', .pvsync = '-',
+ .x_mm = 135, .y_mm = 216,
+ },
+ },
+ .orientation = LB_FB_ORIENTATION_LEFT_UP,
+ .init = {
+ PANEL_DELAY(24),
+ PANEL_DCS(0xB0, 0x05),
+ PANEL_DCS(0xB1, 0xE5),
+ PANEL_DCS(0xB3, 0x52),
+ PANEL_DCS(0xB0, 0x00),
+ PANEL_DCS(0xB3, 0x88),
+ PANEL_DCS(0xB0, 0x04),
+ PANEL_DCS(0xB8, 0x00),
+ PANEL_DCS(0xB0, 0x00),
+ PANEL_DCS(0xB6, 0x03),
+ PANEL_DCS(0xBA, 0x8B),
+ PANEL_DCS(0xBF, 0x1A),
+ PANEL_DCS(0xC0, 0x0F),
+ PANEL_DCS(0xC2, 0x0C),
+ PANEL_DCS(0xC3, 0x02),
+ PANEL_DCS(0xC4, 0x0C),
+ PANEL_DCS(0xC5, 0x02),
+ PANEL_DCS(0xB0, 0x01),
+ PANEL_DCS(0xE0, 0x26),
+ PANEL_DCS(0xE1, 0x26),
+ PANEL_DCS(0xDC, 0x00),
+ PANEL_DCS(0xDD, 0x00),
+ PANEL_DCS(0xCC, 0x26),
+ PANEL_DCS(0xCD, 0x26),
+ PANEL_DCS(0xC8, 0x00),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xD2, 0x03),
+ PANEL_DCS(0xD3, 0x03),
+ PANEL_DCS(0xE6, 0x04),
+ PANEL_DCS(0xE7, 0x04),
+ PANEL_DCS(0xC4, 0x09),
+ PANEL_DCS(0xC5, 0x09),
+ PANEL_DCS(0xD8, 0x0A),
+ PANEL_DCS(0xD9, 0x0A),
+ PANEL_DCS(0xC2, 0x0B),
+ PANEL_DCS(0xC3, 0x0B),
+ PANEL_DCS(0xD6, 0x0C),
+ PANEL_DCS(0xD7, 0x0C),
+ PANEL_DCS(0xC0, 0x05),
+ PANEL_DCS(0xC1, 0x05),
+ PANEL_DCS(0xD4, 0x06),
+ PANEL_DCS(0xD5, 0x06),
+ PANEL_DCS(0xCA, 0x07),
+ PANEL_DCS(0xCB, 0x07),
+ PANEL_DCS(0xDE, 0x08),
+ PANEL_DCS(0xDF, 0x08),
+ PANEL_DCS(0xB0, 0x02),
+ PANEL_DCS(0xC0, 0x00),
+ PANEL_DCS(0xC1, 0x0D),
+ PANEL_DCS(0xC2, 0x17),
+ PANEL_DCS(0xC3, 0x26),
+ PANEL_DCS(0xC4, 0x31),
+ PANEL_DCS(0xC5, 0x1C),
+ PANEL_DCS(0xC6, 0x2C),
+ PANEL_DCS(0xC7, 0x33),
+ PANEL_DCS(0xC8, 0x31),
+ PANEL_DCS(0xC9, 0x37),
+ PANEL_DCS(0xCA, 0x37),
+ PANEL_DCS(0xCB, 0x37),
+ PANEL_DCS(0xCC, 0x39),
+ PANEL_DCS(0xCD, 0x2E),
+ PANEL_DCS(0xCE, 0x2F),
+ PANEL_DCS(0xCF, 0x2F),
+ PANEL_DCS(0xD0, 0x07),
+ PANEL_DCS(0xD2, 0x00),
+ PANEL_DCS(0xD3, 0x0D),
+ PANEL_DCS(0xD4, 0x17),
+ PANEL_DCS(0xD5, 0x26),
+ PANEL_DCS(0xD6, 0x31),
+ PANEL_DCS(0xD7, 0x3F),
+ PANEL_DCS(0xD8, 0x3F),
+ PANEL_DCS(0xD9, 0x3F),
+ PANEL_DCS(0xDA, 0x3F),
+ PANEL_DCS(0xDB, 0x37),
+ PANEL_DCS(0xDC, 0x37),
+ PANEL_DCS(0xDD, 0x37),
+ PANEL_DCS(0xDE, 0x39),
+ PANEL_DCS(0xDF, 0x2E),
+ PANEL_DCS(0xE0, 0x2F),
+ PANEL_DCS(0xE1, 0x2F),
+ PANEL_DCS(0xE2, 0x07),
+ PANEL_DCS(0xB0, 0x03),
+ PANEL_DCS(0xC8, 0x0B),
+ PANEL_DCS(0xC9, 0x07),
+ PANEL_DCS(0xC3, 0x00),
+ PANEL_DCS(0xE7, 0x00),
+ PANEL_DCS(0xC5, 0x2A),
+ PANEL_DCS(0xDE, 0x2A),
+ PANEL_DCS(0xCA, 0x43),
+ PANEL_DCS(0xC9, 0x07),
+ PANEL_DCS(0xE4, 0xC0),
+ PANEL_DCS(0xE5, 0x0D),
+ PANEL_DCS(0xCB, 0x00),
+ PANEL_DCS(0xB0, 0x06),
+ PANEL_DCS(0xB8, 0xA5),
+ PANEL_DCS(0xC0, 0xA5),
+ PANEL_DCS(0xC7, 0x0F),
+ PANEL_DCS(0xD5, 0x32),
+ PANEL_DCS(0xB8, 0x00),
+ PANEL_DCS(0xC0, 0x00),
+ PANEL_DCS(0xBC, 0x00),
+ PANEL_DCS(0xB0, 0x07),
+ PANEL_DCS(0xB1, 0x00),
+ PANEL_DCS(0xB2, 0x02),
+ PANEL_DCS(0xB3, 0x0F),
+ PANEL_DCS(0xB4, 0x25),
+ PANEL_DCS(0xB5, 0x39),
+ PANEL_DCS(0xB6, 0x4E),
+ PANEL_DCS(0xB7, 0x72),
+ PANEL_DCS(0xB8, 0x97),
+ PANEL_DCS(0xB9, 0xDC),
+ PANEL_DCS(0xBA, 0x22),
+ PANEL_DCS(0xBB, 0xA4),
+ PANEL_DCS(0xBC, 0x2B),
+ PANEL_DCS(0xBD, 0x2F),
+ PANEL_DCS(0xBE, 0xA9),
+ PANEL_DCS(0xBF, 0x25),
+ PANEL_DCS(0xC0, 0x61),
+ PANEL_DCS(0xC1, 0x97),
+ PANEL_DCS(0xC2, 0xB2),
+ PANEL_DCS(0xC3, 0xCD),
+ PANEL_DCS(0xC4, 0xD9),
+ PANEL_DCS(0xC5, 0xE7),
+ PANEL_DCS(0xC6, 0xF4),
+ PANEL_DCS(0xC7, 0xFA),
+ PANEL_DCS(0xC8, 0xFC),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xCA, 0x00),
+ PANEL_DCS(0xCB, 0x16),
+ PANEL_DCS(0xCC, 0xAF),
+ PANEL_DCS(0xCD, 0xFF),
+ PANEL_DCS(0xCE, 0xFF),
+ PANEL_DCS(0xB0, 0x08),
+ PANEL_DCS(0xB1, 0x04),
+ PANEL_DCS(0xB2, 0x05),
+ PANEL_DCS(0xB3, 0x11),
+ PANEL_DCS(0xB4, 0x24),
+ PANEL_DCS(0xB5, 0x39),
+ PANEL_DCS(0xB6, 0x4F),
+ PANEL_DCS(0xB7, 0x72),
+ PANEL_DCS(0xB8, 0x98),
+ PANEL_DCS(0xB9, 0xDC),
+ PANEL_DCS(0xBA, 0x23),
+ PANEL_DCS(0xBB, 0xA6),
+ PANEL_DCS(0xBC, 0x2C),
+ PANEL_DCS(0xBD, 0x30),
+ PANEL_DCS(0xBE, 0xAA),
+ PANEL_DCS(0xBF, 0x26),
+ PANEL_DCS(0xC0, 0x62),
+ PANEL_DCS(0xC1, 0x9B),
+ PANEL_DCS(0xC2, 0xB5),
+ PANEL_DCS(0xC3, 0xCF),
+ PANEL_DCS(0xC4, 0xDB),
+ PANEL_DCS(0xC5, 0xE8),
+ PANEL_DCS(0xC6, 0xF5),
+ PANEL_DCS(0xC7, 0xFA),
+ PANEL_DCS(0xC8, 0xFC),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xCA, 0x00),
+ PANEL_DCS(0xCB, 0x16),
+ PANEL_DCS(0xCC, 0xAF),
+ PANEL_DCS(0xCD, 0xFF),
+ PANEL_DCS(0xCE, 0xFF),
+ PANEL_DCS(0xB0, 0x09),
+ PANEL_DCS(0xB1, 0x04),
+ PANEL_DCS(0xB2, 0x02),
+ PANEL_DCS(0xB3, 0x16),
+ PANEL_DCS(0xB4, 0x24),
+ PANEL_DCS(0xB5, 0x3B),
+ PANEL_DCS(0xB6, 0x4F),
+ PANEL_DCS(0xB7, 0x73),
+ PANEL_DCS(0xB8, 0x99),
+ PANEL_DCS(0xB9, 0xE0),
+ PANEL_DCS(0xBA, 0x26),
+ PANEL_DCS(0xBB, 0xAD),
+ PANEL_DCS(0xBC, 0x36),
+ PANEL_DCS(0xBD, 0x3A),
+ PANEL_DCS(0xBE, 0xAE),
+ PANEL_DCS(0xBF, 0x2A),
+ PANEL_DCS(0xC0, 0x66),
+ PANEL_DCS(0xC1, 0x9E),
+ PANEL_DCS(0xC2, 0xB8),
+ PANEL_DCS(0xC3, 0xD1),
+ PANEL_DCS(0xC4, 0xDD),
+ PANEL_DCS(0xC5, 0xE9),
+ PANEL_DCS(0xC6, 0xF6),
+ PANEL_DCS(0xC7, 0xFA),
+ PANEL_DCS(0xC8, 0xFC),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xCA, 0x00),
+ PANEL_DCS(0xCB, 0x16),
+ PANEL_DCS(0xCC, 0xAF),
+ PANEL_DCS(0xCD, 0xFF),
+ PANEL_DCS(0xCE, 0xFF),
+ PANEL_DCS(0xB0, 0x0A),
+ PANEL_DCS(0xB1, 0x00),
+ PANEL_DCS(0xB2, 0x02),
+ PANEL_DCS(0xB3, 0x0F),
+ PANEL_DCS(0xB4, 0x25),
+ PANEL_DCS(0xB5, 0x39),
+ PANEL_DCS(0xB6, 0x4E),
+ PANEL_DCS(0xB7, 0x72),
+ PANEL_DCS(0xB8, 0x97),
+ PANEL_DCS(0xB9, 0xDC),
+ PANEL_DCS(0xBA, 0x22),
+ PANEL_DCS(0xBB, 0xA4),
+ PANEL_DCS(0xBC, 0x2B),
+ PANEL_DCS(0xBD, 0x2F),
+ PANEL_DCS(0xBE, 0xA9),
+ PANEL_DCS(0xBF, 0x25),
+ PANEL_DCS(0xC0, 0x61),
+ PANEL_DCS(0xC1, 0x97),
+ PANEL_DCS(0xC2, 0xB2),
+ PANEL_DCS(0xC3, 0xCD),
+ PANEL_DCS(0xC4, 0xD9),
+ PANEL_DCS(0xC5, 0xE7),
+ PANEL_DCS(0xC6, 0xF4),
+ PANEL_DCS(0xC7, 0xFA),
+ PANEL_DCS(0xC8, 0xFC),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xCA, 0x00),
+ PANEL_DCS(0xCB, 0x16),
+ PANEL_DCS(0xCC, 0xAF),
+ PANEL_DCS(0xCD, 0xFF),
+ PANEL_DCS(0xCE, 0xFF),
+ PANEL_DCS(0xB0, 0x0B),
+ PANEL_DCS(0xB1, 0x04),
+ PANEL_DCS(0xB2, 0x05),
+ PANEL_DCS(0xB3, 0x11),
+ PANEL_DCS(0xB4, 0x24),
+ PANEL_DCS(0xB5, 0x39),
+ PANEL_DCS(0xB6, 0x4F),
+ PANEL_DCS(0xB7, 0x72),
+ PANEL_DCS(0xB8, 0x98),
+ PANEL_DCS(0xB9, 0xDC),
+ PANEL_DCS(0xBA, 0x23),
+ PANEL_DCS(0xBB, 0xA6),
+ PANEL_DCS(0xBC, 0x2C),
+ PANEL_DCS(0xBD, 0x30),
+ PANEL_DCS(0xBE, 0xAA),
+ PANEL_DCS(0xBF, 0x26),
+ PANEL_DCS(0xC0, 0x62),
+ PANEL_DCS(0xC1, 0x9B),
+ PANEL_DCS(0xC2, 0xB5),
+ PANEL_DCS(0xC3, 0xCF),
+ PANEL_DCS(0xC4, 0xDB),
+ PANEL_DCS(0xC5, 0xE8),
+ PANEL_DCS(0xC6, 0xF5),
+ PANEL_DCS(0xC7, 0xFA),
+ PANEL_DCS(0xC8, 0xFC),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xCA, 0x00),
+ PANEL_DCS(0xCB, 0x16),
+ PANEL_DCS(0xCC, 0xAF),
+ PANEL_DCS(0xCD, 0xFF),
+ PANEL_DCS(0xCE, 0xFF),
+ PANEL_DCS(0xB0, 0x0C),
+ PANEL_DCS(0xB1, 0x04),
+ PANEL_DCS(0xB2, 0x02),
+ PANEL_DCS(0xB3, 0x16),
+ PANEL_DCS(0xB4, 0x24),
+ PANEL_DCS(0xB5, 0x3B),
+ PANEL_DCS(0xB6, 0x4F),
+ PANEL_DCS(0xB7, 0x73),
+ PANEL_DCS(0xB8, 0x99),
+ PANEL_DCS(0xB9, 0xE0),
+ PANEL_DCS(0xBA, 0x26),
+ PANEL_DCS(0xBB, 0xAD),
+ PANEL_DCS(0xBC, 0x36),
+ PANEL_DCS(0xBD, 0x3A),
+ PANEL_DCS(0xBE, 0xAE),
+ PANEL_DCS(0xBF, 0x2A),
+ PANEL_DCS(0xC0, 0x66),
+ PANEL_DCS(0xC1, 0x9E),
+ PANEL_DCS(0xC2, 0xB8),
+ PANEL_DCS(0xC3, 0xD1),
+ PANEL_DCS(0xC4, 0xDD),
+ PANEL_DCS(0xC5, 0xE9),
+ PANEL_DCS(0xC6, 0xF6),
+ PANEL_DCS(0xC7, 0xFA),
+ PANEL_DCS(0xC8, 0xFC),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xCA, 0x00),
+ PANEL_DCS(0xCB, 0x16),
+ PANEL_DCS(0xCC, 0xAF),
+ PANEL_DCS(0xCD, 0xFF),
+ PANEL_DCS(0xCE, 0xFF),
+ PANEL_DCS(0xB0, 0x00),
+ PANEL_DCS(0xB3, 0x08),
+ PANEL_DCS(0xB0, 0x04),
+ PANEL_DCS(0xB8, 0x68),
+ PANEL_DELAY(150),
+ PANEL_END,
+ },
+};
diff --git a/src/device/mipi/panel-BOE_TV105WUM_NW0.c b/src/device/mipi/panel-BOE_TV105WUM_NW0.c
new file mode 100644
index 0000000..efe6b66
--- /dev/null
+++ b/src/device/mipi/panel-BOE_TV105WUM_NW0.c
@@ -0,0 +1,321 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <device/mipi_panel.h>
+
+struct panel_serializable_data BOE_TV105WUM_NW0 = {
+ .edid = {
+ .ascii_string = "TV105WUM-NW0",
+ .manufacturer_name = "BOE",
+ .panel_bits_per_color = 8,
+ .panel_bits_per_pixel = 24,
+ .mode = {
+ .pixel_clock = 159916,
+ .lvds_dual_channel = 0,
+ .refresh = 60,
+ .ha = 1200, .hbl = 164, .hso = 80, .hspw = 24,
+ .va = 1920, .vbl = 34, .vso = 20, .vspw = 4,
+ .phsync = '-', .pvsync = '-',
+ .x_mm = 147, .y_mm = 236,
+ },
+ },
+ .orientation = LB_FB_ORIENTATION_LEFT_UP,
+ .init = {
+ PANEL_DCS(0x10),
+ PANEL_DELAY(34),
+ PANEL_DCS(0xB0, 0x05),
+ PANEL_DCS(0xB1, 0xE5),
+ PANEL_DCS(0xB3, 0x52),
+ PANEL_DCS(0xB0, 0x00),
+ PANEL_DCS(0xB3, 0x88),
+ PANEL_DCS(0xB0, 0x04),
+ PANEL_DCS(0xB8, 0x00),
+ PANEL_DCS(0xB0, 0x00),
+ PANEL_DCS(0xB6, 0x03),
+ PANEL_DCS(0xBA, 0x87),
+ PANEL_DCS(0xBF, 0x1F),
+ PANEL_DCS(0xC0, 0x0F),
+ PANEL_DCS(0xC2, 0x0E),
+ PANEL_DCS(0xC3, 0x02),
+ PANEL_DCS(0xC4, 0x0A),
+ PANEL_DCS(0xC5, 0x02),
+ PANEL_DCS(0xB0, 0x01),
+ PANEL_DCS(0xE0, 0x26),
+ PANEL_DCS(0xE1, 0x26),
+ PANEL_DCS(0xDC, 0x00),
+ PANEL_DCS(0xDD, 0x00),
+ PANEL_DCS(0xCC, 0x26),
+ PANEL_DCS(0xCD, 0x26),
+ PANEL_DCS(0xC8, 0x00),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xD2, 0x03),
+ PANEL_DCS(0xD3, 0x03),
+ PANEL_DCS(0xE6, 0x04),
+ PANEL_DCS(0xE7, 0x04),
+ PANEL_DCS(0xC4, 0x09),
+ PANEL_DCS(0xC5, 0x09),
+ PANEL_DCS(0xD8, 0x0A),
+ PANEL_DCS(0xD9, 0x0A),
+ PANEL_DCS(0xC2, 0x0B),
+ PANEL_DCS(0xC3, 0x0B),
+ PANEL_DCS(0xD6, 0x0C),
+ PANEL_DCS(0xD7, 0x0C),
+ PANEL_DCS(0xC0, 0x05),
+ PANEL_DCS(0xC1, 0x05),
+ PANEL_DCS(0xD4, 0x06),
+ PANEL_DCS(0xD5, 0x06),
+ PANEL_DCS(0xCA, 0x07),
+ PANEL_DCS(0xCB, 0x07),
+ PANEL_DCS(0xDE, 0x08),
+ PANEL_DCS(0xDF, 0x08),
+ PANEL_DCS(0xB0, 0x02),
+ PANEL_DCS(0xC0, 0x00),
+ PANEL_DCS(0xC1, 0x0F),
+ PANEL_DCS(0xC2, 0x1A),
+ PANEL_DCS(0xC3, 0x2B),
+ PANEL_DCS(0xC4, 0x38),
+ PANEL_DCS(0xC5, 0x39),
+ PANEL_DCS(0xC6, 0x38),
+ PANEL_DCS(0xC7, 0x38),
+ PANEL_DCS(0xC8, 0x36),
+ PANEL_DCS(0xC9, 0x34),
+ PANEL_DCS(0xCA, 0x35),
+ PANEL_DCS(0xCB, 0x36),
+ PANEL_DCS(0xCC, 0x39),
+ PANEL_DCS(0xCD, 0x2D),
+ PANEL_DCS(0xCE, 0x2E),
+ PANEL_DCS(0xCF, 0x2F),
+ PANEL_DCS(0xD0, 0x07),
+ PANEL_DCS(0xD2, 0x00),
+ PANEL_DCS(0xD3, 0x0F),
+ PANEL_DCS(0xD4, 0x1A),
+ PANEL_DCS(0xD5, 0x2B),
+ PANEL_DCS(0xD6, 0x38),
+ PANEL_DCS(0xD7, 0x39),
+ PANEL_DCS(0xD8, 0x38),
+ PANEL_DCS(0xD9, 0x38),
+ PANEL_DCS(0xDA, 0x36),
+ PANEL_DCS(0xDB, 0x34),
+ PANEL_DCS(0xDC, 0x35),
+ PANEL_DCS(0xDD, 0x36),
+ PANEL_DCS(0xDE, 0x39),
+ PANEL_DCS(0xDF, 0x2D),
+ PANEL_DCS(0xE0, 0x2E),
+ PANEL_DCS(0xE1, 0x2F),
+ PANEL_DCS(0xE2, 0x07),
+ PANEL_DCS(0xB0, 0x03),
+ PANEL_DCS(0xC8, 0x0B),
+ PANEL_DCS(0xC9, 0x07),
+ PANEL_DCS(0xC3, 0x00),
+ PANEL_DCS(0xE7, 0x00),
+ PANEL_DCS(0xC5, 0x2A),
+ PANEL_DCS(0xDE, 0x2A),
+ PANEL_DCS(0xCA, 0x43),
+ PANEL_DCS(0xC9, 0x07),
+ PANEL_DCS(0xE4, 0xC0),
+ PANEL_DCS(0xE5, 0x0D),
+ PANEL_DCS(0xCB, 0x00),
+ PANEL_DCS(0xB0, 0x06),
+ PANEL_DCS(0xB8, 0xA5),
+ PANEL_DCS(0xC0, 0xA5),
+ PANEL_DCS(0xC7, 0x0F),
+ PANEL_DCS(0xD5, 0x32),
+ PANEL_DCS(0xBC, 0x33),
+ PANEL_DCS(0xB0, 0x07),
+ PANEL_DCS(0xB1, 0x00),
+ PANEL_DCS(0xB2, 0x04),
+ PANEL_DCS(0xB3, 0x0A),
+ PANEL_DCS(0xB4, 0x1A),
+ PANEL_DCS(0xB5, 0x29),
+ PANEL_DCS(0xB6, 0x38),
+ PANEL_DCS(0xB7, 0x5A),
+ PANEL_DCS(0xB8, 0x79),
+ PANEL_DCS(0xB9, 0xBF),
+ PANEL_DCS(0xBA, 0x05),
+ PANEL_DCS(0xBB, 0x88),
+ PANEL_DCS(0xBC, 0x14),
+ PANEL_DCS(0xBD, 0x18),
+ PANEL_DCS(0xBE, 0x97),
+ PANEL_DCS(0xBF, 0x11),
+ PANEL_DCS(0xC0, 0x4B),
+ PANEL_DCS(0xC1, 0x82),
+ PANEL_DCS(0xC2, 0x9B),
+ PANEL_DCS(0xC3, 0xB6),
+ PANEL_DCS(0xC4, 0xC3),
+ PANEL_DCS(0xC5, 0xD0),
+ PANEL_DCS(0xC6, 0xDB),
+ PANEL_DCS(0xC7, 0xE1),
+ PANEL_DCS(0xC8, 0xE4),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xCA, 0x00),
+ PANEL_DCS(0xCB, 0x16),
+ PANEL_DCS(0xCC, 0xAF),
+ PANEL_DCS(0xCD, 0xFF),
+ PANEL_DCS(0xCE, 0xFF),
+ PANEL_DCS(0xB0, 0x08),
+ PANEL_DCS(0xB1, 0x00),
+ PANEL_DCS(0xB2, 0x03),
+ PANEL_DCS(0xB3, 0x0A),
+ PANEL_DCS(0xB4, 0x1A),
+ PANEL_DCS(0xB5, 0x29),
+ PANEL_DCS(0xB6, 0x38),
+ PANEL_DCS(0xB7, 0x5A),
+ PANEL_DCS(0xB8, 0x7A),
+ PANEL_DCS(0xB9, 0xC1),
+ PANEL_DCS(0xBA, 0x07),
+ PANEL_DCS(0xBB, 0x8B),
+ PANEL_DCS(0xBC, 0x17),
+ PANEL_DCS(0xBD, 0x1B),
+ PANEL_DCS(0xBE, 0x99),
+ PANEL_DCS(0xBF, 0x13),
+ PANEL_DCS(0xC0, 0x4C),
+ PANEL_DCS(0xC1, 0x84),
+ PANEL_DCS(0xC2, 0x9D),
+ PANEL_DCS(0xC3, 0xB7),
+ PANEL_DCS(0xC4, 0xC4),
+ PANEL_DCS(0xC5, 0xD0),
+ PANEL_DCS(0xC6, 0xDB),
+ PANEL_DCS(0xC7, 0xE1),
+ PANEL_DCS(0xC8, 0xE4),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xCA, 0x00),
+ PANEL_DCS(0xCB, 0x16),
+ PANEL_DCS(0xCC, 0xAF),
+ PANEL_DCS(0xCD, 0xFF),
+ PANEL_DCS(0xCE, 0xFF),
+ PANEL_DCS(0xB0, 0x09),
+ PANEL_DCS(0xB1, 0x04),
+ PANEL_DCS(0xB2, 0x04),
+ PANEL_DCS(0xB3, 0x09),
+ PANEL_DCS(0xB4, 0x1A),
+ PANEL_DCS(0xB5, 0x2B),
+ PANEL_DCS(0xB6, 0x3A),
+ PANEL_DCS(0xB7, 0x5D),
+ PANEL_DCS(0xB8, 0x80),
+ PANEL_DCS(0xB9, 0xCA),
+ PANEL_DCS(0xBA, 0x13),
+ PANEL_DCS(0xBB, 0x9D),
+ PANEL_DCS(0xBC, 0x30),
+ PANEL_DCS(0xBD, 0x34),
+ PANEL_DCS(0xBE, 0xBB),
+ PANEL_DCS(0xBF, 0x30),
+ PANEL_DCS(0xC0, 0x6A),
+ PANEL_DCS(0xC1, 0xA1),
+ PANEL_DCS(0xC2, 0xBC),
+ PANEL_DCS(0xC3, 0xD4),
+ PANEL_DCS(0xC4, 0xE0),
+ PANEL_DCS(0xC5, 0xEB),
+ PANEL_DCS(0xC6, 0xF6),
+ PANEL_DCS(0xC7, 0xFA),
+ PANEL_DCS(0xC8, 0xFC),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xCA, 0x00),
+ PANEL_DCS(0xCB, 0x16),
+ PANEL_DCS(0xCC, 0xAF),
+ PANEL_DCS(0xCD, 0xFF),
+ PANEL_DCS(0xCE, 0xFF),
+ PANEL_DCS(0xB0, 0x0A),
+ PANEL_DCS(0xB1, 0x00),
+ PANEL_DCS(0xB2, 0x04),
+ PANEL_DCS(0xB3, 0x0A),
+ PANEL_DCS(0xB4, 0x1A),
+ PANEL_DCS(0xB5, 0x29),
+ PANEL_DCS(0xB6, 0x38),
+ PANEL_DCS(0xB7, 0x5A),
+ PANEL_DCS(0xB8, 0x79),
+ PANEL_DCS(0xB9, 0xBF),
+ PANEL_DCS(0xBA, 0x05),
+ PANEL_DCS(0xBB, 0x88),
+ PANEL_DCS(0xBC, 0x14),
+ PANEL_DCS(0xBD, 0x18),
+ PANEL_DCS(0xBE, 0x97),
+ PANEL_DCS(0xBF, 0x11),
+ PANEL_DCS(0xC0, 0x4B),
+ PANEL_DCS(0xC1, 0x82),
+ PANEL_DCS(0xC2, 0x9B),
+ PANEL_DCS(0xC3, 0xB6),
+ PANEL_DCS(0xC4, 0xC3),
+ PANEL_DCS(0xC5, 0xD0),
+ PANEL_DCS(0xC6, 0xDB),
+ PANEL_DCS(0xC7, 0xE1),
+ PANEL_DCS(0xC8, 0xE4),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xCA, 0x00),
+ PANEL_DCS(0xCB, 0x16),
+ PANEL_DCS(0xCC, 0xAF),
+ PANEL_DCS(0xCD, 0xFF),
+ PANEL_DCS(0xCE, 0xFF),
+ PANEL_DCS(0xB0, 0x0B),
+ PANEL_DCS(0xB1, 0x00),
+ PANEL_DCS(0xB2, 0x03),
+ PANEL_DCS(0xB3, 0x0A),
+ PANEL_DCS(0xB4, 0x1A),
+ PANEL_DCS(0xB5, 0x29),
+ PANEL_DCS(0xB6, 0x38),
+ PANEL_DCS(0xB7, 0x5A),
+ PANEL_DCS(0xB8, 0x7A),
+ PANEL_DCS(0xB9, 0xC1),
+ PANEL_DCS(0xBA, 0x07),
+ PANEL_DCS(0xBB, 0x8B),
+ PANEL_DCS(0xBC, 0x17),
+ PANEL_DCS(0xBD, 0x1B),
+ PANEL_DCS(0xBE, 0x99),
+ PANEL_DCS(0xBF, 0x13),
+ PANEL_DCS(0xC0, 0x4C),
+ PANEL_DCS(0xC1, 0x84),
+ PANEL_DCS(0xC2, 0x9D),
+ PANEL_DCS(0xC3, 0xB7),
+ PANEL_DCS(0xC4, 0xC4),
+ PANEL_DCS(0xC5, 0xD0),
+ PANEL_DCS(0xC6, 0xDB),
+ PANEL_DCS(0xC7, 0xE1),
+ PANEL_DCS(0xC8, 0xE4),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xCA, 0x00),
+ PANEL_DCS(0xCB, 0x16),
+ PANEL_DCS(0xCC, 0xAF),
+ PANEL_DCS(0xCD, 0xFF),
+ PANEL_DCS(0xCE, 0xFF),
+ PANEL_DCS(0xB0, 0x0C),
+ PANEL_DCS(0xB1, 0x04),
+ PANEL_DCS(0xB2, 0x04),
+ PANEL_DCS(0xB3, 0x09),
+ PANEL_DCS(0xB4, 0x1A),
+ PANEL_DCS(0xB5, 0x2B),
+ PANEL_DCS(0xB6, 0x3A),
+ PANEL_DCS(0xB7, 0x5D),
+ PANEL_DCS(0xB8, 0x80),
+ PANEL_DCS(0xB9, 0xCA),
+ PANEL_DCS(0xBA, 0x13),
+ PANEL_DCS(0xBB, 0x9D),
+ PANEL_DCS(0xBC, 0x30),
+ PANEL_DCS(0xBD, 0x34),
+ PANEL_DCS(0xBE, 0xBB),
+ PANEL_DCS(0xBF, 0x30),
+ PANEL_DCS(0xC0, 0x6A),
+ PANEL_DCS(0xC1, 0xA1),
+ PANEL_DCS(0xC2, 0xBC),
+ PANEL_DCS(0xC3, 0xD4),
+ PANEL_DCS(0xC4, 0xE0),
+ PANEL_DCS(0xC5, 0xEB),
+ PANEL_DCS(0xC6, 0xF6),
+ PANEL_DCS(0xC7, 0xFA),
+ PANEL_DCS(0xC8, 0xFC),
+ PANEL_DCS(0xC9, 0x00),
+ PANEL_DCS(0xCA, 0x00),
+ PANEL_DCS(0xCB, 0x16),
+ PANEL_DCS(0xCC, 0xAF),
+ PANEL_DCS(0xCD, 0xFF),
+ PANEL_DCS(0xCE, 0xFF),
+ PANEL_DELAY(100),
+ PANEL_DCS(0xB0, 0x00),
+ PANEL_DCS(0xB3, 0x08),
+ PANEL_DCS(0xB0, 0x04),
+ PANEL_DCS(0xB8, 0x68),
+ PANEL_DELAY(10),
+ PANEL_DCS(0x11),
+ PANEL_DELAY(100),
+ PANEL_DCS(0x29),
+ PANEL_DELAY(50),
+ PANEL_END,
+ },
+};
diff --git a/src/device/mipi/panel-CMN_P097PFG_SSD2858.c b/src/device/mipi/panel-CMN_P097PFG_SSD2858.c
new file mode 100644
index 0000000..89154b8
--- /dev/null
+++ b/src/device/mipi/panel-CMN_P097PFG_SSD2858.c
@@ -0,0 +1,72 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <device/mipi_panel.h>
+
+struct panel_serializable_data P097PFG_SSD2858 = {
+ .edid = {
+ .ascii_string = "P097PFG",
+ .manufacturer_name = "CMN",
+ .panel_bits_per_color = 8,
+ .panel_bits_per_pixel = 24,
+ .mode = {
+ .pixel_clock = 211660,
+ .lvds_dual_channel = 0,
+ .refresh = 60,
+ .ha = 1536, .hbl = 160, .hso = 140, .hspw = 10,
+ .va = 2048, .vbl = 32, .vso = 20, .vspw = 2,
+ .phsync = '-', .pvsync = '-',
+ .x_mm = 147, .y_mm = 196,
+ },
+ },
+ .orientation = LB_FB_ORIENTATION_NORMAL,
+ .init = {
+ PANEL_GENERIC(0xff, 0x00),
+ /* LOCKCNT=0x1f4, MRX=0, POSTDIV=1 (/2} }, MULT=0x49
+ * 27 Mhz => 985.5 Mhz */
+ PANEL_GENERIC(0x00, 0x08, 0x01, 0xf4, 0x01, 0x49),
+ /* MTXDIV=1, SYSDIV=3 (=> 4) */
+ PANEL_GENERIC(0x00, 0x0c, 0x00, 0x00, 0x00, 0x03),
+ /* MTXVPF=24bpp, MRXLS=4 lanes, MRXVB=bypass, MRXECC=1,
+ * MRXEOT=1, MRXEE=1 */
+ PANEL_GENERIC(0x00, 0x14, 0x0c, 0x3d, 0x80, 0x0f),
+ PANEL_GENERIC(0x00, 0x20, 0x15, 0x92, 0x56, 0x7d),
+ PANEL_GENERIC(0x00, 0x24, 0x00, 0x00, 0x30, 0x00),
+
+ PANEL_GENERIC(0x10, 0x08, 0x01, 0x20, 0x08, 0x45),
+ PANEL_GENERIC(0x10, 0x1c, 0x00, 0x00, 0x00, 0x00),
+ PANEL_GENERIC(0x20, 0x0c, 0x00, 0x00, 0x00, 0x04),
+ /* Pixel clock 985.5 Mhz * 0x49/0x4b = 959 Mhz */
+ PANEL_GENERIC(0x20, 0x10, 0x00, 0x4b, 0x00, 0x49),
+ PANEL_GENERIC(0x20, 0xa0, 0x00, 0x00, 0x00, 0x00),
+ /* EOT=1, LPE = 0, LSOUT=4 lanes, LPD=25 */
+ PANEL_GENERIC(0x60, 0x08, 0x00, 0xd9, 0x00, 0x08),
+ PANEL_GENERIC(0x60, 0x14, 0x01, 0x00, 0x01, 0x06),
+ /* DSI0 enable (default: probably not needed) */
+ PANEL_GENERIC(0x60, 0x80, 0x00, 0x00, 0x00, 0x0f),
+ /* DSI1 enable */
+ PANEL_GENERIC(0x60, 0xa0, 0x00, 0x00, 0x00, 0x0f),
+
+ /* HSA=0x18, VSA=0x02, HBP=0x50, VBP=0x0c */
+ PANEL_GENERIC(0x60, 0x0c, 0x0c, 0x50, 0x02, 0x18),
+ /* VACT= 0x800 (2048} }, VFP= 0x14, HFP=0x50 */
+ PANEL_GENERIC(0x60, 0x10, 0x08, 0x00, 0x14, 0x50),
+ /* HACT=0x300 (768) */
+ PANEL_GENERIC(0x60, 0x84, 0x00, 0x00, 0x03, 0x00),
+ PANEL_GENERIC(0x60, 0xa4, 0x00, 0x00, 0x03, 0x00),
+
+ /* Take panel out of sleep. */
+ PANEL_GENERIC(0xff, 0x01),
+ PANEL_DCS(0x11),
+ PANEL_DELAY(120),
+ PANEL_DCS(0x29),
+ PANEL_DELAY(20),
+ PANEL_GENERIC(0xff, 0x00),
+
+ PANEL_DELAY(120),
+ PANEL_DCS(0x11),
+ PANEL_DELAY(120),
+ PANEL_DCS(0x29),
+ PANEL_DELAY(20),
+ PANEL_END,
+ },
+};
diff --git a/src/device/mipi/panel-INX_OTA7290D10P.c b/src/device/mipi/panel-INX_OTA7290D10P.c
new file mode 100644
index 0000000..0253ba7
--- /dev/null
+++ b/src/device/mipi/panel-INX_OTA7290D10P.c
@@ -0,0 +1,281 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <device/mipi_panel.h>
+
+struct panel_serializable_data INX_OTA7290D10P = {
+ .edid = {
+ .ascii_string = "OTA7290D10P",
+ .manufacturer_name = "INX",
+ .panel_bits_per_color = 8,
+ .panel_bits_per_pixel = 24,
+ .mode = {
+ .pixel_clock = 159420,
+ .lvds_dual_channel = 0,
+ .refresh = 60,
+ .ha = 1200, .hbl = 141, .hso = 80, .hspw = 1,
+ .va = 1920, .vbl = 61, .vso = 35, .vspw = 1,
+ .phsync = '-', .pvsync = '-',
+ .x_mm = 135, .y_mm = 216,
+ },
+ },
+ .init = {
+ PANEL_DCS(0xB0, 0x5A),
+ PANEL_DCS(0xB1, 0x00),
+ PANEL_DCS(0x89, 0x01),
+ PANEL_DCS(0x91, 0x17),
+ PANEL_DCS(0xB1, 0x03),
+ PANEL_DCS(0x2C, 0x28),
+ PANEL_DCS(0x00, 0xF1),
+ PANEL_DCS(0x01, 0x78),
+ PANEL_DCS(0x02, 0x3C),
+ PANEL_DCS(0x03, 0x1E),
+ PANEL_DCS(0x04, 0x8F),
+ PANEL_DCS(0x05, 0x01),
+ PANEL_DCS(0x06, 0x00),
+ PANEL_DCS(0x07, 0x00),
+ PANEL_DCS(0x08, 0x00),
+ PANEL_DCS(0x09, 0x00),
+ PANEL_DCS(0x0A, 0x01),
+ PANEL_DCS(0x0B, 0x3C),
+ PANEL_DCS(0x0C, 0x00),
+ PANEL_DCS(0x0D, 0x00),
+ PANEL_DCS(0x0E, 0x24),
+ PANEL_DCS(0x0F, 0x1C),
+ PANEL_DCS(0x10, 0xC8),
+ PANEL_DCS(0x11, 0x60),
+ PANEL_DCS(0x12, 0x70),
+ PANEL_DCS(0x13, 0x01),
+ PANEL_DCS(0x14, 0xE3),
+ PANEL_DCS(0x15, 0xFF),
+ PANEL_DCS(0x16, 0x3D),
+ PANEL_DCS(0x17, 0x0E),
+ PANEL_DCS(0x18, 0x01),
+ PANEL_DCS(0x19, 0x00),
+ PANEL_DCS(0x1A, 0x00),
+ PANEL_DCS(0x1B, 0xFC),
+ PANEL_DCS(0x1C, 0x0B),
+ PANEL_DCS(0x1D, 0xA0),
+ PANEL_DCS(0x1E, 0x03),
+ PANEL_DCS(0x1F, 0x04),
+ PANEL_DCS(0x20, 0x0C),
+ PANEL_DCS(0x21, 0x00),
+ PANEL_DCS(0x22, 0x04),
+ PANEL_DCS(0x23, 0x81),
+ PANEL_DCS(0x24, 0x1F),
+ PANEL_DCS(0x25, 0x10),
+ PANEL_DCS(0x26, 0x9B),
+ PANEL_DCS(0x2D, 0x01),
+ PANEL_DCS(0x2E, 0x84),
+ PANEL_DCS(0x2F, 0x00),
+ PANEL_DCS(0x30, 0x02),
+ PANEL_DCS(0x31, 0x08),
+ PANEL_DCS(0x32, 0x01),
+ PANEL_DCS(0x33, 0x1C),
+ PANEL_DCS(0x34, 0x70),
+ PANEL_DCS(0x35, 0xFF),
+ PANEL_DCS(0x36, 0xFF),
+ PANEL_DCS(0x37, 0xFF),
+ PANEL_DCS(0x38, 0xFF),
+ PANEL_DCS(0x39, 0xFF),
+ PANEL_DCS(0x3A, 0x05),
+ PANEL_DCS(0x3B, 0x00),
+ PANEL_DCS(0x3C, 0x00),
+ PANEL_DCS(0x3D, 0x00),
+ PANEL_DCS(0x3E, 0x0F),
+ PANEL_DCS(0x3F, 0xA4),
+ PANEL_DCS(0x40, 0x28),
+ PANEL_DCS(0x41, 0xFC),
+ PANEL_DCS(0x42, 0x01),
+ PANEL_DCS(0x43, 0x08),
+ PANEL_DCS(0x44, 0x05),
+ PANEL_DCS(0x45, 0xF0),
+ PANEL_DCS(0x46, 0x01),
+ PANEL_DCS(0x47, 0x02),
+ PANEL_DCS(0x48, 0x00),
+ PANEL_DCS(0x49, 0x58),
+ PANEL_DCS(0x4A, 0x00),
+ PANEL_DCS(0x4B, 0x05),
+ PANEL_DCS(0x4C, 0x03),
+ PANEL_DCS(0x4D, 0xD0),
+ PANEL_DCS(0x4E, 0x13),
+ PANEL_DCS(0x4F, 0xFF),
+ PANEL_DCS(0x50, 0x0A),
+ PANEL_DCS(0x51, 0x53),
+ PANEL_DCS(0x52, 0x26),
+ PANEL_DCS(0x53, 0x22),
+ PANEL_DCS(0x54, 0x09),
+ PANEL_DCS(0x55, 0x22),
+ PANEL_DCS(0x56, 0x00),
+ PANEL_DCS(0x57, 0x1C),
+ PANEL_DCS(0x58, 0x03),
+ PANEL_DCS(0x59, 0x3F),
+ PANEL_DCS(0x5A, 0x28),
+ PANEL_DCS(0x5B, 0x01),
+ PANEL_DCS(0x5C, 0xCC),
+ PANEL_DCS(0x5D, 0x21),
+ PANEL_DCS(0x5E, 0x04),
+ PANEL_DCS(0x5F, 0x13),
+ PANEL_DCS(0x60, 0x42),
+ PANEL_DCS(0x61, 0x08),
+ PANEL_DCS(0x62, 0x64),
+ PANEL_DCS(0x63, 0xEB),
+ PANEL_DCS(0x64, 0x10),
+ PANEL_DCS(0x65, 0xA8),
+ PANEL_DCS(0x66, 0x84),
+ PANEL_DCS(0x67, 0x8E),
+ PANEL_DCS(0x68, 0x29),
+ PANEL_DCS(0x69, 0x11),
+ PANEL_DCS(0x6A, 0x42),
+ PANEL_DCS(0x6B, 0x38),
+ PANEL_DCS(0x6C, 0x21),
+ PANEL_DCS(0x6D, 0x84),
+ PANEL_DCS(0x6E, 0x50),
+ PANEL_DCS(0x6F, 0xB6),
+ PANEL_DCS(0x70, 0x0E),
+ PANEL_DCS(0x71, 0xA1),
+ PANEL_DCS(0x72, 0xCE),
+ PANEL_DCS(0x73, 0xF8),
+ PANEL_DCS(0x74, 0xDA),
+ PANEL_DCS(0x75, 0x1A),
+ PANEL_DCS(0x76, 0x00),
+ PANEL_DCS(0x77, 0x00),
+ PANEL_DCS(0x78, 0x5F),
+ PANEL_DCS(0x79, 0xE0),
+ PANEL_DCS(0x7A, 0x01),
+ PANEL_DCS(0x7B, 0xFF),
+ PANEL_DCS(0x7C, 0xFF),
+ PANEL_DCS(0x7D, 0xFF),
+ PANEL_DCS(0x7E, 0xFF),
+ PANEL_DCS(0x7F, 0xFE),
+ PANEL_DCS(0xB1, 0x02),
+ PANEL_DCS(0x00, 0xFF),
+ PANEL_DCS(0x01, 0x01),
+ PANEL_DCS(0x02, 0x00),
+ PANEL_DCS(0x03, 0x00),
+ PANEL_DCS(0x04, 0x00),
+ PANEL_DCS(0x05, 0x00),
+ PANEL_DCS(0x06, 0x00),
+ PANEL_DCS(0x07, 0x00),
+ PANEL_DCS(0x08, 0xC0),
+ PANEL_DCS(0x09, 0x00),
+ PANEL_DCS(0x0A, 0x00),
+ PANEL_DCS(0x0B, 0x04),
+ PANEL_DCS(0x0C, 0xE6),
+ PANEL_DCS(0x0D, 0x0D),
+ PANEL_DCS(0x0F, 0x08),
+ PANEL_DCS(0x10, 0xE5),
+ PANEL_DCS(0x11, 0xA8),
+ PANEL_DCS(0x12, 0xEC),
+ PANEL_DCS(0x13, 0x54),
+ PANEL_DCS(0x14, 0x5A),
+ PANEL_DCS(0x15, 0xD5),
+ PANEL_DCS(0x16, 0x23),
+ PANEL_DCS(0x17, 0x11),
+ PANEL_DCS(0x18, 0x2F),
+ PANEL_DCS(0x19, 0x93),
+ PANEL_DCS(0x1A, 0xA6),
+ PANEL_DCS(0x1B, 0x0F),
+ PANEL_DCS(0x1C, 0xFF),
+ PANEL_DCS(0x1D, 0xFF),
+ PANEL_DCS(0x1E, 0xFF),
+ PANEL_DCS(0x1F, 0xFF),
+ PANEL_DCS(0x20, 0xFF),
+ PANEL_DCS(0x21, 0xFF),
+ PANEL_DCS(0x22, 0xFF),
+ PANEL_DCS(0x23, 0xFF),
+ PANEL_DCS(0x24, 0xFF),
+ PANEL_DCS(0x25, 0xFF),
+ PANEL_DCS(0x26, 0xFF),
+ PANEL_DCS(0x27, 0x1F),
+ PANEL_DCS(0x28, 0xC8),
+ PANEL_DCS(0x29, 0xFF),
+ PANEL_DCS(0x2A, 0xFF),
+ PANEL_DCS(0x2B, 0xFF),
+ PANEL_DCS(0x2C, 0x07),
+ PANEL_DCS(0x2D, 0x03),
+ PANEL_DCS(0x33, 0x09),
+ PANEL_DCS(0x35, 0x7F),
+ PANEL_DCS(0x36, 0x0C),
+ PANEL_DCS(0x38, 0x7F),
+ PANEL_DCS(0x3A, 0x80),
+ PANEL_DCS(0x3B, 0x55),
+ PANEL_DCS(0x3C, 0xE2),
+ PANEL_DCS(0x3D, 0x32),
+ PANEL_DCS(0x3E, 0x00),
+ PANEL_DCS(0x3F, 0x58),
+ PANEL_DCS(0x40, 0x06),
+ PANEL_DCS(0x41, 0x80),
+ PANEL_DCS(0x42, 0xCB),
+ PANEL_DCS(0x43, 0x2C),
+ PANEL_DCS(0x44, 0x61),
+ PANEL_DCS(0x45, 0x39),
+ PANEL_DCS(0x46, 0x00),
+ PANEL_DCS(0x47, 0x00),
+ PANEL_DCS(0x48, 0x8B),
+ PANEL_DCS(0x49, 0xD2),
+ PANEL_DCS(0x4A, 0x01),
+ PANEL_DCS(0x4B, 0x00),
+ PANEL_DCS(0x4C, 0x10),
+ PANEL_DCS(0x4D, 0xC0),
+ PANEL_DCS(0x4E, 0x0F),
+ PANEL_DCS(0x4F, 0xF1),
+ PANEL_DCS(0x50, 0x78),
+ PANEL_DCS(0x51, 0x7A),
+ PANEL_DCS(0x52, 0x34),
+ PANEL_DCS(0x53, 0x99),
+ PANEL_DCS(0x54, 0xA2),
+ PANEL_DCS(0x55, 0x03),
+ PANEL_DCS(0x56, 0x6C),
+ PANEL_DCS(0x57, 0x1A),
+ PANEL_DCS(0x58, 0x05),
+ PANEL_DCS(0x59, 0x30),
+ PANEL_DCS(0x5A, 0x1E),
+ PANEL_DCS(0x5B, 0x8F),
+ PANEL_DCS(0x5C, 0xC7),
+ PANEL_DCS(0x5D, 0xE3),
+ PANEL_DCS(0x5E, 0xF1),
+ PANEL_DCS(0x5F, 0x78),
+ PANEL_DCS(0x60, 0x3C),
+ PANEL_DCS(0x61, 0x36),
+ PANEL_DCS(0x62, 0x1E),
+ PANEL_DCS(0x63, 0x1B),
+ PANEL_DCS(0x64, 0x8F),
+ PANEL_DCS(0x65, 0xC7),
+ PANEL_DCS(0x66, 0xE3),
+ PANEL_DCS(0x67, 0x31),
+ PANEL_DCS(0x68, 0x14),
+ PANEL_DCS(0x69, 0x89),
+ PANEL_DCS(0x6A, 0x70),
+ PANEL_DCS(0x6B, 0x8C),
+ PANEL_DCS(0x6C, 0x8D),
+ PANEL_DCS(0x6D, 0x8D),
+ PANEL_DCS(0x6E, 0x8D),
+ PANEL_DCS(0x6F, 0x8D),
+ PANEL_DCS(0x70, 0xC7),
+ PANEL_DCS(0x71, 0xE3),
+ PANEL_DCS(0x72, 0xF1),
+ PANEL_DCS(0x73, 0xD8),
+ PANEL_DCS(0x74, 0xD8),
+ PANEL_DCS(0x75, 0xD8),
+ PANEL_DCS(0x76, 0x18),
+ PANEL_DCS(0x77, 0x00),
+ PANEL_DCS(0x78, 0x00),
+ PANEL_DCS(0x79, 0x00),
+ PANEL_DCS(0x7A, 0xC6),
+ PANEL_DCS(0x7B, 0xC6),
+ PANEL_DCS(0x7C, 0xC6),
+ PANEL_DCS(0x7D, 0xC6),
+ PANEL_DCS(0x7E, 0xC6),
+ PANEL_DCS(0x7F, 0xE3),
+ PANEL_DCS(0x0B, 0x04),
+ PANEL_DCS(0xB1, 0x03),
+ PANEL_DCS(0x2C, 0x2C),
+ PANEL_DCS(0xB1, 0x00),
+ PANEL_DCS(0x89, 0x03),
+ PANEL_DCS(0x11),
+ PANEL_DELAY(0x78),
+ PANEL_DCS(0x29),
+ PANEL_DELAY(0x14),
+ PANEL_END,
+ },
+};
diff --git a/src/device/mipi/panel-STA_2081101QFH032011_53G.c b/src/device/mipi/panel-STA_2081101QFH032011_53G.c
new file mode 100644
index 0000000..87e53ce
--- /dev/null
+++ b/src/device/mipi/panel-STA_2081101QFH032011_53G.c
@@ -0,0 +1,118 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <device/mipi_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 = 165731,
+ .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 = {
+ PANEL_DCS(0xB0, 0x01),
+ PANEL_DCS(0xC3, 0x4F),
+ PANEL_DCS(0xC4, 0x40),
+ PANEL_DCS(0xC5, 0x40),
+ PANEL_DCS(0xC6, 0x40),
+ PANEL_DCS(0xC7, 0x40),
+ PANEL_DCS(0xC8, 0x4D),
+ PANEL_DCS(0xC9, 0x52),
+ PANEL_DCS(0xCA, 0x51),
+ PANEL_DCS(0xCD, 0x5D),
+ PANEL_DCS(0xCE, 0x5B),
+ PANEL_DCS(0xCF, 0x4B),
+ PANEL_DCS(0xD0, 0x49),
+ PANEL_DCS(0xD1, 0x47),
+ PANEL_DCS(0xD2, 0x45),
+ PANEL_DCS(0xD3, 0x41),
+ PANEL_DCS(0xD7, 0x50),
+ PANEL_DCS(0xD8, 0x40),
+ PANEL_DCS(0xD9, 0x40),
+ PANEL_DCS(0xDA, 0x40),
+ PANEL_DCS(0xDB, 0x40),
+ PANEL_DCS(0xDC, 0x4E),
+ PANEL_DCS(0xDD, 0x52),
+ PANEL_DCS(0xDE, 0x51),
+ PANEL_DCS(0xE1, 0x5E),
+ PANEL_DCS(0xE2, 0x5C),
+ PANEL_DCS(0xE3, 0x4C),
+ PANEL_DCS(0xE4, 0x4A),
+ PANEL_DCS(0xE5, 0x48),
+ PANEL_DCS(0xE6, 0x46),
+ PANEL_DCS(0xE7, 0x42),
+ PANEL_DCS(0xB0, 0x03),
+ PANEL_DCS(0xBE, 0x03),
+ PANEL_DCS(0xCC, 0x44),
+ PANEL_DCS(0xC8, 0x07),
+ PANEL_DCS(0xC9, 0x05),
+ PANEL_DCS(0xCA, 0x42),
+ PANEL_DCS(0xCD, 0x3E),
+ PANEL_DCS(0xCF, 0x60),
+ PANEL_DCS(0xD2, 0x04),
+ PANEL_DCS(0xD3, 0x04),
+ PANEL_DCS(0xD4, 0x01),
+ PANEL_DCS(0xD5, 0x00),
+ PANEL_DCS(0xD6, 0x03),
+ PANEL_DCS(0xD7, 0x04),
+ PANEL_DCS(0xD9, 0x01),
+ PANEL_DCS(0xDB, 0x01),
+ PANEL_DCS(0xE4, 0xF0),
+ PANEL_DCS(0xE5, 0x0A),
+ PANEL_DCS(0xB0, 0x00),
+ PANEL_DCS(0xCC, 0x08),
+ PANEL_DCS(0xC2, 0x08),
+ PANEL_DCS(0xC4, 0x10),
+ PANEL_DCS(0xB0, 0x02),
+ PANEL_DCS(0xC0, 0x00),
+ PANEL_DCS(0xC1, 0x0A),
+ PANEL_DCS(0xC2, 0x20),
+ PANEL_DCS(0xC3, 0x24),
+ PANEL_DCS(0xC4, 0x23),
+ PANEL_DCS(0xC5, 0x29),
+ PANEL_DCS(0xC6, 0x23),
+ PANEL_DCS(0xC7, 0x1C),
+ PANEL_DCS(0xC8, 0x19),
+ PANEL_DCS(0xC9, 0x17),
+ PANEL_DCS(0xCA, 0x17),
+ PANEL_DCS(0xCB, 0x18),
+ PANEL_DCS(0xCC, 0x1A),
+ PANEL_DCS(0xCD, 0x1E),
+ PANEL_DCS(0xCE, 0x20),
+ PANEL_DCS(0xCF, 0x23),
+ PANEL_DCS(0xD0, 0x07),
+ PANEL_DCS(0xD1, 0x00),
+ PANEL_DCS(0xD2, 0x00),
+ PANEL_DCS(0xD3, 0x0A),
+ PANEL_DCS(0xD4, 0x13),
+ PANEL_DCS(0xD5, 0x1C),
+ PANEL_DCS(0xD6, 0x1A),
+ PANEL_DCS(0xD7, 0x13),
+ PANEL_DCS(0xD8, 0x17),
+ PANEL_DCS(0xD9, 0x1C),
+ PANEL_DCS(0xDA, 0x19),
+ PANEL_DCS(0xDB, 0x17),
+ PANEL_DCS(0xDC, 0x17),
+ PANEL_DCS(0xDD, 0x18),
+ PANEL_DCS(0xDE, 0x1A),
+ PANEL_DCS(0xDF, 0x1E),
+ PANEL_DCS(0xE0, 0x20),
+ PANEL_DCS(0xE1, 0x23),
+ PANEL_DCS(0xE2, 0x07),
+ PANEL_DCS(0X11),
+ PANEL_DELAY(120),
+ PANEL_DCS(0X29),
+ PANEL_DELAY(50),
+ PANEL_END,
+ },
+};
diff --git a/src/device/mipi/panel.c b/src/device/mipi/panel.c
new file mode 100644
index 0000000..f2bf340
--- /dev/null
+++ b/src/device/mipi/panel.c
@@ -0,0 +1,48 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <console/console.h>
+#include <delay.h>
+#include <device/mipi_panel.h>
+
+cb_err_t mipi_panel_parse_init_commands(const void *buf, mipi_cmd_func_t cmd_func)
+{
+ const struct panel_init_command *init = buf;
+
+ /*
+ * The given commands should be in a buffer containing a packed array of
+ * panel_init_command and each element may be in variable size so we have
+ * to parse and scan.
+ */
+
+ for (; init->cmd != PANEL_CMD_END; init = (const void *)buf) {
+ /*
+ * For some commands like DELAY, the init->len should not be
+ * counted for buf.
+ */
+ buf += sizeof(*init);
+
+ u32 cmd = init->cmd, len = init->len;
+
+ switch (cmd) {
+ case PANEL_CMD_DELAY:
+ mdelay(len);
+ break;
+
+ case PANEL_CMD_DCS:
+ case PANEL_CMD_GENERIC:
+ buf += len;
+
+ cb_err_t ret = cmd_func(cmd, init->data, len);
+ if (ret != CB_SUCCESS)
+ return ret;
+ break;
+
+ default:
+ printk(BIOS_ERR, "%s: Unknown command code: %d, "
+ "abort panel initialization.\n", __func__, cmd);
+ return CB_ERR;
+ }
+ }
+
+ return CB_SUCCESS;
+}
diff --git a/src/include/device/mipi_panel.h b/src/include/device/mipi_panel.h
new file mode 100644
index 0000000..95fcb69
--- /dev/null
+++ b/src/include/device/mipi_panel.h
@@ -0,0 +1,56 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#ifndef __DEVICE_MIPI_PANEL_H__
+#define __DEVICE_MIPI_PANEL_H__
+
+#include <edid.h>
+#include <types.h>
+
+/* Definitions for cmd in panel_init_command */
+enum panel_init_cmd {
+ PANEL_CMD_END = 0,
+ PANEL_CMD_DELAY = 1,
+ PANEL_CMD_GENERIC = 2,
+ PANEL_CMD_DCS = 3,
+};
+
+struct panel_init_command {
+ u8 cmd;
+ u8 len;
+ u8 data[];
+};
+
+/*
+ * The data to be serialized and put into CBFS.
+ * Note some fields, for example edid.mode.name, were actually pointers and
+ * cannot be really serialized.
+ */
+struct panel_serializable_data {
+ struct edid edid; /* edid info of this panel */
+ enum lb_fb_orientation orientation; /* Panel orientation */
+ u8 init[]; /* A packed array of panel_init_command */
+};
+
+typedef cb_err_t (*mipi_cmd_func_t)(enum panel_init_cmd cmd, const u8 *data, u8 len);
+
+/* Parse a command array and call cmd_func() for each entry. Delays get handled internally. */
+cb_err_t mipi_panel_parse_init_commands(const void *buf, mipi_cmd_func_t cmd_func);
+
+#define PANEL_DCS(...) \
+ PANEL_CMD_DCS, \
+ sizeof((u8[]){__VA_ARGS__}), \
+ __VA_ARGS__
+
+#define PANEL_GENERIC(...) \
+ PANEL_CMD_GENERIC, \
+ sizeof((u8[]){__VA_ARGS__}), \
+ __VA_ARGS__
+
+#define PANEL_DELAY(delay) \
+ PANEL_CMD_DELAY, \
+ delay
+
+#define PANEL_END \
+ PANEL_CMD_END
+
+#endif /* __DEVICE_MIPI_PANEL_H__ */
diff --git a/src/mainboard/google/kukui/Kconfig b/src/mainboard/google/kukui/Kconfig
index 39e6414..4c44c56 100644
--- a/src/mainboard/google/kukui/Kconfig
+++ b/src/mainboard/google/kukui/Kconfig
@@ -37,6 +37,18 @@
select MAINBOARD_FORCE_NATIVE_VGA_INIT
select HAVE_LINEAR_FRAMEBUFFER
select MT8183_DRAM_EMCP if BOARD_GOOGLE_KRANE || BOARD_GOOGLE_KAKADU || BOARD_GOOGLE_KATSU
+ select MIPI_PANEL_AUO_KD101N80_45NA if BOARD_GOOGLE_KRANE
+ select MIPI_PANEL_BOE_TV101WUM_NL6 if BOARD_GOOGLE_KRANE
+ select MIPI_PANEL_AUO_B101UAN08_3 if BOARD_GOOGLE_KODAMA
+ select MIPI_PANEL_BOE_TV101WUM_N53 if BOARD_GOOGLE_KODAMA
+ select MIPI_PANEL_BOE_TV105WUM_NW0 if BOARD_GOOGLE_KAKADU
+ select MIPI_PANEL_CMN_P097PFG_SSD2858 if BOARD_GOOGLE_KUKUI
+ select MIPI_PANEL_AUO_NT51021D8P if BOARD_GOOGLE_FLAPJACK
+ select MIPI_PANEL_BOE_TV080WUM_NG0 if BOARD_GOOGLE_FLAPJACK
+ select MIPI_PANEL_BOE_TV101WUM_NG0 if BOARD_GOOGLE_FLAPJACK
+ select MIPI_PANEL_INX_OTA7290D10P if BOARD_GOOGLE_FLAPJACK
+ select MIPI_PANEL_STA_2081101QFH032011_53G if BOARD_GOOGLE_KATSU
+ select MIPI_PANEL_BOE_TV105WUM_NW0 if BOARD_GOOGLE_KATSU
config MAINBOARD_DIR
default "google/kukui"
diff --git a/src/mainboard/google/kukui/panel.h b/src/mainboard/google/kukui/panel.h
index 1749565..e434d9f 100644
--- a/src/mainboard/google/kukui/panel.h
+++ b/src/mainboard/google/kukui/panel.h
@@ -3,20 +3,9 @@
#ifndef __MAINBOARD_GOOGLE_KUKUI_PANEL_H__
#define __MAINBOARD_GOOGLE_KUKUI_PANEL_H__
-#include <edid.h>
+#include <device/mipi_panel.h>
#include <soc/dsi.h>
-/*
- * The data that to be serialized and put into CBFS.
- * Note some fields, for example edid.mode.name, were actually pointers and
- * cannot be really serialized.
- */
-struct panel_serializable_data {
- struct edid edid; /* edid info of this panel */
- enum lb_fb_orientation orientation; /* Panel orientation */
- u8 init[]; /* A packed array of lcm_init_command */
-};
-
struct panel_description {
const char *name; /* Panel name for constructing CBFS file name */
struct panel_serializable_data *s;
@@ -30,23 +19,6 @@
/* Loads panel serializable data from CBFS. */
struct panel_description *get_panel_from_cbfs(struct panel_description *desc);
-#define INIT_DCS_CMD(...) \
- LCM_DCS_CMD, \
- sizeof((u8[]){__VA_ARGS__}), \
- __VA_ARGS__
-
-#define INIT_GENERIC_CMD(...) \
- LCM_GENERIC_CMD, \
- sizeof((u8[]){__VA_ARGS__}), \
- __VA_ARGS__
-
-#define INIT_DELAY_CMD(delay) \
- LCM_DELAY_CMD, \
- delay
-
-#define INIT_END_CMD \
- LCM_END_CMD
-
/* GPIO names */
#define GPIO_LCM_RST_1V8 GPIO(LCM_RST) /* 45 */
#define GPIO_MIPIBRDG_PWRDN_L_1V8 GPIO(LCM_RST) /* 45 */
diff --git a/src/mainboard/google/kukui/panel_anx7625.c b/src/mainboard/google/kukui/panel_anx7625.c
index 034154d..fb3c9b7 100644
--- a/src/mainboard/google/kukui/panel_anx7625.c
+++ b/src/mainboard/google/kukui/panel_anx7625.c
@@ -14,7 +14,7 @@
static struct panel_serializable_data anx7625_data = {
.orientation = LB_FB_ORIENTATION_NORMAL,
- .init = { INIT_END_CMD },
+ .init = { PANEL_END },
};
static void dummy_power_on(void)
diff --git a/src/mainboard/google/kukui/panel_params/Makefile.inc b/src/mainboard/google/kukui/panel_params/Makefile.inc
deleted file mode 100644
index 5d84f96..0000000
--- a/src/mainboard/google/kukui/panel_params/Makefile.inc
+++ /dev/null
@@ -1,20 +0,0 @@
-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_KAKADU) += panel-BOE_TV105WUM_NW0
-panel-params-$(CONFIG_BOARD_GOOGLE_KUKUI) += panel-CMN_P097PFG_SSD2858
-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)) \
- $(eval $(params)-file := $(params).c:struct) \
- $(eval $(params)-type := struct) \
- $(eval $(params)-compression := $(CBFS_COMPRESS_FLAG)) \
-)
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
deleted file mode 100644
index 5776e4e..0000000
--- a/src/mainboard/google/kukui/panel_params/panel-AUO_B101UAN08_3.c
+++ /dev/null
@@ -1,68 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#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,
- },
-};
diff --git a/src/mainboard/google/kukui/panel_params/panel-BOE_TV080WUM_NG0.c b/src/mainboard/google/kukui/panel_params/panel-BOE_TV080WUM_NG0.c
deleted file mode 100644
index 9e8a504..0000000
--- a/src/mainboard/google/kukui/panel_params/panel-BOE_TV080WUM_NG0.c
+++ /dev/null
@@ -1,337 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#include "../panel.h"
-
-struct panel_serializable_data BOE_TV080WUM_NG0 = {
- .edid = {
- .ascii_string = "TV080WUM-NG0",
- .manufacturer_name = "BOE",
- .panel_bits_per_color = 8,
- .panel_bits_per_pixel = 24,
- .mode = {
- .pixel_clock = 159420,
- .lvds_dual_channel = 0,
- .refresh = 60,
- .ha = 1200, .hbl = 164, .hso = 80, .hspw = 24,
- .va = 1920, .vbl = 28, .vso = 10, .vspw = 4,
- .phsync = '-', .pvsync = '-',
- .x_mm = 107, .y_mm = 132,
- },
- },
- .init = {
- INIT_DCS_CMD(0x10),
- INIT_DELAY_CMD(0x22),
- 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(0xB2, 0x50),
- INIT_DCS_CMD(0xB6, 0x03),
- INIT_DCS_CMD(0xBA, 0x8B),
- INIT_DCS_CMD(0xBF, 0x15),
- 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, 0x04),
- INIT_DCS_CMD(0xD3, 0x04),
- INIT_DCS_CMD(0xE6, 0x03),
- INIT_DCS_CMD(0xE7, 0x03),
- INIT_DCS_CMD(0xC4, 0x08),
- INIT_DCS_CMD(0xC5, 0x08),
- INIT_DCS_CMD(0xD8, 0x07),
- INIT_DCS_CMD(0xD9, 0x07),
- INIT_DCS_CMD(0xC2, 0x06),
- INIT_DCS_CMD(0xC3, 0x06),
- INIT_DCS_CMD(0xD6, 0x05),
- INIT_DCS_CMD(0xD7, 0x05),
- INIT_DCS_CMD(0xC0, 0x0C),
- INIT_DCS_CMD(0xC1, 0x0C),
- INIT_DCS_CMD(0xD4, 0x0B),
- INIT_DCS_CMD(0xD5, 0x0B),
- INIT_DCS_CMD(0xCA, 0x0A),
- INIT_DCS_CMD(0xCB, 0x0A),
- INIT_DCS_CMD(0xDE, 0x09),
- INIT_DCS_CMD(0xDF, 0x09),
- INIT_DCS_CMD(0xC6, 0x26),
- INIT_DCS_CMD(0xC7, 0x26),
- INIT_DCS_CMD(0xCE, 0x00),
- INIT_DCS_CMD(0xCF, 0x00),
- INIT_DCS_CMD(0xDA, 0x26),
- INIT_DCS_CMD(0xDB, 0x26),
- INIT_DCS_CMD(0xE2, 0x00),
- INIT_DCS_CMD(0xE3, 0x00),
- INIT_DCS_CMD(0xB0, 0x02),
- INIT_DCS_CMD(0xC0, 0x00),
- INIT_DCS_CMD(0xC1, 0x07),
- INIT_DCS_CMD(0xC2, 0x0D),
- INIT_DCS_CMD(0xC3, 0x18),
- INIT_DCS_CMD(0xC4, 0x27),
- INIT_DCS_CMD(0xC5, 0x28),
- INIT_DCS_CMD(0xC6, 0x30),
- INIT_DCS_CMD(0xC7, 0x2E),
- INIT_DCS_CMD(0xC8, 0x2F),
- INIT_DCS_CMD(0xC9, 0x1A),
- INIT_DCS_CMD(0xCA, 0x20),
- INIT_DCS_CMD(0xCB, 0x29),
- INIT_DCS_CMD(0xCC, 0x26),
- INIT_DCS_CMD(0xCD, 0x32),
- INIT_DCS_CMD(0xCE, 0x33),
- INIT_DCS_CMD(0xCF, 0x31),
- INIT_DCS_CMD(0xD0, 0x06),
- INIT_DCS_CMD(0xD2, 0x00),
- INIT_DCS_CMD(0xD3, 0x07),
- INIT_DCS_CMD(0xD4, 0x12),
- INIT_DCS_CMD(0xD5, 0x26),
- INIT_DCS_CMD(0xD6, 0x3D),
- INIT_DCS_CMD(0xD7, 0x3F),
- INIT_DCS_CMD(0xD8, 0x3F),
- INIT_DCS_CMD(0xD9, 0x3F),
- INIT_DCS_CMD(0xDA, 0x3F),
- INIT_DCS_CMD(0xDB, 0x3F),
- INIT_DCS_CMD(0xDC, 0x3F),
- INIT_DCS_CMD(0xDD, 0x3F),
- INIT_DCS_CMD(0xDE, 0x3F),
- INIT_DCS_CMD(0xDF, 0x3A),
- INIT_DCS_CMD(0xE0, 0x37),
- INIT_DCS_CMD(0xE1, 0x35),
- INIT_DCS_CMD(0xE2, 0x07),
- INIT_DCS_CMD(0xB0, 0x03),
- INIT_DCS_CMD(0xC8, 0x0B),
- INIT_DCS_CMD(0xC9, 0x07),
- INIT_DCS_CMD(0xC3, 0x00),
- INIT_DCS_CMD(0xE7, 0x00),
- INIT_DCS_CMD(0xC5, 0x2A),
- INIT_DCS_CMD(0xDE, 0x2A),
- INIT_DCS_CMD(0xCA, 0x43),
- INIT_DCS_CMD(0xC9, 0x07),
- INIT_DCS_CMD(0xE4, 0xC0),
- INIT_DCS_CMD(0xE5, 0x0D),
- INIT_DCS_CMD(0xCB, 0x00),
- INIT_DCS_CMD(0xB0, 0x06),
- INIT_DCS_CMD(0xB8, 0xA5),
- INIT_DCS_CMD(0xC0, 0xA5),
- INIT_DCS_CMD(0xC7, 0x0F),
- INIT_DCS_CMD(0xD5, 0x32),
- INIT_DCS_CMD(0xB8, 0x00),
- INIT_DCS_CMD(0xC0, 0x00),
- INIT_DCS_CMD(0xBC, 0x00),
- INIT_DCS_CMD(0xB0, 0x07),
- INIT_DCS_CMD(0xB1, 0x00),
- INIT_DCS_CMD(0xB2, 0x09),
- INIT_DCS_CMD(0xB3, 0x19),
- INIT_DCS_CMD(0xB4, 0x2F),
- INIT_DCS_CMD(0xB5, 0x44),
- INIT_DCS_CMD(0xB6, 0x52),
- INIT_DCS_CMD(0xB7, 0x6A),
- INIT_DCS_CMD(0xB8, 0x8A),
- INIT_DCS_CMD(0xB9, 0xCA),
- INIT_DCS_CMD(0xBA, 0x0C),
- INIT_DCS_CMD(0xBB, 0x87),
- INIT_DELAY_CMD(0x05),
- INIT_DCS_CMD(0xBC, 0x06),
- INIT_DCS_CMD(0xBD, 0x0A),
- INIT_DCS_CMD(0xBE, 0x9B),
- INIT_DCS_CMD(0xBF, 0x0C),
- INIT_DCS_CMD(0xC0, 0x3D),
- INIT_DCS_CMD(0xC1, 0x71),
- INIT_DCS_CMD(0xC2, 0x90),
- INIT_DCS_CMD(0xC3, 0xA0),
- INIT_DCS_CMD(0xC4, 0xA8),
- INIT_DCS_CMD(0xC5, 0xB1),
- INIT_DCS_CMD(0xC6, 0xBB),
- INIT_DCS_CMD(0xC7, 0xC0),
- INIT_DCS_CMD(0xC8, 0xC4),
- 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, 0x08),
- INIT_DCS_CMD(0xB3, 0x19),
- INIT_DCS_CMD(0xB4, 0x31),
- INIT_DCS_CMD(0xB5, 0x46),
- INIT_DCS_CMD(0xB6, 0x55),
- INIT_DCS_CMD(0xB7, 0x6E),
- INIT_DCS_CMD(0xB8, 0x92),
- INIT_DCS_CMD(0xB9, 0xD4),
- INIT_DCS_CMD(0xBA, 0x1B),
- INIT_DCS_CMD(0xBB, 0x9B),
- INIT_DELAY_CMD(0x05),
- INIT_DCS_CMD(0xBC, 0x28),
- INIT_DCS_CMD(0xBD, 0x2D),
- INIT_DCS_CMD(0xBE, 0xC3),
- INIT_DCS_CMD(0xBF, 0x2F),
- INIT_DCS_CMD(0xC0, 0x62),
- INIT_DCS_CMD(0xC1, 0x99),
- INIT_DCS_CMD(0xC2, 0xAB),
- INIT_DCS_CMD(0xC3, 0xBF),
- INIT_DCS_CMD(0xC4, 0xCF),
- INIT_DCS_CMD(0xC5, 0xDF),
- INIT_DCS_CMD(0xC6, 0xF0),
- INIT_DCS_CMD(0xC7, 0xF9),
- 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, 0x09),
- INIT_DCS_CMD(0xB1, 0x04),
- INIT_DCS_CMD(0xB2, 0x05),
- INIT_DCS_CMD(0xB3, 0x17),
- INIT_DCS_CMD(0xB4, 0x2E),
- INIT_DCS_CMD(0xB5, 0x42),
- INIT_DCS_CMD(0xB6, 0x51),
- INIT_DCS_CMD(0xB7, 0x69),
- INIT_DCS_CMD(0xB8, 0x88),
- INIT_DCS_CMD(0xB9, 0xC9),
- INIT_DCS_CMD(0xBA, 0x0C),
- INIT_DCS_CMD(0xBB, 0x86),
- INIT_DELAY_CMD(0x05),
- INIT_DCS_CMD(0xBC, 0x03),
- INIT_DCS_CMD(0xBD, 0x08),
- INIT_DCS_CMD(0xBE, 0x95),
- INIT_DCS_CMD(0xBF, 0x05),
- INIT_DCS_CMD(0xC0, 0x35),
- INIT_DCS_CMD(0xC1, 0x62),
- INIT_DCS_CMD(0xC2, 0x81),
- INIT_DCS_CMD(0xC3, 0x96),
- INIT_DCS_CMD(0xC4, 0x9E),
- INIT_DCS_CMD(0xC5, 0xA5),
- INIT_DCS_CMD(0xC6, 0xAD),
- INIT_DCS_CMD(0xC7, 0xB1),
- INIT_DCS_CMD(0xC8, 0xB4),
- 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, 0x0A),
- INIT_DCS_CMD(0xB1, 0x00),
- INIT_DCS_CMD(0xB2, 0x09),
- INIT_DCS_CMD(0xB3, 0x19),
- INIT_DCS_CMD(0xB4, 0x2F),
- INIT_DCS_CMD(0xB5, 0x44),
- INIT_DCS_CMD(0xB6, 0x52),
- INIT_DCS_CMD(0xB7, 0x6A),
- INIT_DCS_CMD(0xB8, 0x8A),
- INIT_DCS_CMD(0xB9, 0xCA),
- INIT_DCS_CMD(0xBA, 0x0C),
- INIT_DCS_CMD(0xBB, 0x87),
- INIT_DELAY_CMD(0x05),
- INIT_DCS_CMD(0xBC, 0x06),
- INIT_DCS_CMD(0xBD, 0x0A),
- INIT_DCS_CMD(0xBE, 0x9B),
- INIT_DCS_CMD(0xBF, 0x0C),
- INIT_DCS_CMD(0xC0, 0x3D),
- INIT_DCS_CMD(0xC1, 0x71),
- INIT_DCS_CMD(0xC2, 0x90),
- INIT_DCS_CMD(0xC3, 0xA0),
- INIT_DCS_CMD(0xC4, 0xA8),
- INIT_DCS_CMD(0xC5, 0xB1),
- INIT_DCS_CMD(0xC6, 0xBB),
- INIT_DCS_CMD(0xC7, 0xC0),
- INIT_DCS_CMD(0xC8, 0xC4),
- 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, 0x0B),
- INIT_DCS_CMD(0xB1, 0x04),
- INIT_DCS_CMD(0xB2, 0x08),
- INIT_DCS_CMD(0xB3, 0x19),
- INIT_DCS_CMD(0xB4, 0x31),
- INIT_DCS_CMD(0xB5, 0x46),
- INIT_DCS_CMD(0xB6, 0x55),
- INIT_DCS_CMD(0xB7, 0x6E),
- INIT_DCS_CMD(0xB8, 0x92),
- INIT_DCS_CMD(0xB9, 0xD4),
- INIT_DCS_CMD(0xBA, 0x1B),
- INIT_DCS_CMD(0xBB, 0x9B),
- INIT_DELAY_CMD(0x05),
- INIT_DCS_CMD(0xBC, 0x28),
- INIT_DCS_CMD(0xBD, 0x2D),
- INIT_DCS_CMD(0xBE, 0xC3),
- INIT_DCS_CMD(0xBF, 0x2F),
- INIT_DCS_CMD(0xC0, 0x62),
- INIT_DCS_CMD(0xC1, 0x99),
- INIT_DCS_CMD(0xC2, 0xAB),
- INIT_DCS_CMD(0xC3, 0xBF),
- INIT_DCS_CMD(0xC4, 0xCF),
- INIT_DCS_CMD(0xC5, 0xDF),
- INIT_DCS_CMD(0xC6, 0xF0),
- INIT_DCS_CMD(0xC7, 0xF9),
- 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, 0x0C),
- INIT_DCS_CMD(0xB1, 0x04),
- INIT_DCS_CMD(0xB2, 0x05),
- INIT_DCS_CMD(0xB3, 0x17),
- INIT_DCS_CMD(0xB4, 0x2E),
- INIT_DCS_CMD(0xB5, 0x42),
- INIT_DCS_CMD(0xB6, 0x51),
- INIT_DCS_CMD(0xB7, 0x69),
- INIT_DCS_CMD(0xB8, 0x88),
- INIT_DCS_CMD(0xB9, 0xC9),
- INIT_DCS_CMD(0xBA, 0x0C),
- INIT_DCS_CMD(0xBB, 0x86),
- INIT_DELAY_CMD(0x05),
- INIT_DCS_CMD(0xBC, 0x03),
- INIT_DCS_CMD(0xBD, 0x08),
- INIT_DCS_CMD(0xBE, 0x95),
- INIT_DCS_CMD(0xBF, 0x05),
- INIT_DCS_CMD(0xC0, 0x35),
- INIT_DCS_CMD(0xC1, 0x62),
- INIT_DCS_CMD(0xC2, 0x81),
- INIT_DCS_CMD(0xC3, 0x96),
- INIT_DCS_CMD(0xC4, 0x9E),
- INIT_DCS_CMD(0xC5, 0xA5),
- INIT_DCS_CMD(0xC6, 0xAD),
- INIT_DCS_CMD(0xC7, 0xB1),
- INIT_DCS_CMD(0xC8, 0xB4),
- 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_DELAY_CMD(0x64),
- INIT_DCS_CMD(0xB0, 0x00),
- INIT_DCS_CMD(0xB3, 0x08),
- INIT_DCS_CMD(0xB0, 0x04),
- INIT_DCS_CMD(0xB8, 0x68),
- INIT_DELAY_CMD(0x0A),
- INIT_DCS_CMD(0x11),
- INIT_DELAY_CMD(0x78),
- INIT_DCS_CMD(0x29),
- INIT_DELAY_CMD(0x14),
- INIT_END_CMD,
- },
-};
diff --git a/src/mainboard/google/kukui/panel_params/panel-BOE_TV101WUM_N53.c b/src/mainboard/google/kukui/panel_params/panel-BOE_TV101WUM_N53.c
deleted file mode 100644
index 4c941d0..0000000
--- a/src/mainboard/google/kukui/panel_params/panel-BOE_TV101WUM_N53.c
+++ /dev/null
@@ -1,317 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#include "../panel.h"
-
-struct panel_serializable_data BOE_TV101WUM_N53 = {
- .edid = {
- .ascii_string = "TV101WUM-N53",
- .manufacturer_name = "BOE",
- .panel_bits_per_color = 8,
- .panel_bits_per_pixel = 24,
- .mode = {
- .pixel_clock = 159916,
- .lvds_dual_channel = 0,
- .refresh = 60,
- .ha = 1200, .hbl = 164, .hso = 80, .hspw = 24,
- .va = 1920, .vbl = 34, .vso = 20, .vspw = 4,
- .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(0xCD, 0x2E),
- INIT_DCS_CMD(0xCE, 0x2F),
- INIT_DCS_CMD(0xCF, 0x2F),
- INIT_DCS_CMD(0xD0, 0x07),
- INIT_DCS_CMD(0xD2, 0x00),
- INIT_DCS_CMD(0xD3, 0x0D),
- INIT_DCS_CMD(0xD4, 0x17),
- INIT_DCS_CMD(0xD5, 0x26),
- INIT_DCS_CMD(0xD6, 0x31),
- INIT_DCS_CMD(0xD7, 0x3F),
- INIT_DCS_CMD(0xD8, 0x3F),
- INIT_DCS_CMD(0xD9, 0x3F),
- INIT_DCS_CMD(0xDA, 0x3F),
- INIT_DCS_CMD(0xDB, 0x37),
- INIT_DCS_CMD(0xDC, 0x37),
- INIT_DCS_CMD(0xDD, 0x37),
- INIT_DCS_CMD(0xDE, 0x39),
- INIT_DCS_CMD(0xDF, 0x2E),
- INIT_DCS_CMD(0xE0, 0x2F),
- INIT_DCS_CMD(0xE1, 0x2F),
- INIT_DCS_CMD(0xE2, 0x07),
- INIT_DCS_CMD(0xB0, 0x03),
- INIT_DCS_CMD(0xC8, 0x0B),
- INIT_DCS_CMD(0xC9, 0x07),
- INIT_DCS_CMD(0xC3, 0x00),
- INIT_DCS_CMD(0xE7, 0x00),
- INIT_DCS_CMD(0xC5, 0x2A),
- INIT_DCS_CMD(0xDE, 0x2A),
- INIT_DCS_CMD(0xCA, 0x43),
- INIT_DCS_CMD(0xC9, 0x07),
- INIT_DCS_CMD(0xE4, 0xC0),
- INIT_DCS_CMD(0xE5, 0x0D),
- INIT_DCS_CMD(0xCB, 0x00),
- INIT_DCS_CMD(0xB0, 0x06),
- INIT_DCS_CMD(0xB8, 0xA5),
- INIT_DCS_CMD(0xC0, 0xA5),
- INIT_DCS_CMD(0xC7, 0x0F),
- INIT_DCS_CMD(0xD5, 0x32),
- INIT_DCS_CMD(0xB8, 0x00),
- INIT_DCS_CMD(0xC0, 0x00),
- INIT_DCS_CMD(0xBC, 0x00),
- 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),
- INIT_DCS_CMD(0xB9, 0xDC),
- INIT_DCS_CMD(0xBA, 0x23),
- INIT_DCS_CMD(0xBB, 0xA6),
- INIT_DCS_CMD(0xBC, 0x2C),
- INIT_DCS_CMD(0xBD, 0x30),
- INIT_DCS_CMD(0xBE, 0xAA),
- INIT_DCS_CMD(0xBF, 0x26),
- INIT_DCS_CMD(0xC0, 0x62),
- INIT_DCS_CMD(0xC1, 0x9B),
- INIT_DCS_CMD(0xC2, 0xB5),
- INIT_DCS_CMD(0xC3, 0xCF),
- INIT_DCS_CMD(0xC4, 0xDB),
- INIT_DCS_CMD(0xC5, 0xE8),
- INIT_DCS_CMD(0xC6, 0xF5),
- 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, 0x09),
- INIT_DCS_CMD(0xB1, 0x04),
- INIT_DCS_CMD(0xB2, 0x02),
- INIT_DCS_CMD(0xB3, 0x16),
- INIT_DCS_CMD(0xB4, 0x24),
- INIT_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, 0x0A),
- 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, 0x0B),
- 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),
- INIT_DCS_CMD(0xB9, 0xDC),
- INIT_DCS_CMD(0xBA, 0x23),
- INIT_DCS_CMD(0xBB, 0xA6),
- INIT_DCS_CMD(0xBC, 0x2C),
- INIT_DCS_CMD(0xBD, 0x30),
- INIT_DCS_CMD(0xBE, 0xAA),
- INIT_DCS_CMD(0xBF, 0x26),
- INIT_DCS_CMD(0xC0, 0x62),
- INIT_DCS_CMD(0xC1, 0x9B),
- INIT_DCS_CMD(0xC2, 0xB5),
- INIT_DCS_CMD(0xC3, 0xCF),
- INIT_DCS_CMD(0xC4, 0xDB),
- INIT_DCS_CMD(0xC5, 0xE8),
- INIT_DCS_CMD(0xC6, 0xF5),
- 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, 0x0C),
- INIT_DCS_CMD(0xB1, 0x04),
- INIT_DCS_CMD(0xB2, 0x02),
- INIT_DCS_CMD(0xB3, 0x16),
- INIT_DCS_CMD(0xB4, 0x24),
- INIT_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,
- },
-};
diff --git a/src/mainboard/google/kukui/panel_params/panel-BOE_TV101WUM_NG0.c b/src/mainboard/google/kukui/panel_params/panel-BOE_TV101WUM_NG0.c
deleted file mode 100644
index be96113..0000000
--- a/src/mainboard/google/kukui/panel_params/panel-BOE_TV101WUM_NG0.c
+++ /dev/null
@@ -1,337 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#include "../panel.h"
-
-struct panel_serializable_data BOE_TV101WUM_NG0 = {
- .edid = {
- .ascii_string = "TV101WUM-NG0",
- .manufacturer_name = "BOE",
- .panel_bits_per_color = 8,
- .panel_bits_per_pixel = 24,
- .mode = {
- .pixel_clock = 159420,
- .lvds_dual_channel = 0,
- .refresh = 60,
- .ha = 1200, .hbl = 164, .hso = 80, .hspw = 24,
- .va = 1920, .vbl = 28, .vso = 10, .vspw = 4,
- .phsync = '-', .pvsync = '-',
- .x_mm = 135, .y_mm = 216,
- },
- },
- .init = {
- INIT_DCS_CMD(0x10),
- INIT_DELAY_CMD(0x22),
- 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(0xB2, 0x50),
- INIT_DCS_CMD(0xB6, 0x03),
- INIT_DCS_CMD(0xBA, 0x8B),
- INIT_DCS_CMD(0xBF, 0x15),
- 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, 0x04),
- INIT_DCS_CMD(0xD3, 0x04),
- INIT_DCS_CMD(0xE6, 0x03),
- INIT_DCS_CMD(0xE7, 0x03),
- INIT_DCS_CMD(0xC4, 0x08),
- INIT_DCS_CMD(0xC5, 0x08),
- INIT_DCS_CMD(0xD8, 0x07),
- INIT_DCS_CMD(0xD9, 0x07),
- INIT_DCS_CMD(0xC2, 0x06),
- INIT_DCS_CMD(0xC3, 0x06),
- INIT_DCS_CMD(0xD6, 0x05),
- INIT_DCS_CMD(0xD7, 0x05),
- INIT_DCS_CMD(0xC0, 0x0C),
- INIT_DCS_CMD(0xC1, 0x0C),
- INIT_DCS_CMD(0xD4, 0x0B),
- INIT_DCS_CMD(0xD5, 0x0B),
- INIT_DCS_CMD(0xCA, 0x0A),
- INIT_DCS_CMD(0xCB, 0x0A),
- INIT_DCS_CMD(0xDE, 0x09),
- INIT_DCS_CMD(0xDF, 0x09),
- INIT_DCS_CMD(0xC6, 0x26),
- INIT_DCS_CMD(0xC7, 0x26),
- INIT_DCS_CMD(0xCE, 0x00),
- INIT_DCS_CMD(0xCF, 0x00),
- INIT_DCS_CMD(0xDA, 0x26),
- INIT_DCS_CMD(0xDB, 0x26),
- INIT_DCS_CMD(0xE2, 0x00),
- INIT_DCS_CMD(0xE3, 0x00),
- INIT_DCS_CMD(0xB0, 0x02),
- INIT_DCS_CMD(0xC0, 0x00),
- INIT_DCS_CMD(0xC1, 0x07),
- INIT_DCS_CMD(0xC2, 0x0D),
- INIT_DCS_CMD(0xC3, 0x18),
- INIT_DCS_CMD(0xC4, 0x27),
- INIT_DCS_CMD(0xC5, 0x28),
- INIT_DCS_CMD(0xC6, 0x30),
- INIT_DCS_CMD(0xC7, 0x2E),
- INIT_DCS_CMD(0xC8, 0x2F),
- INIT_DCS_CMD(0xC9, 0x1A),
- INIT_DCS_CMD(0xCA, 0x20),
- INIT_DCS_CMD(0xCB, 0x29),
- INIT_DCS_CMD(0xCC, 0x26),
- INIT_DCS_CMD(0xCD, 0x32),
- INIT_DCS_CMD(0xCE, 0x33),
- INIT_DCS_CMD(0xCF, 0x31),
- INIT_DCS_CMD(0xD0, 0x06),
- INIT_DCS_CMD(0xD2, 0x00),
- INIT_DCS_CMD(0xD3, 0x07),
- INIT_DCS_CMD(0xD4, 0x12),
- INIT_DCS_CMD(0xD5, 0x26),
- INIT_DCS_CMD(0xD6, 0x3D),
- INIT_DCS_CMD(0xD7, 0x3F),
- INIT_DCS_CMD(0xD8, 0x3F),
- INIT_DCS_CMD(0xD9, 0x3F),
- INIT_DCS_CMD(0xDA, 0x3F),
- INIT_DCS_CMD(0xDB, 0x3F),
- INIT_DCS_CMD(0xDC, 0x3F),
- INIT_DCS_CMD(0xDD, 0x3F),
- INIT_DCS_CMD(0xDE, 0x3F),
- INIT_DCS_CMD(0xDF, 0x3A),
- INIT_DCS_CMD(0xE0, 0x37),
- INIT_DCS_CMD(0xE1, 0x35),
- INIT_DCS_CMD(0xE2, 0x07),
- INIT_DCS_CMD(0xB0, 0x03),
- INIT_DCS_CMD(0xC8, 0x0B),
- INIT_DCS_CMD(0xC9, 0x07),
- INIT_DCS_CMD(0xC3, 0x00),
- INIT_DCS_CMD(0xE7, 0x00),
- INIT_DCS_CMD(0xC5, 0x2A),
- INIT_DCS_CMD(0xDE, 0x2A),
- INIT_DCS_CMD(0xCA, 0x43),
- INIT_DCS_CMD(0xC9, 0x07),
- INIT_DCS_CMD(0xE4, 0xC0),
- INIT_DCS_CMD(0xE5, 0x0D),
- INIT_DCS_CMD(0xCB, 0x00),
- INIT_DCS_CMD(0xB0, 0x06),
- INIT_DCS_CMD(0xB8, 0xA5),
- INIT_DCS_CMD(0xC0, 0xA5),
- INIT_DCS_CMD(0xC7, 0x0F),
- INIT_DCS_CMD(0xD5, 0x32),
- INIT_DCS_CMD(0xB8, 0x00),
- INIT_DCS_CMD(0xC0, 0x00),
- INIT_DCS_CMD(0xBC, 0x00),
- INIT_DCS_CMD(0xB0, 0x07),
- INIT_DCS_CMD(0xB1, 0x00),
- INIT_DCS_CMD(0xB2, 0x09),
- INIT_DCS_CMD(0xB3, 0x19),
- INIT_DCS_CMD(0xB4, 0x2F),
- INIT_DCS_CMD(0xB5, 0x44),
- INIT_DCS_CMD(0xB6, 0x52),
- INIT_DCS_CMD(0xB7, 0x6A),
- INIT_DCS_CMD(0xB8, 0x8A),
- INIT_DCS_CMD(0xB9, 0xCA),
- INIT_DCS_CMD(0xBA, 0x0C),
- INIT_DCS_CMD(0xBB, 0x87),
- INIT_DELAY_CMD(0x05),
- INIT_DCS_CMD(0xBC, 0x06),
- INIT_DCS_CMD(0xBD, 0x0A),
- INIT_DCS_CMD(0xBE, 0x9B),
- INIT_DCS_CMD(0xBF, 0x0C),
- INIT_DCS_CMD(0xC0, 0x3D),
- INIT_DCS_CMD(0xC1, 0x71),
- INIT_DCS_CMD(0xC2, 0x90),
- INIT_DCS_CMD(0xC3, 0xA0),
- INIT_DCS_CMD(0xC4, 0xA8),
- INIT_DCS_CMD(0xC5, 0xB1),
- INIT_DCS_CMD(0xC6, 0xBB),
- INIT_DCS_CMD(0xC7, 0xC0),
- INIT_DCS_CMD(0xC8, 0xC4),
- 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, 0x08),
- INIT_DCS_CMD(0xB3, 0x19),
- INIT_DCS_CMD(0xB4, 0x31),
- INIT_DCS_CMD(0xB5, 0x46),
- INIT_DCS_CMD(0xB6, 0x55),
- INIT_DCS_CMD(0xB7, 0x6E),
- INIT_DCS_CMD(0xB8, 0x92),
- INIT_DCS_CMD(0xB9, 0xD4),
- INIT_DCS_CMD(0xBA, 0x1B),
- INIT_DCS_CMD(0xBB, 0x9B),
- INIT_DELAY_CMD(0x05),
- INIT_DCS_CMD(0xBC, 0x28),
- INIT_DCS_CMD(0xBD, 0x2D),
- INIT_DCS_CMD(0xBE, 0xC3),
- INIT_DCS_CMD(0xBF, 0x2F),
- INIT_DCS_CMD(0xC0, 0x62),
- INIT_DCS_CMD(0xC1, 0x99),
- INIT_DCS_CMD(0xC2, 0xAB),
- INIT_DCS_CMD(0xC3, 0xBF),
- INIT_DCS_CMD(0xC4, 0xCF),
- INIT_DCS_CMD(0xC5, 0xDF),
- INIT_DCS_CMD(0xC6, 0xF0),
- INIT_DCS_CMD(0xC7, 0xF9),
- 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, 0x09),
- INIT_DCS_CMD(0xB1, 0x04),
- INIT_DCS_CMD(0xB2, 0x05),
- INIT_DCS_CMD(0xB3, 0x17),
- INIT_DCS_CMD(0xB4, 0x2E),
- INIT_DCS_CMD(0xB5, 0x42),
- INIT_DCS_CMD(0xB6, 0x51),
- INIT_DCS_CMD(0xB7, 0x69),
- INIT_DCS_CMD(0xB8, 0x88),
- INIT_DCS_CMD(0xB9, 0xC9),
- INIT_DCS_CMD(0xBA, 0x0C),
- INIT_DCS_CMD(0xBB, 0x86),
- INIT_DELAY_CMD(0x05),
- INIT_DCS_CMD(0xBC, 0x03),
- INIT_DCS_CMD(0xBD, 0x08),
- INIT_DCS_CMD(0xBE, 0x95),
- INIT_DCS_CMD(0xBF, 0x05),
- INIT_DCS_CMD(0xC0, 0x35),
- INIT_DCS_CMD(0xC1, 0x62),
- INIT_DCS_CMD(0xC2, 0x81),
- INIT_DCS_CMD(0xC3, 0x96),
- INIT_DCS_CMD(0xC4, 0x9E),
- INIT_DCS_CMD(0xC5, 0xA5),
- INIT_DCS_CMD(0xC6, 0xAD),
- INIT_DCS_CMD(0xC7, 0xB1),
- INIT_DCS_CMD(0xC8, 0xB4),
- 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, 0x0A),
- INIT_DCS_CMD(0xB1, 0x00),
- INIT_DCS_CMD(0xB2, 0x09),
- INIT_DCS_CMD(0xB3, 0x19),
- INIT_DCS_CMD(0xB4, 0x2F),
- INIT_DCS_CMD(0xB5, 0x44),
- INIT_DCS_CMD(0xB6, 0x52),
- INIT_DCS_CMD(0xB7, 0x6A),
- INIT_DCS_CMD(0xB8, 0x8A),
- INIT_DCS_CMD(0xB9, 0xCA),
- INIT_DCS_CMD(0xBA, 0x0C),
- INIT_DCS_CMD(0xBB, 0x87),
- INIT_DELAY_CMD(0x05),
- INIT_DCS_CMD(0xBC, 0x06),
- INIT_DCS_CMD(0xBD, 0x0A),
- INIT_DCS_CMD(0xBE, 0x9B),
- INIT_DCS_CMD(0xBF, 0x0C),
- INIT_DCS_CMD(0xC0, 0x3D),
- INIT_DCS_CMD(0xC1, 0x71),
- INIT_DCS_CMD(0xC2, 0x90),
- INIT_DCS_CMD(0xC3, 0xA0),
- INIT_DCS_CMD(0xC4, 0xA8),
- INIT_DCS_CMD(0xC5, 0xB1),
- INIT_DCS_CMD(0xC6, 0xBB),
- INIT_DCS_CMD(0xC7, 0xC0),
- INIT_DCS_CMD(0xC8, 0xC4),
- 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, 0x0B),
- INIT_DCS_CMD(0xB1, 0x04),
- INIT_DCS_CMD(0xB2, 0x08),
- INIT_DCS_CMD(0xB3, 0x19),
- INIT_DCS_CMD(0xB4, 0x31),
- INIT_DCS_CMD(0xB5, 0x46),
- INIT_DCS_CMD(0xB6, 0x55),
- INIT_DCS_CMD(0xB7, 0x6E),
- INIT_DCS_CMD(0xB8, 0x92),
- INIT_DCS_CMD(0xB9, 0xD4),
- INIT_DCS_CMD(0xBA, 0x1B),
- INIT_DCS_CMD(0xBB, 0x9B),
- INIT_DELAY_CMD(0x05),
- INIT_DCS_CMD(0xBC, 0x28),
- INIT_DCS_CMD(0xBD, 0x2D),
- INIT_DCS_CMD(0xBE, 0xC3),
- INIT_DCS_CMD(0xBF, 0x2F),
- INIT_DCS_CMD(0xC0, 0x62),
- INIT_DCS_CMD(0xC1, 0x99),
- INIT_DCS_CMD(0xC2, 0xAB),
- INIT_DCS_CMD(0xC3, 0xBF),
- INIT_DCS_CMD(0xC4, 0xCF),
- INIT_DCS_CMD(0xC5, 0xDF),
- INIT_DCS_CMD(0xC6, 0xF0),
- INIT_DCS_CMD(0xC7, 0xF9),
- 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, 0x0C),
- INIT_DCS_CMD(0xB1, 0x04),
- INIT_DCS_CMD(0xB2, 0x05),
- INIT_DCS_CMD(0xB3, 0x17),
- INIT_DCS_CMD(0xB4, 0x2E),
- INIT_DCS_CMD(0xB5, 0x42),
- INIT_DCS_CMD(0xB6, 0x51),
- INIT_DCS_CMD(0xB7, 0x69),
- INIT_DCS_CMD(0xB8, 0x88),
- INIT_DCS_CMD(0xB9, 0xC9),
- INIT_DCS_CMD(0xBA, 0x0C),
- INIT_DCS_CMD(0xBB, 0x86),
- INIT_DELAY_CMD(0x05),
- INIT_DCS_CMD(0xBC, 0x03),
- INIT_DCS_CMD(0xBD, 0x08),
- INIT_DCS_CMD(0xBE, 0x95),
- INIT_DCS_CMD(0xBF, 0x05),
- INIT_DCS_CMD(0xC0, 0x35),
- INIT_DCS_CMD(0xC1, 0x62),
- INIT_DCS_CMD(0xC2, 0x81),
- INIT_DCS_CMD(0xC3, 0x96),
- INIT_DCS_CMD(0xC4, 0x9E),
- INIT_DCS_CMD(0xC5, 0xA5),
- INIT_DCS_CMD(0xC6, 0xAD),
- INIT_DCS_CMD(0xC7, 0xB1),
- INIT_DCS_CMD(0xC8, 0xB4),
- 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_DELAY_CMD(0x64),
- INIT_DCS_CMD(0xB0, 0x00),
- INIT_DCS_CMD(0xB3, 0x08),
- INIT_DCS_CMD(0xB0, 0x04),
- INIT_DCS_CMD(0xB8, 0x68),
- INIT_DELAY_CMD(0x0A),
- INIT_DCS_CMD(0x11),
- INIT_DELAY_CMD(0x78),
- INIT_DCS_CMD(0x29),
- INIT_DELAY_CMD(0x14),
- INIT_END_CMD,
- },
-};
diff --git a/src/mainboard/google/kukui/panel_params/panel-BOE_TV101WUM_NL6.c b/src/mainboard/google/kukui/panel_params/panel-BOE_TV101WUM_NL6.c
deleted file mode 100644
index 2c4624b..0000000
--- a/src/mainboard/google/kukui/panel_params/panel-BOE_TV101WUM_NL6.c
+++ /dev/null
@@ -1,317 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#include "../panel.h"
-
-struct panel_serializable_data BOE_TV101WUM_NL6 = {
- .edid = {
- .ascii_string = "TV101WUM-NL6",
- .manufacturer_name = "BOE",
- .panel_bits_per_color = 8,
- .panel_bits_per_pixel = 24,
- .mode = {
- .pixel_clock = 159425,
- .lvds_dual_channel = 0,
- .refresh = 60,
- .ha = 1200, .hbl = 164, .hso = 100, .hspw = 24,
- .va = 1920, .vbl = 28, .vso = 10, .vspw = 4,
- .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(0xCD, 0x2E),
- INIT_DCS_CMD(0xCE, 0x2F),
- INIT_DCS_CMD(0xCF, 0x2F),
- INIT_DCS_CMD(0xD0, 0x07),
- INIT_DCS_CMD(0xD2, 0x00),
- INIT_DCS_CMD(0xD3, 0x0D),
- INIT_DCS_CMD(0xD4, 0x17),
- INIT_DCS_CMD(0xD5, 0x26),
- INIT_DCS_CMD(0xD6, 0x31),
- INIT_DCS_CMD(0xD7, 0x3F),
- INIT_DCS_CMD(0xD8, 0x3F),
- INIT_DCS_CMD(0xD9, 0x3F),
- INIT_DCS_CMD(0xDA, 0x3F),
- INIT_DCS_CMD(0xDB, 0x37),
- INIT_DCS_CMD(0xDC, 0x37),
- INIT_DCS_CMD(0xDD, 0x37),
- INIT_DCS_CMD(0xDE, 0x39),
- INIT_DCS_CMD(0xDF, 0x2E),
- INIT_DCS_CMD(0xE0, 0x2F),
- INIT_DCS_CMD(0xE1, 0x2F),
- INIT_DCS_CMD(0xE2, 0x07),
- INIT_DCS_CMD(0xB0, 0x03),
- INIT_DCS_CMD(0xC8, 0x0B),
- INIT_DCS_CMD(0xC9, 0x07),
- INIT_DCS_CMD(0xC3, 0x00),
- INIT_DCS_CMD(0xE7, 0x00),
- INIT_DCS_CMD(0xC5, 0x2A),
- INIT_DCS_CMD(0xDE, 0x2A),
- INIT_DCS_CMD(0xCA, 0x43),
- INIT_DCS_CMD(0xC9, 0x07),
- INIT_DCS_CMD(0xE4, 0xC0),
- INIT_DCS_CMD(0xE5, 0x0D),
- INIT_DCS_CMD(0xCB, 0x00),
- INIT_DCS_CMD(0xB0, 0x06),
- INIT_DCS_CMD(0xB8, 0xA5),
- INIT_DCS_CMD(0xC0, 0xA5),
- INIT_DCS_CMD(0xC7, 0x0F),
- INIT_DCS_CMD(0xD5, 0x32),
- INIT_DCS_CMD(0xB8, 0x00),
- INIT_DCS_CMD(0xC0, 0x00),
- INIT_DCS_CMD(0xBC, 0x00),
- 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),
- INIT_DCS_CMD(0xB9, 0xDC),
- INIT_DCS_CMD(0xBA, 0x23),
- INIT_DCS_CMD(0xBB, 0xA6),
- INIT_DCS_CMD(0xBC, 0x2C),
- INIT_DCS_CMD(0xBD, 0x30),
- INIT_DCS_CMD(0xBE, 0xAA),
- INIT_DCS_CMD(0xBF, 0x26),
- INIT_DCS_CMD(0xC0, 0x62),
- INIT_DCS_CMD(0xC1, 0x9B),
- INIT_DCS_CMD(0xC2, 0xB5),
- INIT_DCS_CMD(0xC3, 0xCF),
- INIT_DCS_CMD(0xC4, 0xDB),
- INIT_DCS_CMD(0xC5, 0xE8),
- INIT_DCS_CMD(0xC6, 0xF5),
- 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, 0x09),
- INIT_DCS_CMD(0xB1, 0x04),
- INIT_DCS_CMD(0xB2, 0x02),
- INIT_DCS_CMD(0xB3, 0x16),
- INIT_DCS_CMD(0xB4, 0x24),
- INIT_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, 0x0A),
- 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, 0x0B),
- 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),
- INIT_DCS_CMD(0xB9, 0xDC),
- INIT_DCS_CMD(0xBA, 0x23),
- INIT_DCS_CMD(0xBB, 0xA6),
- INIT_DCS_CMD(0xBC, 0x2C),
- INIT_DCS_CMD(0xBD, 0x30),
- INIT_DCS_CMD(0xBE, 0xAA),
- INIT_DCS_CMD(0xBF, 0x26),
- INIT_DCS_CMD(0xC0, 0x62),
- INIT_DCS_CMD(0xC1, 0x9B),
- INIT_DCS_CMD(0xC2, 0xB5),
- INIT_DCS_CMD(0xC3, 0xCF),
- INIT_DCS_CMD(0xC4, 0xDB),
- INIT_DCS_CMD(0xC5, 0xE8),
- INIT_DCS_CMD(0xC6, 0xF5),
- 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, 0x0C),
- INIT_DCS_CMD(0xB1, 0x04),
- INIT_DCS_CMD(0xB2, 0x02),
- INIT_DCS_CMD(0xB3, 0x16),
- INIT_DCS_CMD(0xB4, 0x24),
- INIT_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,
- },
-};
diff --git a/src/mainboard/google/kukui/panel_params/panel-BOE_TV105WUM_NW0.c b/src/mainboard/google/kukui/panel_params/panel-BOE_TV105WUM_NW0.c
deleted file mode 100644
index 3c551a2..0000000
--- a/src/mainboard/google/kukui/panel_params/panel-BOE_TV105WUM_NW0.c
+++ /dev/null
@@ -1,321 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#include "../panel.h"
-
-struct panel_serializable_data BOE_TV105WUM_NW0 = {
- .edid = {
- .ascii_string = "TV105WUM-NW0",
- .manufacturer_name = "BOE",
- .panel_bits_per_color = 8,
- .panel_bits_per_pixel = 24,
- .mode = {
- .pixel_clock = 159916,
- .lvds_dual_channel = 0,
- .refresh = 60,
- .ha = 1200, .hbl = 164, .hso = 80, .hspw = 24,
- .va = 1920, .vbl = 34, .vso = 20, .vspw = 4,
- .phsync = '-', .pvsync = '-',
- .x_mm = 147, .y_mm = 236,
- },
- },
- .orientation = LB_FB_ORIENTATION_LEFT_UP,
- .init = {
- INIT_DCS_CMD(0x10),
- INIT_DELAY_CMD(34),
- 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, 0x87),
- INIT_DCS_CMD(0xBF, 0x1F),
- INIT_DCS_CMD(0xC0, 0x0F),
- INIT_DCS_CMD(0xC2, 0x0E),
- INIT_DCS_CMD(0xC3, 0x02),
- INIT_DCS_CMD(0xC4, 0x0A),
- 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, 0x0F),
- INIT_DCS_CMD(0xC2, 0x1A),
- INIT_DCS_CMD(0xC3, 0x2B),
- INIT_DCS_CMD(0xC4, 0x38),
- INIT_DCS_CMD(0xC5, 0x39),
- INIT_DCS_CMD(0xC6, 0x38),
- INIT_DCS_CMD(0xC7, 0x38),
- INIT_DCS_CMD(0xC8, 0x36),
- INIT_DCS_CMD(0xC9, 0x34),
- INIT_DCS_CMD(0xCA, 0x35),
- INIT_DCS_CMD(0xCB, 0x36),
- INIT_DCS_CMD(0xCC, 0x39),
- INIT_DCS_CMD(0xCD, 0x2D),
- INIT_DCS_CMD(0xCE, 0x2E),
- INIT_DCS_CMD(0xCF, 0x2F),
- INIT_DCS_CMD(0xD0, 0x07),
- INIT_DCS_CMD(0xD2, 0x00),
- INIT_DCS_CMD(0xD3, 0x0F),
- INIT_DCS_CMD(0xD4, 0x1A),
- INIT_DCS_CMD(0xD5, 0x2B),
- INIT_DCS_CMD(0xD6, 0x38),
- INIT_DCS_CMD(0xD7, 0x39),
- INIT_DCS_CMD(0xD8, 0x38),
- INIT_DCS_CMD(0xD9, 0x38),
- INIT_DCS_CMD(0xDA, 0x36),
- INIT_DCS_CMD(0xDB, 0x34),
- INIT_DCS_CMD(0xDC, 0x35),
- INIT_DCS_CMD(0xDD, 0x36),
- INIT_DCS_CMD(0xDE, 0x39),
- INIT_DCS_CMD(0xDF, 0x2D),
- INIT_DCS_CMD(0xE0, 0x2E),
- INIT_DCS_CMD(0xE1, 0x2F),
- INIT_DCS_CMD(0xE2, 0x07),
- INIT_DCS_CMD(0xB0, 0x03),
- INIT_DCS_CMD(0xC8, 0x0B),
- INIT_DCS_CMD(0xC9, 0x07),
- INIT_DCS_CMD(0xC3, 0x00),
- INIT_DCS_CMD(0xE7, 0x00),
- INIT_DCS_CMD(0xC5, 0x2A),
- INIT_DCS_CMD(0xDE, 0x2A),
- INIT_DCS_CMD(0xCA, 0x43),
- INIT_DCS_CMD(0xC9, 0x07),
- INIT_DCS_CMD(0xE4, 0xC0),
- INIT_DCS_CMD(0xE5, 0x0D),
- INIT_DCS_CMD(0xCB, 0x00),
- INIT_DCS_CMD(0xB0, 0x06),
- INIT_DCS_CMD(0xB8, 0xA5),
- INIT_DCS_CMD(0xC0, 0xA5),
- INIT_DCS_CMD(0xC7, 0x0F),
- INIT_DCS_CMD(0xD5, 0x32),
- INIT_DCS_CMD(0xBC, 0x33),
- INIT_DCS_CMD(0xB0, 0x07),
- INIT_DCS_CMD(0xB1, 0x00),
- INIT_DCS_CMD(0xB2, 0x04),
- INIT_DCS_CMD(0xB3, 0x0A),
- INIT_DCS_CMD(0xB4, 0x1A),
- INIT_DCS_CMD(0xB5, 0x29),
- INIT_DCS_CMD(0xB6, 0x38),
- INIT_DCS_CMD(0xB7, 0x5A),
- INIT_DCS_CMD(0xB8, 0x79),
- INIT_DCS_CMD(0xB9, 0xBF),
- INIT_DCS_CMD(0xBA, 0x05),
- INIT_DCS_CMD(0xBB, 0x88),
- INIT_DCS_CMD(0xBC, 0x14),
- INIT_DCS_CMD(0xBD, 0x18),
- INIT_DCS_CMD(0xBE, 0x97),
- INIT_DCS_CMD(0xBF, 0x11),
- INIT_DCS_CMD(0xC0, 0x4B),
- INIT_DCS_CMD(0xC1, 0x82),
- INIT_DCS_CMD(0xC2, 0x9B),
- INIT_DCS_CMD(0xC3, 0xB6),
- INIT_DCS_CMD(0xC4, 0xC3),
- INIT_DCS_CMD(0xC5, 0xD0),
- INIT_DCS_CMD(0xC6, 0xDB),
- INIT_DCS_CMD(0xC7, 0xE1),
- INIT_DCS_CMD(0xC8, 0xE4),
- 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, 0x00),
- INIT_DCS_CMD(0xB2, 0x03),
- INIT_DCS_CMD(0xB3, 0x0A),
- INIT_DCS_CMD(0xB4, 0x1A),
- INIT_DCS_CMD(0xB5, 0x29),
- INIT_DCS_CMD(0xB6, 0x38),
- INIT_DCS_CMD(0xB7, 0x5A),
- INIT_DCS_CMD(0xB8, 0x7A),
- INIT_DCS_CMD(0xB9, 0xC1),
- INIT_DCS_CMD(0xBA, 0x07),
- INIT_DCS_CMD(0xBB, 0x8B),
- INIT_DCS_CMD(0xBC, 0x17),
- INIT_DCS_CMD(0xBD, 0x1B),
- INIT_DCS_CMD(0xBE, 0x99),
- INIT_DCS_CMD(0xBF, 0x13),
- INIT_DCS_CMD(0xC0, 0x4C),
- INIT_DCS_CMD(0xC1, 0x84),
- INIT_DCS_CMD(0xC2, 0x9D),
- INIT_DCS_CMD(0xC3, 0xB7),
- INIT_DCS_CMD(0xC4, 0xC4),
- INIT_DCS_CMD(0xC5, 0xD0),
- INIT_DCS_CMD(0xC6, 0xDB),
- INIT_DCS_CMD(0xC7, 0xE1),
- INIT_DCS_CMD(0xC8, 0xE4),
- 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, 0x09),
- INIT_DCS_CMD(0xB1, 0x04),
- INIT_DCS_CMD(0xB2, 0x04),
- INIT_DCS_CMD(0xB3, 0x09),
- INIT_DCS_CMD(0xB4, 0x1A),
- INIT_DCS_CMD(0xB5, 0x2B),
- INIT_DCS_CMD(0xB6, 0x3A),
- INIT_DCS_CMD(0xB7, 0x5D),
- INIT_DCS_CMD(0xB8, 0x80),
- INIT_DCS_CMD(0xB9, 0xCA),
- INIT_DCS_CMD(0xBA, 0x13),
- INIT_DCS_CMD(0xBB, 0x9D),
- INIT_DCS_CMD(0xBC, 0x30),
- INIT_DCS_CMD(0xBD, 0x34),
- INIT_DCS_CMD(0xBE, 0xBB),
- INIT_DCS_CMD(0xBF, 0x30),
- INIT_DCS_CMD(0xC0, 0x6A),
- INIT_DCS_CMD(0xC1, 0xA1),
- INIT_DCS_CMD(0xC2, 0xBC),
- INIT_DCS_CMD(0xC3, 0xD4),
- INIT_DCS_CMD(0xC4, 0xE0),
- INIT_DCS_CMD(0xC5, 0xEB),
- 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, 0x0A),
- INIT_DCS_CMD(0xB1, 0x00),
- INIT_DCS_CMD(0xB2, 0x04),
- INIT_DCS_CMD(0xB3, 0x0A),
- INIT_DCS_CMD(0xB4, 0x1A),
- INIT_DCS_CMD(0xB5, 0x29),
- INIT_DCS_CMD(0xB6, 0x38),
- INIT_DCS_CMD(0xB7, 0x5A),
- INIT_DCS_CMD(0xB8, 0x79),
- INIT_DCS_CMD(0xB9, 0xBF),
- INIT_DCS_CMD(0xBA, 0x05),
- INIT_DCS_CMD(0xBB, 0x88),
- INIT_DCS_CMD(0xBC, 0x14),
- INIT_DCS_CMD(0xBD, 0x18),
- INIT_DCS_CMD(0xBE, 0x97),
- INIT_DCS_CMD(0xBF, 0x11),
- INIT_DCS_CMD(0xC0, 0x4B),
- INIT_DCS_CMD(0xC1, 0x82),
- INIT_DCS_CMD(0xC2, 0x9B),
- INIT_DCS_CMD(0xC3, 0xB6),
- INIT_DCS_CMD(0xC4, 0xC3),
- INIT_DCS_CMD(0xC5, 0xD0),
- INIT_DCS_CMD(0xC6, 0xDB),
- INIT_DCS_CMD(0xC7, 0xE1),
- INIT_DCS_CMD(0xC8, 0xE4),
- 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, 0x0B),
- INIT_DCS_CMD(0xB1, 0x00),
- INIT_DCS_CMD(0xB2, 0x03),
- INIT_DCS_CMD(0xB3, 0x0A),
- INIT_DCS_CMD(0xB4, 0x1A),
- INIT_DCS_CMD(0xB5, 0x29),
- INIT_DCS_CMD(0xB6, 0x38),
- INIT_DCS_CMD(0xB7, 0x5A),
- INIT_DCS_CMD(0xB8, 0x7A),
- INIT_DCS_CMD(0xB9, 0xC1),
- INIT_DCS_CMD(0xBA, 0x07),
- INIT_DCS_CMD(0xBB, 0x8B),
- INIT_DCS_CMD(0xBC, 0x17),
- INIT_DCS_CMD(0xBD, 0x1B),
- INIT_DCS_CMD(0xBE, 0x99),
- INIT_DCS_CMD(0xBF, 0x13),
- INIT_DCS_CMD(0xC0, 0x4C),
- INIT_DCS_CMD(0xC1, 0x84),
- INIT_DCS_CMD(0xC2, 0x9D),
- INIT_DCS_CMD(0xC3, 0xB7),
- INIT_DCS_CMD(0xC4, 0xC4),
- INIT_DCS_CMD(0xC5, 0xD0),
- INIT_DCS_CMD(0xC6, 0xDB),
- INIT_DCS_CMD(0xC7, 0xE1),
- INIT_DCS_CMD(0xC8, 0xE4),
- 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, 0x0C),
- INIT_DCS_CMD(0xB1, 0x04),
- INIT_DCS_CMD(0xB2, 0x04),
- INIT_DCS_CMD(0xB3, 0x09),
- INIT_DCS_CMD(0xB4, 0x1A),
- INIT_DCS_CMD(0xB5, 0x2B),
- INIT_DCS_CMD(0xB6, 0x3A),
- INIT_DCS_CMD(0xB7, 0x5D),
- INIT_DCS_CMD(0xB8, 0x80),
- INIT_DCS_CMD(0xB9, 0xCA),
- INIT_DCS_CMD(0xBA, 0x13),
- INIT_DCS_CMD(0xBB, 0x9D),
- INIT_DCS_CMD(0xBC, 0x30),
- INIT_DCS_CMD(0xBD, 0x34),
- INIT_DCS_CMD(0xBE, 0xBB),
- INIT_DCS_CMD(0xBF, 0x30),
- INIT_DCS_CMD(0xC0, 0x6A),
- INIT_DCS_CMD(0xC1, 0xA1),
- INIT_DCS_CMD(0xC2, 0xBC),
- INIT_DCS_CMD(0xC3, 0xD4),
- INIT_DCS_CMD(0xC4, 0xE0),
- INIT_DCS_CMD(0xC5, 0xEB),
- 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_DELAY_CMD(100),
- INIT_DCS_CMD(0xB0, 0x00),
- INIT_DCS_CMD(0xB3, 0x08),
- INIT_DCS_CMD(0xB0, 0x04),
- INIT_DCS_CMD(0xB8, 0x68),
- INIT_DELAY_CMD(10),
- INIT_DCS_CMD(0x11),
- INIT_DELAY_CMD(100),
- INIT_DCS_CMD(0x29),
- INIT_DELAY_CMD(50),
- INIT_END_CMD,
- },
-};
diff --git a/src/mainboard/google/kukui/panel_params/panel-CMN_P097PFG_SSD2858.c b/src/mainboard/google/kukui/panel_params/panel-CMN_P097PFG_SSD2858.c
deleted file mode 100644
index fb59f52..0000000
--- a/src/mainboard/google/kukui/panel_params/panel-CMN_P097PFG_SSD2858.c
+++ /dev/null
@@ -1,72 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#include "../panel.h"
-
-struct panel_serializable_data P097PFG_SSD2858 = {
- .edid = {
- .ascii_string = "P097PFG",
- .manufacturer_name = "CMN",
- .panel_bits_per_color = 8,
- .panel_bits_per_pixel = 24,
- .mode = {
- .pixel_clock = 211660,
- .lvds_dual_channel = 0,
- .refresh = 60,
- .ha = 1536, .hbl = 160, .hso = 140, .hspw = 10,
- .va = 2048, .vbl = 32, .vso = 20, .vspw = 2,
- .phsync = '-', .pvsync = '-',
- .x_mm = 147, .y_mm = 196,
- },
- },
- .orientation = LB_FB_ORIENTATION_NORMAL,
- .init = {
- INIT_GENERIC_CMD(0xff, 0x00),
- /* LOCKCNT=0x1f4, MRX=0, POSTDIV=1 (/2} }, MULT=0x49
- * 27 Mhz => 985.5 Mhz */
- INIT_GENERIC_CMD(0x00, 0x08, 0x01, 0xf4, 0x01, 0x49),
- /* MTXDIV=1, SYSDIV=3 (=> 4) */
- INIT_GENERIC_CMD(0x00, 0x0c, 0x00, 0x00, 0x00, 0x03),
- /* MTXVPF=24bpp, MRXLS=4 lanes, MRXVB=bypass, MRXECC=1,
- * MRXEOT=1, MRXEE=1 */
- INIT_GENERIC_CMD(0x00, 0x14, 0x0c, 0x3d, 0x80, 0x0f),
- INIT_GENERIC_CMD(0x00, 0x20, 0x15, 0x92, 0x56, 0x7d),
- INIT_GENERIC_CMD(0x00, 0x24, 0x00, 0x00, 0x30, 0x00),
-
- INIT_GENERIC_CMD(0x10, 0x08, 0x01, 0x20, 0x08, 0x45),
- INIT_GENERIC_CMD(0x10, 0x1c, 0x00, 0x00, 0x00, 0x00),
- INIT_GENERIC_CMD(0x20, 0x0c, 0x00, 0x00, 0x00, 0x04),
- /* Pixel clock 985.5 Mhz * 0x49/0x4b = 959 Mhz */
- INIT_GENERIC_CMD(0x20, 0x10, 0x00, 0x4b, 0x00, 0x49),
- INIT_GENERIC_CMD(0x20, 0xa0, 0x00, 0x00, 0x00, 0x00),
- /* EOT=1, LPE = 0, LSOUT=4 lanes, LPD=25 */
- INIT_GENERIC_CMD(0x60, 0x08, 0x00, 0xd9, 0x00, 0x08),
- INIT_GENERIC_CMD(0x60, 0x14, 0x01, 0x00, 0x01, 0x06),
- /* DSI0 enable (default: probably not needed) */
- INIT_GENERIC_CMD(0x60, 0x80, 0x00, 0x00, 0x00, 0x0f),
- /* DSI1 enable */
- INIT_GENERIC_CMD(0x60, 0xa0, 0x00, 0x00, 0x00, 0x0f),
-
- /* HSA=0x18, VSA=0x02, HBP=0x50, VBP=0x0c */
- INIT_GENERIC_CMD(0x60, 0x0c, 0x0c, 0x50, 0x02, 0x18),
- /* VACT= 0x800 (2048} }, VFP= 0x14, HFP=0x50 */
- INIT_GENERIC_CMD(0x60, 0x10, 0x08, 0x00, 0x14, 0x50),
- /* HACT=0x300 (768) */
- INIT_GENERIC_CMD(0x60, 0x84, 0x00, 0x00, 0x03, 0x00),
- INIT_GENERIC_CMD(0x60, 0xa4, 0x00, 0x00, 0x03, 0x00),
-
- /* Take panel out of sleep. */
- INIT_GENERIC_CMD(0xff, 0x01),
- INIT_DCS_CMD(0x11),
- INIT_DELAY_CMD(120),
- INIT_DCS_CMD(0x29),
- INIT_DELAY_CMD(20),
- INIT_GENERIC_CMD(0xff, 0x00),
-
- INIT_DELAY_CMD(120),
- INIT_DCS_CMD(0x11),
- INIT_DELAY_CMD(120),
- INIT_DCS_CMD(0x29),
- INIT_DELAY_CMD(20),
- INIT_END_CMD,
- },
-};
diff --git a/src/mainboard/google/kukui/panel_params/panel-INX_OTA7290D10P.c b/src/mainboard/google/kukui/panel_params/panel-INX_OTA7290D10P.c
deleted file mode 100644
index 4845f49..0000000
--- a/src/mainboard/google/kukui/panel_params/panel-INX_OTA7290D10P.c
+++ /dev/null
@@ -1,281 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#include "../panel.h"
-
-struct panel_serializable_data INX_OTA7290D10P = {
- .edid = {
- .ascii_string = "OTA7290D10P",
- .manufacturer_name = "INX",
- .panel_bits_per_color = 8,
- .panel_bits_per_pixel = 24,
- .mode = {
- .pixel_clock = 159420,
- .lvds_dual_channel = 0,
- .refresh = 60,
- .ha = 1200, .hbl = 141, .hso = 80, .hspw = 1,
- .va = 1920, .vbl = 61, .vso = 35, .vspw = 1,
- .phsync = '-', .pvsync = '-',
- .x_mm = 135, .y_mm = 216,
- },
- },
- .init = {
- INIT_DCS_CMD(0xB0, 0x5A),
- INIT_DCS_CMD(0xB1, 0x00),
- INIT_DCS_CMD(0x89, 0x01),
- INIT_DCS_CMD(0x91, 0x17),
- INIT_DCS_CMD(0xB1, 0x03),
- INIT_DCS_CMD(0x2C, 0x28),
- INIT_DCS_CMD(0x00, 0xF1),
- INIT_DCS_CMD(0x01, 0x78),
- INIT_DCS_CMD(0x02, 0x3C),
- INIT_DCS_CMD(0x03, 0x1E),
- INIT_DCS_CMD(0x04, 0x8F),
- INIT_DCS_CMD(0x05, 0x01),
- INIT_DCS_CMD(0x06, 0x00),
- INIT_DCS_CMD(0x07, 0x00),
- INIT_DCS_CMD(0x08, 0x00),
- INIT_DCS_CMD(0x09, 0x00),
- INIT_DCS_CMD(0x0A, 0x01),
- INIT_DCS_CMD(0x0B, 0x3C),
- INIT_DCS_CMD(0x0C, 0x00),
- INIT_DCS_CMD(0x0D, 0x00),
- INIT_DCS_CMD(0x0E, 0x24),
- INIT_DCS_CMD(0x0F, 0x1C),
- INIT_DCS_CMD(0x10, 0xC8),
- INIT_DCS_CMD(0x11, 0x60),
- INIT_DCS_CMD(0x12, 0x70),
- INIT_DCS_CMD(0x13, 0x01),
- INIT_DCS_CMD(0x14, 0xE3),
- INIT_DCS_CMD(0x15, 0xFF),
- INIT_DCS_CMD(0x16, 0x3D),
- INIT_DCS_CMD(0x17, 0x0E),
- INIT_DCS_CMD(0x18, 0x01),
- INIT_DCS_CMD(0x19, 0x00),
- INIT_DCS_CMD(0x1A, 0x00),
- INIT_DCS_CMD(0x1B, 0xFC),
- INIT_DCS_CMD(0x1C, 0x0B),
- INIT_DCS_CMD(0x1D, 0xA0),
- INIT_DCS_CMD(0x1E, 0x03),
- INIT_DCS_CMD(0x1F, 0x04),
- INIT_DCS_CMD(0x20, 0x0C),
- INIT_DCS_CMD(0x21, 0x00),
- INIT_DCS_CMD(0x22, 0x04),
- INIT_DCS_CMD(0x23, 0x81),
- INIT_DCS_CMD(0x24, 0x1F),
- INIT_DCS_CMD(0x25, 0x10),
- INIT_DCS_CMD(0x26, 0x9B),
- INIT_DCS_CMD(0x2D, 0x01),
- INIT_DCS_CMD(0x2E, 0x84),
- INIT_DCS_CMD(0x2F, 0x00),
- INIT_DCS_CMD(0x30, 0x02),
- INIT_DCS_CMD(0x31, 0x08),
- INIT_DCS_CMD(0x32, 0x01),
- INIT_DCS_CMD(0x33, 0x1C),
- INIT_DCS_CMD(0x34, 0x70),
- INIT_DCS_CMD(0x35, 0xFF),
- INIT_DCS_CMD(0x36, 0xFF),
- INIT_DCS_CMD(0x37, 0xFF),
- INIT_DCS_CMD(0x38, 0xFF),
- INIT_DCS_CMD(0x39, 0xFF),
- INIT_DCS_CMD(0x3A, 0x05),
- INIT_DCS_CMD(0x3B, 0x00),
- INIT_DCS_CMD(0x3C, 0x00),
- INIT_DCS_CMD(0x3D, 0x00),
- INIT_DCS_CMD(0x3E, 0x0F),
- INIT_DCS_CMD(0x3F, 0xA4),
- INIT_DCS_CMD(0x40, 0x28),
- INIT_DCS_CMD(0x41, 0xFC),
- INIT_DCS_CMD(0x42, 0x01),
- INIT_DCS_CMD(0x43, 0x08),
- INIT_DCS_CMD(0x44, 0x05),
- INIT_DCS_CMD(0x45, 0xF0),
- INIT_DCS_CMD(0x46, 0x01),
- INIT_DCS_CMD(0x47, 0x02),
- INIT_DCS_CMD(0x48, 0x00),
- INIT_DCS_CMD(0x49, 0x58),
- INIT_DCS_CMD(0x4A, 0x00),
- INIT_DCS_CMD(0x4B, 0x05),
- INIT_DCS_CMD(0x4C, 0x03),
- INIT_DCS_CMD(0x4D, 0xD0),
- INIT_DCS_CMD(0x4E, 0x13),
- INIT_DCS_CMD(0x4F, 0xFF),
- INIT_DCS_CMD(0x50, 0x0A),
- INIT_DCS_CMD(0x51, 0x53),
- INIT_DCS_CMD(0x52, 0x26),
- INIT_DCS_CMD(0x53, 0x22),
- INIT_DCS_CMD(0x54, 0x09),
- INIT_DCS_CMD(0x55, 0x22),
- INIT_DCS_CMD(0x56, 0x00),
- INIT_DCS_CMD(0x57, 0x1C),
- INIT_DCS_CMD(0x58, 0x03),
- INIT_DCS_CMD(0x59, 0x3F),
- INIT_DCS_CMD(0x5A, 0x28),
- INIT_DCS_CMD(0x5B, 0x01),
- INIT_DCS_CMD(0x5C, 0xCC),
- INIT_DCS_CMD(0x5D, 0x21),
- INIT_DCS_CMD(0x5E, 0x04),
- INIT_DCS_CMD(0x5F, 0x13),
- INIT_DCS_CMD(0x60, 0x42),
- INIT_DCS_CMD(0x61, 0x08),
- INIT_DCS_CMD(0x62, 0x64),
- INIT_DCS_CMD(0x63, 0xEB),
- INIT_DCS_CMD(0x64, 0x10),
- INIT_DCS_CMD(0x65, 0xA8),
- INIT_DCS_CMD(0x66, 0x84),
- INIT_DCS_CMD(0x67, 0x8E),
- INIT_DCS_CMD(0x68, 0x29),
- INIT_DCS_CMD(0x69, 0x11),
- INIT_DCS_CMD(0x6A, 0x42),
- INIT_DCS_CMD(0x6B, 0x38),
- INIT_DCS_CMD(0x6C, 0x21),
- INIT_DCS_CMD(0x6D, 0x84),
- INIT_DCS_CMD(0x6E, 0x50),
- INIT_DCS_CMD(0x6F, 0xB6),
- INIT_DCS_CMD(0x70, 0x0E),
- INIT_DCS_CMD(0x71, 0xA1),
- INIT_DCS_CMD(0x72, 0xCE),
- INIT_DCS_CMD(0x73, 0xF8),
- INIT_DCS_CMD(0x74, 0xDA),
- INIT_DCS_CMD(0x75, 0x1A),
- INIT_DCS_CMD(0x76, 0x00),
- INIT_DCS_CMD(0x77, 0x00),
- INIT_DCS_CMD(0x78, 0x5F),
- INIT_DCS_CMD(0x79, 0xE0),
- INIT_DCS_CMD(0x7A, 0x01),
- INIT_DCS_CMD(0x7B, 0xFF),
- INIT_DCS_CMD(0x7C, 0xFF),
- INIT_DCS_CMD(0x7D, 0xFF),
- INIT_DCS_CMD(0x7E, 0xFF),
- INIT_DCS_CMD(0x7F, 0xFE),
- INIT_DCS_CMD(0xB1, 0x02),
- INIT_DCS_CMD(0x00, 0xFF),
- INIT_DCS_CMD(0x01, 0x01),
- INIT_DCS_CMD(0x02, 0x00),
- INIT_DCS_CMD(0x03, 0x00),
- INIT_DCS_CMD(0x04, 0x00),
- INIT_DCS_CMD(0x05, 0x00),
- INIT_DCS_CMD(0x06, 0x00),
- INIT_DCS_CMD(0x07, 0x00),
- INIT_DCS_CMD(0x08, 0xC0),
- INIT_DCS_CMD(0x09, 0x00),
- INIT_DCS_CMD(0x0A, 0x00),
- INIT_DCS_CMD(0x0B, 0x04),
- INIT_DCS_CMD(0x0C, 0xE6),
- INIT_DCS_CMD(0x0D, 0x0D),
- INIT_DCS_CMD(0x0F, 0x08),
- INIT_DCS_CMD(0x10, 0xE5),
- INIT_DCS_CMD(0x11, 0xA8),
- INIT_DCS_CMD(0x12, 0xEC),
- INIT_DCS_CMD(0x13, 0x54),
- INIT_DCS_CMD(0x14, 0x5A),
- INIT_DCS_CMD(0x15, 0xD5),
- INIT_DCS_CMD(0x16, 0x23),
- INIT_DCS_CMD(0x17, 0x11),
- INIT_DCS_CMD(0x18, 0x2F),
- INIT_DCS_CMD(0x19, 0x93),
- INIT_DCS_CMD(0x1A, 0xA6),
- INIT_DCS_CMD(0x1B, 0x0F),
- INIT_DCS_CMD(0x1C, 0xFF),
- INIT_DCS_CMD(0x1D, 0xFF),
- INIT_DCS_CMD(0x1E, 0xFF),
- INIT_DCS_CMD(0x1F, 0xFF),
- INIT_DCS_CMD(0x20, 0xFF),
- INIT_DCS_CMD(0x21, 0xFF),
- INIT_DCS_CMD(0x22, 0xFF),
- INIT_DCS_CMD(0x23, 0xFF),
- INIT_DCS_CMD(0x24, 0xFF),
- INIT_DCS_CMD(0x25, 0xFF),
- INIT_DCS_CMD(0x26, 0xFF),
- INIT_DCS_CMD(0x27, 0x1F),
- INIT_DCS_CMD(0x28, 0xC8),
- INIT_DCS_CMD(0x29, 0xFF),
- INIT_DCS_CMD(0x2A, 0xFF),
- INIT_DCS_CMD(0x2B, 0xFF),
- INIT_DCS_CMD(0x2C, 0x07),
- INIT_DCS_CMD(0x2D, 0x03),
- INIT_DCS_CMD(0x33, 0x09),
- INIT_DCS_CMD(0x35, 0x7F),
- INIT_DCS_CMD(0x36, 0x0C),
- INIT_DCS_CMD(0x38, 0x7F),
- INIT_DCS_CMD(0x3A, 0x80),
- INIT_DCS_CMD(0x3B, 0x55),
- INIT_DCS_CMD(0x3C, 0xE2),
- INIT_DCS_CMD(0x3D, 0x32),
- INIT_DCS_CMD(0x3E, 0x00),
- INIT_DCS_CMD(0x3F, 0x58),
- INIT_DCS_CMD(0x40, 0x06),
- INIT_DCS_CMD(0x41, 0x80),
- INIT_DCS_CMD(0x42, 0xCB),
- INIT_DCS_CMD(0x43, 0x2C),
- INIT_DCS_CMD(0x44, 0x61),
- INIT_DCS_CMD(0x45, 0x39),
- INIT_DCS_CMD(0x46, 0x00),
- INIT_DCS_CMD(0x47, 0x00),
- INIT_DCS_CMD(0x48, 0x8B),
- INIT_DCS_CMD(0x49, 0xD2),
- INIT_DCS_CMD(0x4A, 0x01),
- INIT_DCS_CMD(0x4B, 0x00),
- INIT_DCS_CMD(0x4C, 0x10),
- INIT_DCS_CMD(0x4D, 0xC0),
- INIT_DCS_CMD(0x4E, 0x0F),
- INIT_DCS_CMD(0x4F, 0xF1),
- INIT_DCS_CMD(0x50, 0x78),
- INIT_DCS_CMD(0x51, 0x7A),
- INIT_DCS_CMD(0x52, 0x34),
- INIT_DCS_CMD(0x53, 0x99),
- INIT_DCS_CMD(0x54, 0xA2),
- INIT_DCS_CMD(0x55, 0x03),
- INIT_DCS_CMD(0x56, 0x6C),
- INIT_DCS_CMD(0x57, 0x1A),
- INIT_DCS_CMD(0x58, 0x05),
- INIT_DCS_CMD(0x59, 0x30),
- INIT_DCS_CMD(0x5A, 0x1E),
- INIT_DCS_CMD(0x5B, 0x8F),
- INIT_DCS_CMD(0x5C, 0xC7),
- INIT_DCS_CMD(0x5D, 0xE3),
- INIT_DCS_CMD(0x5E, 0xF1),
- INIT_DCS_CMD(0x5F, 0x78),
- INIT_DCS_CMD(0x60, 0x3C),
- INIT_DCS_CMD(0x61, 0x36),
- INIT_DCS_CMD(0x62, 0x1E),
- INIT_DCS_CMD(0x63, 0x1B),
- INIT_DCS_CMD(0x64, 0x8F),
- INIT_DCS_CMD(0x65, 0xC7),
- INIT_DCS_CMD(0x66, 0xE3),
- INIT_DCS_CMD(0x67, 0x31),
- INIT_DCS_CMD(0x68, 0x14),
- INIT_DCS_CMD(0x69, 0x89),
- INIT_DCS_CMD(0x6A, 0x70),
- INIT_DCS_CMD(0x6B, 0x8C),
- INIT_DCS_CMD(0x6C, 0x8D),
- INIT_DCS_CMD(0x6D, 0x8D),
- INIT_DCS_CMD(0x6E, 0x8D),
- INIT_DCS_CMD(0x6F, 0x8D),
- INIT_DCS_CMD(0x70, 0xC7),
- INIT_DCS_CMD(0x71, 0xE3),
- INIT_DCS_CMD(0x72, 0xF1),
- INIT_DCS_CMD(0x73, 0xD8),
- INIT_DCS_CMD(0x74, 0xD8),
- INIT_DCS_CMD(0x75, 0xD8),
- INIT_DCS_CMD(0x76, 0x18),
- INIT_DCS_CMD(0x77, 0x00),
- INIT_DCS_CMD(0x78, 0x00),
- INIT_DCS_CMD(0x79, 0x00),
- INIT_DCS_CMD(0x7A, 0xC6),
- INIT_DCS_CMD(0x7B, 0xC6),
- INIT_DCS_CMD(0x7C, 0xC6),
- INIT_DCS_CMD(0x7D, 0xC6),
- INIT_DCS_CMD(0x7E, 0xC6),
- INIT_DCS_CMD(0x7F, 0xE3),
- INIT_DCS_CMD(0x0B, 0x04),
- INIT_DCS_CMD(0xB1, 0x03),
- INIT_DCS_CMD(0x2C, 0x2C),
- INIT_DCS_CMD(0xB1, 0x00),
- INIT_DCS_CMD(0x89, 0x03),
- INIT_DCS_CMD(0x11),
- INIT_DELAY_CMD(0x78),
- INIT_DCS_CMD(0x29),
- INIT_DELAY_CMD(0x14),
- INIT_END_CMD,
- },
-};
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
deleted file mode 100644
index 18e3cb7..0000000
--- a/src/mainboard/google/kukui/panel_params/panel-STA_2081101QFH032011_53G.c
+++ /dev/null
@@ -1,118 +0,0 @@
-/* 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 = 165731,
- .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, 0x01),
- 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(0xD6, 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(0xCC, 0x08),
- 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,
- },
-};
diff --git a/src/mainboard/google/kukui/panel_ps8640.c b/src/mainboard/google/kukui/panel_ps8640.c
index f758e74..f169254 100644
--- a/src/mainboard/google/kukui/panel_ps8640.c
+++ b/src/mainboard/google/kukui/panel_ps8640.c
@@ -35,7 +35,7 @@
static struct panel_serializable_data ps8640_data = {
.orientation = LB_FB_ORIENTATION_NORMAL,
- .init = { INIT_END_CMD },
+ .init = { PANEL_END },
};
static struct panel_description ps8640_panel = {
diff --git a/src/soc/mediatek/common/dsi.c b/src/soc/mediatek/common/dsi.c
index 5c969db..c517726 100644
--- a/src/soc/mediatek/common/dsi.c
+++ b/src/soc/mediatek/common/dsi.c
@@ -2,6 +2,7 @@
#include <assert.h>
#include <console/console.h>
+#include <device/mipi_panel.h>
#include <device/mmio.h>
#include <delay.h>
#include <edid.h>
@@ -347,75 +348,50 @@
}
}
-static void mtk_dsi_send_init_commands(const u8 *buf)
+static cb_err_t mtk_dsi_send_init_command(enum panel_init_cmd cmd, const u8 *data, u8 len)
{
- if (!buf)
- return;
- const struct lcm_init_command *init = (const void *)buf;
+ u32 type;
- /*
- * The given commands should be in a buffer containing a packed array of
- * lcm_init_command and each element may be in variable size so we have
- * to parse and scan.
- */
-
- for (; init->cmd != LCM_END_CMD; init = (const void *)buf) {
- /*
- * For some commands like DELAY, the init->len should not be
- * counted for buf.
- */
- buf += sizeof(*init);
-
- u32 cmd = init->cmd, len = init->len;
- u32 type;
-
- switch (cmd) {
- case LCM_DELAY_CMD:
- mdelay(len);
- continue;
-
- case LCM_DCS_CMD:
- switch (len) {
- case 0:
- return;
- case 1:
- type = MIPI_DSI_DCS_SHORT_WRITE;
- break;
- case 2:
- type = MIPI_DSI_DCS_SHORT_WRITE_PARAM;
- break;
- default:
- type = MIPI_DSI_DCS_LONG_WRITE;
- break;
- }
+ switch (cmd) {
+ case PANEL_CMD_DCS:
+ switch (len) {
+ case 0:
+ return CB_ERR;
+ case 1:
+ type = MIPI_DSI_DCS_SHORT_WRITE;
break;
-
- case LCM_GENERIC_CMD:
- switch (len) {
- case 0:
- type = MIPI_DSI_GENERIC_SHORT_WRITE_0_PARAM;
- break;
- case 1:
- type = MIPI_DSI_GENERIC_SHORT_WRITE_1_PARAM;
- break;
- case 2:
- type = MIPI_DSI_GENERIC_SHORT_WRITE_2_PARAM;
- break;
- default:
- type = MIPI_DSI_GENERIC_LONG_WRITE;
- break;
- }
+ case 2:
+ type = MIPI_DSI_DCS_SHORT_WRITE_PARAM;
break;
-
default:
- printk(BIOS_ERR, "%s: Unknown cmd: %d, "
- "abort panel initialization.\n", __func__, cmd);
- return;
-
+ type = MIPI_DSI_DCS_LONG_WRITE;
+ break;
}
- buf += len;
- mtk_dsi_cmdq(init->data, len, type);
+ break;
+
+ case PANEL_CMD_GENERIC:
+ switch (len) {
+ case 0:
+ type = MIPI_DSI_GENERIC_SHORT_WRITE_0_PARAM;
+ break;
+ case 1:
+ type = MIPI_DSI_GENERIC_SHORT_WRITE_1_PARAM;
+ break;
+ case 2:
+ type = MIPI_DSI_GENERIC_SHORT_WRITE_2_PARAM;
+ break;
+ default:
+ type = MIPI_DSI_GENERIC_LONG_WRITE;
+ break;
+ }
+ break;
+ default:
+ printk(BIOS_ERR, "Unsupported MIPI panel init command: %d\n", cmd);
+ return CB_ERR;
}
+
+ mtk_dsi_cmdq(data, len, type);
+ return CB_SUCCESS;
}
static void mtk_dsi_reset_dphy(void)
@@ -444,7 +420,7 @@
mtk_dsi_clk_hs_mode_disable();
mtk_dsi_config_vdo_timing(mode_flags, format, lanes, edid, &phy_timing);
mtk_dsi_clk_hs_mode_enable();
- mtk_dsi_send_init_commands(init_commands);
+ mipi_panel_parse_init_commands(init_commands, mtk_dsi_send_init_command);
mtk_dsi_set_mode(mode_flags);
mtk_dsi_start();
diff --git a/src/soc/mediatek/common/include/soc/dsi_common.h b/src/soc/mediatek/common/include/soc/dsi_common.h
index 489a591..31abce0 100644
--- a/src/soc/mediatek/common/include/soc/dsi_common.h
+++ b/src/soc/mediatek/common/include/soc/dsi_common.h
@@ -340,18 +340,6 @@
u32 d_phy;
};
-/* Definitions for cmd in lcm_init_command */
-#define LCM_END_CMD 0
-#define LCM_DELAY_CMD 1
-#define LCM_GENERIC_CMD 2
-#define LCM_DCS_CMD 3
-
-struct lcm_init_command {
- u8 cmd;
- u8 len;
- u8 data[];
-};
-
/* Functions that each SOC should provide. */
void mtk_dsi_reset(void);
void mtk_dsi_configure_mipi_tx(u32 data_rate, u32 lanes);