acpi: Add IORT helper functions
[coreboot2.git] / src / drivers / mipi / panel-STA_HIMAX83102_J02.c
blob01fa6f55cfd2b2f6fdd1d6a40f99881c3048bff6
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <mipi/panel.h>
5 struct panel_serializable_data STA_HIMAX83102_J02 = {
6 .edid = {
7 .ascii_string = "HIMAX83102-J02",
8 .manufacturer_name = "STA",
9 .panel_bits_per_color = 8,
10 .panel_bits_per_pixel = 24,
11 .mode = {
12 .pixel_clock = 160368,
13 .lvds_dual_channel = 0,
14 .refresh = 60,
15 .ha = 1200, .hbl = 100, .hso = 40, .hspw = 20,
16 .va = 1920, .vbl = 136, .vso = 116, .vspw = 8,
17 .phsync = '-', .pvsync = '-',
18 .x_mm = 141, .y_mm = 226,
21 .init = {
22 PANEL_DCS(0xB9, 0x83, 0x10, 0x21, 0x55, 0x00),
23 PANEL_DCS(0xB1, 0x2C, 0xB5, 0xB5, 0x31, 0xF1, 0x31, 0xD7, 0x2F, 0x36,
24 0x36, 0x36, 0x36, 0x1A, 0x8B, 0x11, 0x65, 0x00, 0x88, 0xFA, 0xFF,
25 0xFF, 0x8F, 0xFF, 0x08, 0x74, 0x33),
26 PANEL_DCS(0xB2, 0x00, 0x47, 0xB0, 0x80, 0x00, 0x12, 0x72, 0x3C, 0xA3,
27 0x03, 0x03, 0x00, 0x00, 0x88, 0xF5),
28 PANEL_DCS(0xB4, 0x76, 0x76, 0x76, 0x76, 0x76, 0x76, 0x63, 0x5C, 0x63,
29 0x5C, 0x01, 0x9E),
30 PANEL_DCS(0xE9, 0xCD),
31 PANEL_DCS(0xBA, 0x84),
32 PANEL_DCS(0xE9, 0x3F),
33 PANEL_DCS(0xBC, 0x1B, 0x04),
34 PANEL_DCS(0xBE, 0x20),
35 PANEL_DCS(0xBF, 0xFC, 0xC4),
36 PANEL_DCS(0xC0, 0x36, 0x36, 0x22, 0x11, 0x22, 0xA0, 0x61, 0x08, 0xF5,
37 0x03),
38 PANEL_DCS(0xE9, 0xCC),
39 PANEL_DCS(0xC7, 0x80),
40 PANEL_DCS(0xE9, 0x3F),
41 PANEL_DCS(0xE9, 0xC6),
42 PANEL_DCS(0xC8, 0x97),
43 PANEL_DCS(0xE9, 0x3F),
44 PANEL_DCS(0xC9, 0x00, 0x1E, 0x13, 0x88, 0x01),
45 PANEL_DCS(0xCB, 0x08, 0x13, 0x07, 0x00, 0x0F, 0x33),
46 PANEL_DCS(0xCC, 0x02),
47 PANEL_DCS(0xE9, 0xC4),
48 PANEL_DCS(0xD0, 0x03),
49 PANEL_DCS(0xE9, 0x3F),
50 PANEL_DCS(0xD1, 0x37, 0x06, 0x00, 0x02, 0x04, 0x0C, 0xFF),
51 PANEL_DCS(0xD2, 0x1F, 0x11, 0x1F),
52 PANEL_DCS(0xD3, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x08,
53 0x37, 0x47, 0x34, 0x3B, 0x12, 0x12, 0x03, 0x03, 0x32, 0x10, 0x10,
54 0x00, 0x10, 0x32, 0x10, 0x08, 0x00, 0x08, 0x32, 0x17, 0x94, 0x07,
55 0x94, 0x00, 0x00),
56 PANEL_DCS(0xD5, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
57 0x18, 0x19, 0x19, 0x40, 0x40, 0x1A, 0x1A, 0x1B, 0x1B, 0x00, 0x01,
58 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x20, 0x21, 0x28, 0x29, 0x18,
59 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
60 0x18, 0x18),
61 PANEL_DCS(0xD6, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
62 0x18, 0x40, 0x40, 0x19, 0x19, 0x1A, 0x1A, 0x1B, 0x1B, 0x07, 0x06,
63 0x05, 0x04, 0x03, 0x02, 0x01, 0x00, 0x29, 0x28, 0x21, 0x20, 0x18,
64 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
65 0x18, 0x18),
66 PANEL_DCS(0xD8, 0xAA, 0xBA, 0xEA, 0xAA, 0xAA, 0xA0, 0xAA, 0xBA, 0xEA,
67 0xAA, 0xAA, 0xA0, 0xAA, 0xBA, 0xEA, 0xAA, 0xAA, 0xA0, 0xAA, 0xBA,
68 0xEA, 0xAA, 0xAA, 0xA0, 0xAA, 0xBA, 0xEA, 0xAA, 0xAA, 0xA0, 0xAA,
69 0xBA, 0xEA, 0xAA, 0xAA, 0xA0),
70 PANEL_DCS(0xE0, 0x00, 0x09, 0x14, 0x1E, 0x26, 0x48, 0x61, 0x67, 0x6C,
71 0x67, 0x7D, 0x7F, 0x80, 0x8B, 0x87, 0x8F, 0x98, 0xAB, 0xAB, 0x55,
72 0x5C, 0x68, 0x73, 0x00, 0x09, 0x14, 0x1E, 0x26, 0x48, 0x61, 0x67,
73 0x6C, 0x67, 0x7D, 0x7F, 0x80, 0x8B, 0x87, 0x8F, 0x98, 0xAB, 0xAB,
74 0x55, 0x5C, 0x68, 0x73),
75 PANEL_DCS(0xE7, 0x0E, 0x10, 0x10, 0x21, 0x2B, 0x9A, 0x02, 0x54, 0x9A,
76 0x14, 0x14, 0x00, 0x00, 0x00, 0x00, 0x12, 0x05, 0x02, 0x02, 0x10),
77 PANEL_DCS(0xBD, 0x01),
78 PANEL_DCS(0xB1, 0x01, 0xBF, 0x11),
79 PANEL_DCS(0xCB, 0x86),
80 PANEL_DCS(0xD2, 0x3C, 0xFA),
81 PANEL_DCS(0xD3, 0x00, 0x00, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
82 0x0C, 0x01),
83 PANEL_DCS(0xE7, 0x02, 0x00, 0x28, 0x01, 0x7E, 0x0F, 0x7E, 0x10, 0xA0,
84 0x00, 0x00, 0x20, 0x40, 0x50, 0x40),
85 PANEL_DCS(0xBD, 0x02),
86 PANEL_DCS(0xD8, 0xFF, 0xFF, 0xBF, 0xFE, 0xAA, 0xA0, 0xFF, 0xFF, 0xBF,
87 0xFE, 0xAA, 0xA0),
88 PANEL_DCS(0xE7, 0xFE, 0x04, 0xFE, 0x04, 0xFE, 0x04, 0x03, 0x03, 0x03,
89 0x26, 0x00, 0x26, 0x81, 0x02, 0x40, 0x00, 0x20, 0x9E, 0x04, 0x03,
90 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00),
91 PANEL_DCS(0xBD, 0x03),
92 PANEL_DCS(0xE9, 0xC6),
93 PANEL_DCS(0xB4, 0x03, 0xFF, 0xF8),
94 PANEL_DCS(0xE9, 0x3F),
95 PANEL_DCS(0xD8, 0x00, 0x2A, 0xAA, 0xA8, 0x00, 0x00, 0x00, 0x2A, 0xAA,
96 0xA8, 0x00, 0x00, 0x00, 0x3F, 0xFF, 0xFC, 0x00, 0x00, 0x00, 0x3F,
97 0xFF, 0xFC, 0x00, 0x00, 0x00, 0x2A, 0xAA, 0xA8, 0x00, 0x00, 0x00,
98 0x2A, 0xAA, 0xA8, 0x00, 0x00),
99 PANEL_DCS(0xBD, 0x00),
100 PANEL_DCS(0xE9, 0xC4),
101 PANEL_DCS(0xBA, 0x96),
102 PANEL_DCS(0xE9, 0x3F),
103 PANEL_DCS(0xBD, 0x01),
104 PANEL_DCS(0xE9, 0xC5),
105 PANEL_DCS(0xBA, 0x4F),
106 PANEL_DCS(0xE9, 0x3F),
107 PANEL_DCS(0xBD, 0x00),
108 PANEL_DCS(0x11),
109 PANEL_DELAY(120),
110 PANEL_DCS(0x29),