acpi: Add IORT helper functions
[coreboot2.git] / src / drivers / mipi / panel-INX_HJ110IZ_01A_B2.c
blobeeca375137b3bf002f4bc690c96ccb9f75149563
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <mipi/panel.h>
5 struct panel_serializable_data INX_P110ZZD_DF0 = {
6 .edid = {
7 .ascii_string = "P110ZZD-DF0",
8 .manufacturer_name = "INX",
9 .panel_bits_per_color = 8,
10 .panel_bits_per_pixel = 24,
11 .mode = {
12 .pixel_clock = 166594,
13 .lvds_dual_channel = 0,
14 .refresh = 60,
15 .ha = 1200, .hbl = 76, .hso = 40, .hspw = 8,
16 .va = 2000, .vbl = 200, .vso = 26, .vspw = 2,
17 .phsync = '-', .pvsync = '-',
18 .x_mm = 143, .y_mm = 238,
21 .init = {
22 PANEL_DCS(0xFF, 0x20),
23 PANEL_DCS(0xFB, 0x01),
24 PANEL_DCS(0x05, 0xD1),
25 PANEL_DCS(0x06, 0xC0),
26 PANEL_DCS(0x07, 0x87),
27 PANEL_DCS(0x08, 0x4B),
28 PANEL_DCS(0x0D, 0x63),
29 PANEL_DCS(0x0E, 0x91),
30 PANEL_DCS(0x0F, 0x69),
31 PANEL_DCS(0x94, 0x00),
32 PANEL_DCS(0x95, 0xF5),
33 PANEL_DCS(0x96, 0xF5),
34 PANEL_DCS(0x9D, 0x00),
35 PANEL_DCS(0x9E, 0x00),
36 PANEL_DCS(0x69, 0x98),
37 PANEL_DCS(0x75, 0xA2),
38 PANEL_DCS(0x77, 0xB3),
39 PANEL_DCS(0x58, 0x43),
40 PANEL_DCS(0xFF, 0x24),
41 PANEL_DCS(0xFB, 0x01),
42 PANEL_DCS(0x91, 0x44),
43 PANEL_DCS(0x92, 0x4C),
44 PANEL_DCS(0x94, 0x86),
45 PANEL_DCS(0x60, 0x96),
46 PANEL_DCS(0x61, 0xD0),
47 PANEL_DCS(0x63, 0x70),
48 PANEL_DCS(0xC2, 0xCA),
49 PANEL_DCS(0x00, 0x03),
50 PANEL_DCS(0x01, 0x03),
51 PANEL_DCS(0x02, 0x03),
52 PANEL_DCS(0x03, 0x29),
53 PANEL_DCS(0x04, 0x22),
54 PANEL_DCS(0x05, 0x22),
55 PANEL_DCS(0x06, 0x0B),
56 PANEL_DCS(0x07, 0x1D),
57 PANEL_DCS(0x08, 0x1C),
58 PANEL_DCS(0x09, 0x05),
59 PANEL_DCS(0x0A, 0x08),
60 PANEL_DCS(0x0B, 0x09),
61 PANEL_DCS(0x0C, 0x0A),
62 PANEL_DCS(0x0D, 0x0C),
63 PANEL_DCS(0x0E, 0x0D),
64 PANEL_DCS(0x0F, 0x0E),
65 PANEL_DCS(0x10, 0x0F),
66 PANEL_DCS(0x11, 0x10),
67 PANEL_DCS(0x12, 0x11),
68 PANEL_DCS(0x13, 0x04),
69 PANEL_DCS(0x14, 0x00),
70 PANEL_DCS(0x15, 0x03),
71 PANEL_DCS(0x16, 0x03),
72 PANEL_DCS(0x17, 0x03),
73 PANEL_DCS(0x18, 0x03),
74 PANEL_DCS(0x19, 0x29),
75 PANEL_DCS(0x1A, 0x22),
76 PANEL_DCS(0x1B, 0x22),
77 PANEL_DCS(0x1C, 0x0B),
78 PANEL_DCS(0x1D, 0x1D),
79 PANEL_DCS(0x1E, 0x1C),
80 PANEL_DCS(0x1F, 0x05),
81 PANEL_DCS(0x20, 0x08),
82 PANEL_DCS(0x21, 0x09),
83 PANEL_DCS(0x22, 0x0A),
84 PANEL_DCS(0x23, 0x0C),
85 PANEL_DCS(0x24, 0x0D),
86 PANEL_DCS(0x25, 0x0E),
87 PANEL_DCS(0x26, 0x0F),
88 PANEL_DCS(0x27, 0x10),
89 PANEL_DCS(0x28, 0x11),
90 PANEL_DCS(0x29, 0x04),
91 PANEL_DCS(0x2A, 0x00),
92 PANEL_DCS(0x2B, 0x03),
93 PANEL_DCS(0x2F, 0x0A),
94 PANEL_DCS(0x30, 0x35),
95 PANEL_DCS(0x37, 0xA7),
96 PANEL_DCS(0x39, 0x00),
97 PANEL_DCS(0x3A, 0x46),
98 PANEL_DCS(0x3B, 0x32),
99 PANEL_DCS(0x3D, 0x12),
100 PANEL_DCS(0x3F, 0x33),
101 PANEL_DCS(0x40, 0x31),
102 PANEL_DCS(0x41, 0x40),
103 PANEL_DCS(0x42, 0x42),
104 PANEL_DCS(0x47, 0x77),
105 PANEL_DCS(0x48, 0x77),
106 PANEL_DCS(0x4A, 0x45),
107 PANEL_DCS(0x4B, 0x45),
108 PANEL_DCS(0x4C, 0x14),
109 PANEL_DCS(0x4D, 0x21),
110 PANEL_DCS(0x4E, 0x43),
111 PANEL_DCS(0x4F, 0x65),
112 PANEL_DCS(0x55, 0x06),
113 PANEL_DCS(0x56, 0x06),
114 PANEL_DCS(0x58, 0x21),
115 PANEL_DCS(0x59, 0x70),
116 PANEL_DCS(0x5A, 0x46),
117 PANEL_DCS(0x5B, 0x32),
118 PANEL_DCS(0x5C, 0x88),
119 PANEL_DCS(0x5E, 0x00, 0x00),
120 PANEL_DCS(0x5F, 0x00),
121 PANEL_DCS(0x7A, 0xFF),
122 PANEL_DCS(0x7B, 0xFF),
123 PANEL_DCS(0x7C, 0x00),
124 PANEL_DCS(0x7D, 0x00),
125 PANEL_DCS(0x7E, 0x20),
126 PANEL_DCS(0x7F, 0x3C),
127 PANEL_DCS(0x80, 0x00),
128 PANEL_DCS(0x81, 0x00),
129 PANEL_DCS(0x82, 0x08),
130 PANEL_DCS(0x97, 0x02),
131 PANEL_DCS(0xC5, 0x10),
132 PANEL_DCS(0xD7, 0x55),
133 PANEL_DCS(0xD8, 0x55),
134 PANEL_DCS(0xD9, 0x23),
135 PANEL_DCS(0xDA, 0x05),
136 PANEL_DCS(0xDB, 0x01),
137 PANEL_DCS(0xDC, 0x65),
138 PANEL_DCS(0xDD, 0x55),
139 PANEL_DCS(0xDE, 0x27),
140 PANEL_DCS(0xDF, 0x01),
141 PANEL_DCS(0xE0, 0x65),
142 PANEL_DCS(0xE1, 0x01),
143 PANEL_DCS(0xE2, 0x65),
144 PANEL_DCS(0xE3, 0x01),
145 PANEL_DCS(0xE4, 0x65),
146 PANEL_DCS(0xE5, 0x01),
147 PANEL_DCS(0xE6, 0x65),
148 PANEL_DCS(0xE7, 0x00),
149 PANEL_DCS(0xE8, 0x00),
150 PANEL_DCS(0xE9, 0x01),
151 PANEL_DCS(0xEA, 0x65),
152 PANEL_DCS(0xEB, 0x01),
153 PANEL_DCS(0xEE, 0x65),
154 PANEL_DCS(0xEF, 0x01),
155 PANEL_DCS(0xF0, 0x65),
156 PANEL_DCS(0xB6, 0x05, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x05, 0x00, 0x00),
157 PANEL_DCS(0xFF, 0x25),
158 PANEL_DCS(0xFB, 0x01),
159 PANEL_DCS(0x05, 0x00),
160 PANEL_DCS(0xF1, 0x10),
161 PANEL_DCS(0x1E, 0x00),
162 PANEL_DCS(0x1F, 0x46),
163 PANEL_DCS(0x20, 0x32),
164 PANEL_DCS(0x25, 0x00),
165 PANEL_DCS(0x26, 0x46),
166 PANEL_DCS(0x27, 0x32),
167 PANEL_DCS(0x3F, 0x80),
168 PANEL_DCS(0x40, 0x00),
169 PANEL_DCS(0x43, 0x00),
170 PANEL_DCS(0x44, 0x46),
171 PANEL_DCS(0x45, 0x46),
172 PANEL_DCS(0x48, 0x46),
173 PANEL_DCS(0x49, 0x32),
174 PANEL_DCS(0x5B, 0x80),
175 PANEL_DCS(0x5C, 0x00),
176 PANEL_DCS(0x5D, 0x46),
177 PANEL_DCS(0x5E, 0x32),
178 PANEL_DCS(0x5F, 0x46),
179 PANEL_DCS(0x60, 0x32),
180 PANEL_DCS(0x61, 0x46),
181 PANEL_DCS(0x62, 0x32),
182 PANEL_DCS(0x68, 0x0C),
183 PANEL_DCS(0x6C, 0x0D),
184 PANEL_DCS(0x6E, 0x0D),
185 PANEL_DCS(0x78, 0x00),
186 PANEL_DCS(0x79, 0xC5),
187 PANEL_DCS(0x7A, 0x0C),
188 PANEL_DCS(0x7B, 0xB0),
189 PANEL_DCS(0xFF, 0x26),
190 PANEL_DCS(0xFB, 0x01),
191 PANEL_DCS(0x00, 0xA1),
192 PANEL_DCS(0x02, 0x31),
193 PANEL_DCS(0x0A, 0xF4),
194 PANEL_DCS(0x04, 0x50),
195 PANEL_DCS(0x06, 0x30),
196 PANEL_DCS(0x0C, 0x16),
197 PANEL_DCS(0x0D, 0x0D),
198 PANEL_DCS(0x0F, 0x00),
199 PANEL_DCS(0x11, 0x00),
200 PANEL_DCS(0x12, 0x50),
201 PANEL_DCS(0x13, 0x40),
202 PANEL_DCS(0x14, 0x58),
203 PANEL_DCS(0x15, 0x00),
204 PANEL_DCS(0x16, 0x10),
205 PANEL_DCS(0x17, 0xA0),
206 PANEL_DCS(0x18, 0x86),
207 PANEL_DCS(0x22, 0x00),
208 PANEL_DCS(0x23, 0x00),
209 PANEL_DCS(0x19, 0x0E),
210 PANEL_DCS(0x1A, 0x31),
211 PANEL_DCS(0x1B, 0x0D),
212 PANEL_DCS(0x1C, 0x29),
213 PANEL_DCS(0x2A, 0x0E),
214 PANEL_DCS(0x2B, 0x31),
215 PANEL_DCS(0x1D, 0x00),
216 PANEL_DCS(0x1E, 0x62),
217 PANEL_DCS(0x1F, 0x62),
218 PANEL_DCS(0x2F, 0x06),
219 PANEL_DCS(0x30, 0x62),
220 PANEL_DCS(0x31, 0x06),
221 PANEL_DCS(0x32, 0x7F),
222 PANEL_DCS(0x33, 0x11),
223 PANEL_DCS(0x34, 0x89),
224 PANEL_DCS(0x35, 0x67),
225 PANEL_DCS(0x39, 0x0B),
226 PANEL_DCS(0x3A, 0x62),
227 PANEL_DCS(0x3B, 0x06),
228 PANEL_DCS(0xC8, 0x04),
229 PANEL_DCS(0xC9, 0x89),
230 PANEL_DCS(0xCA, 0x4E),
231 PANEL_DCS(0xCB, 0x00),
232 PANEL_DCS(0xA9, 0x3F),
233 PANEL_DCS(0xAA, 0x3E),
234 PANEL_DCS(0xAB, 0x3D),
235 PANEL_DCS(0xAC, 0x3C),
236 PANEL_DCS(0xAD, 0x3B),
237 PANEL_DCS(0xAE, 0x3A),
238 PANEL_DCS(0xAF, 0x39),
239 PANEL_DCS(0xB0, 0x38),
240 PANEL_DCS(0xFF, 0x27),
241 PANEL_DCS(0xFB, 0x01),
242 PANEL_DCS(0xD0, 0x11),
243 PANEL_DCS(0xD1, 0x54),
244 PANEL_DCS(0xDE, 0x43),
245 PANEL_DCS(0xDF, 0x02),
246 PANEL_DCS(0xC0, 0x18),
247 PANEL_DCS(0xC1, 0x00),
248 PANEL_DCS(0xC2, 0x00),
249 PANEL_DCS(0x00, 0x00),
250 PANEL_DCS(0xC3, 0x00),
251 PANEL_DCS(0x56, 0x06),
252 PANEL_DCS(0x58, 0x80),
253 PANEL_DCS(0x59, 0x78),
254 PANEL_DCS(0x5A, 0x00),
255 PANEL_DCS(0x5B, 0x18),
256 PANEL_DCS(0x5C, 0x00),
257 PANEL_DCS(0x5D, 0x01),
258 PANEL_DCS(0x5E, 0x20),
259 PANEL_DCS(0x5F, 0x10),
260 PANEL_DCS(0x60, 0x00),
261 PANEL_DCS(0x61, 0x1C),
262 PANEL_DCS(0x62, 0x00),
263 PANEL_DCS(0x63, 0x01),
264 PANEL_DCS(0x64, 0x44),
265 PANEL_DCS(0x65, 0x1B),
266 PANEL_DCS(0x66, 0x00),
267 PANEL_DCS(0x67, 0x01),
268 PANEL_DCS(0x68, 0x44),
269 PANEL_DCS(0x98, 0x01),
270 PANEL_DCS(0xB4, 0x03),
271 PANEL_DCS(0x9B, 0xBE),
272 PANEL_DCS(0xAB, 0x14),
273 PANEL_DCS(0xBC, 0x08),
274 PANEL_DCS(0xBD, 0x28),
275 PANEL_DCS(0xFF, 0x2A),
276 PANEL_DCS(0xFB, 0x01),
277 PANEL_DCS(0x22, 0x2F),
278 PANEL_DCS(0x23, 0x08),
279 PANEL_DCS(0x24, 0x00),
280 PANEL_DCS(0x25, 0x62),
281 PANEL_DCS(0x26, 0xF8),
282 PANEL_DCS(0x27, 0x00),
283 PANEL_DCS(0x28, 0x1A),
284 PANEL_DCS(0x29, 0x00),
285 PANEL_DCS(0x2A, 0x1A),
286 PANEL_DCS(0x2B, 0x00),
287 PANEL_DCS(0x2D, 0x1A),
288 PANEL_DCS(0x64, 0x96),
289 PANEL_DCS(0x65, 0x10),
290 PANEL_DCS(0x66, 0x00),
291 PANEL_DCS(0x67, 0x96),
292 PANEL_DCS(0x68, 0x10),
293 PANEL_DCS(0x69, 0x00),
294 PANEL_DCS(0x6A, 0x96),
295 PANEL_DCS(0x6B, 0x10),
296 PANEL_DCS(0x6C, 0x00),
297 PANEL_DCS(0x70, 0x92),
298 PANEL_DCS(0x71, 0x10),
299 PANEL_DCS(0x72, 0x00),
300 PANEL_DCS(0x79, 0x96),
301 PANEL_DCS(0x7A, 0x10),
302 PANEL_DCS(0x88, 0x96),
303 PANEL_DCS(0x89, 0x10),
304 PANEL_DCS(0xA2, 0x3F),
305 PANEL_DCS(0xA3, 0x30),
306 PANEL_DCS(0xA4, 0xC0),
307 PANEL_DCS(0xA5, 0x03),
308 PANEL_DCS(0xE8, 0x00),
309 PANEL_DCS(0x97, 0x3C),
310 PANEL_DCS(0x98, 0x02),
311 PANEL_DCS(0x99, 0x95),
312 PANEL_DCS(0x9A, 0x06),
313 PANEL_DCS(0x9B, 0x00),
314 PANEL_DCS(0x9C, 0x0B),
315 PANEL_DCS(0x9D, 0x0A),
316 PANEL_DCS(0x9E, 0x90),
317 PANEL_DCS(0xFF, 0x25),
318 PANEL_DCS(0x13, 0x02),
319 PANEL_DCS(0x14, 0xD7),
320 PANEL_DCS(0xDB, 0x02),
321 PANEL_DCS(0xDC, 0xD7),
322 PANEL_DCS(0x17, 0xCF),
323 PANEL_DCS(0x19, 0x0F),
324 PANEL_DCS(0x1B, 0x5B),
325 PANEL_DCS(0xFF, 0x20),
326 PANEL_DCS(0xB0, 0x00, 0x00, 0x00, 0x0C, 0x00, 0x24, 0x00, 0x38, 0x00, 0x4C, 0x00, 0x5E, 0x00, 0x6F, 0x00, 0x7E),
327 PANEL_DCS(0xB1, 0x00, 0x8C, 0x00, 0xBE, 0x00, 0xE5, 0x01, 0x27, 0x01, 0x58, 0x01, 0xA8, 0x01, 0xE8, 0x01, 0xEA),
328 PANEL_DCS(0xB2, 0x02, 0x28, 0x02, 0x71, 0x02, 0x9E, 0x02, 0xDA, 0x03, 0x00, 0x03, 0x31, 0x03, 0x40, 0x03, 0x51),
329 PANEL_DCS(0xB3, 0x03, 0x62, 0x03, 0x75, 0x03, 0x89, 0x03, 0x9C, 0x03, 0xAA, 0x03, 0xB2),
330 PANEL_DCS(0xB4, 0x00, 0x00, 0x00, 0x0D, 0x00, 0x27, 0x00, 0x3D, 0x00, 0x52, 0x00, 0x64, 0x00, 0x75, 0x00, 0x84),
331 PANEL_DCS(0xB5, 0x00, 0x93, 0x00, 0xC5, 0x00, 0xEC, 0x01, 0x2C, 0x01, 0x5D, 0x01, 0xAC, 0x01, 0xEC, 0x01, 0xEE),
332 PANEL_DCS(0xB6, 0x02, 0x2B, 0x02, 0x73, 0x02, 0xA0, 0x02, 0xDB, 0x03, 0x01, 0x03, 0x31, 0x03, 0x41, 0x03, 0x51),
333 PANEL_DCS(0xB7, 0x03, 0x63, 0x03, 0x75, 0x03, 0x89, 0x03, 0x9C, 0x03, 0xAA, 0x03, 0xB2),
334 PANEL_DCS(0xB8, 0x00, 0x00, 0x00, 0x0E, 0x00, 0x2A, 0x00, 0x40, 0x00, 0x56, 0x00, 0x68, 0x00, 0x7A, 0x00, 0x89),
335 PANEL_DCS(0xB9, 0x00, 0x98, 0x00, 0xC9, 0x00, 0xF1, 0x01, 0x30, 0x01, 0x61, 0x01, 0xB0, 0x01, 0xEF, 0x01, 0xF1),
336 PANEL_DCS(0xBA, 0x02, 0x2E, 0x02, 0x76, 0x02, 0xA3, 0x02, 0xDD, 0x03, 0x02, 0x03, 0x32, 0x03, 0x42, 0x03, 0x53),
337 PANEL_DCS(0xBB, 0x03, 0x66, 0x03, 0x75, 0x03, 0x89, 0x03, 0x9C, 0x03, 0xAA, 0x03, 0xB2),
338 PANEL_DCS(0xFF, 0x21),
339 PANEL_DCS(0xB0, 0x00, 0x00, 0x00, 0x0C, 0x00, 0x24, 0x00, 0x38, 0x00, 0x4C, 0x00, 0x5E, 0x00, 0x6F, 0x00, 0x7E),
340 PANEL_DCS(0xB1, 0x00, 0x8C, 0x00, 0xBE, 0x00, 0xE5, 0x01, 0x27, 0x01, 0x58, 0x01, 0xA8, 0x01, 0xE8, 0x01, 0xEA),
341 PANEL_DCS(0xB2, 0x02, 0x28, 0x02, 0x71, 0x02, 0x9E, 0x02, 0xDA, 0x03, 0x00, 0x03, 0x31, 0x03, 0x40, 0x03, 0x51),
342 PANEL_DCS(0xB3, 0x03, 0x62, 0x03, 0x77, 0x03, 0x90, 0x03, 0xAC, 0x03, 0xCA, 0x03, 0xDA),
343 PANEL_DCS(0xB4, 0x00, 0x00, 0x00, 0x0D, 0x00, 0x27, 0x00, 0x3D, 0x00, 0x52, 0x00, 0x64, 0x00, 0x75, 0x00, 0x84),
344 PANEL_DCS(0xB5, 0x00, 0x93, 0x00, 0xC5, 0x00, 0xEC, 0x01, 0x2C, 0x01, 0x5D, 0x01, 0xAC, 0x01, 0xEC, 0x01, 0xEE),
345 PANEL_DCS(0xB6, 0x02, 0x2B, 0x02, 0x73, 0x02, 0xA0, 0x02, 0xDB, 0x03, 0x01, 0x03, 0x31, 0x03, 0x41, 0x03, 0x51),
346 PANEL_DCS(0xB7, 0x03, 0x63, 0x03, 0x77, 0x03, 0x90, 0x03, 0xAC, 0x03, 0xCA, 0x03, 0xDA),
347 PANEL_DCS(0xB8, 0x00, 0x00, 0x00, 0x0E, 0x00, 0x2A, 0x00, 0x40, 0x00, 0x56, 0x00, 0x68, 0x00, 0x7A, 0x00, 0x89),
348 PANEL_DCS(0xB9, 0x00, 0x98, 0x00, 0xC9, 0x00, 0xF1, 0x01, 0x30, 0x01, 0x61, 0x01, 0xB0, 0x01, 0xEF, 0x01, 0xF1),
349 PANEL_DCS(0xBA, 0x02, 0x2E, 0x02, 0x76, 0x02, 0xA3, 0x02, 0xDD, 0x03, 0x02, 0x03, 0x32, 0x03, 0x42, 0x03, 0x53),
350 PANEL_DCS(0xBB, 0x03, 0x66, 0x03, 0x77, 0x03, 0x90, 0x03, 0xAC, 0x03, 0xCA, 0x03, 0xDA),
351 PANEL_DCS(0xFF, 0xF0),
352 PANEL_DCS(0xFB, 0x01),
353 PANEL_DCS(0x3A, 0x08),
354 PANEL_DCS(0xFF, 0x10),
355 PANEL_DCS(0xB9, 0x01),
356 PANEL_DCS(0xFF, 0x20),
357 PANEL_DCS(0x18, 0x40),
358 PANEL_DCS(0xFF, 0x10),
359 PANEL_DCS(0xB9, 0x02),
360 PANEL_DCS(0xFF, 0x10),
361 PANEL_DCS(0xFB, 0x01),
362 PANEL_DCS(0xB0, 0x01),
363 PANEL_DCS(0x35, 0x00),
364 PANEL_DCS(0x3B, 0x03, 0xAE, 0x1A, 0x04, 0x04),
365 PANEL_DELAY(100),
366 PANEL_DCS(0x11),
367 PANEL_DELAY(200),
368 PANEL_DCS(0x29),
369 PANEL_DELAY(100),
370 PANEL_END,