1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33 #ifndef _INTEL_BIOS_PRIVATE
34 #error "intel_vbt_defs.h is private to intel_bios.c"
35 #endif
36
37 #ifndef _INTEL_VBT_DEFS_H_
38 #define _INTEL_VBT_DEFS_H_
39
40 #include "intel_bios.h"
41
42
43
44
45
46
47
48
49
50
51
52
53 struct vbt_header {
54 u8 signature[20];
55 u16 version;
56 u16 header_size;
57 u16 vbt_size;
58 u8 vbt_checksum;
59 u8 reserved0;
60 u32 bdb_offset;
61 u32 aim_offset[4];
62 } __packed;
63
64
65
66
67
68
69
70
71 struct bdb_header {
72 u8 signature[16];
73 u16 version;
74 u16 header_size;
75 u16 bdb_size;
76 } __packed;
77
78
79
80
81
82
83 enum bdb_block_id {
84 BDB_GENERAL_FEATURES = 1,
85 BDB_GENERAL_DEFINITIONS = 2,
86 BDB_OLD_TOGGLE_LIST = 3,
87 BDB_MODE_SUPPORT_LIST = 4,
88 BDB_GENERIC_MODE_TABLE = 5,
89 BDB_EXT_MMIO_REGS = 6,
90 BDB_SWF_IO = 7,
91 BDB_SWF_MMIO = 8,
92 BDB_PSR = 9,
93 BDB_MODE_REMOVAL_TABLE = 10,
94 BDB_CHILD_DEVICE_TABLE = 11,
95 BDB_DRIVER_FEATURES = 12,
96 BDB_DRIVER_PERSISTENCE = 13,
97 BDB_EXT_TABLE_PTRS = 14,
98 BDB_DOT_CLOCK_OVERRIDE = 15,
99 BDB_DISPLAY_SELECT = 16,
100 BDB_DRIVER_ROTATION = 18,
101 BDB_DISPLAY_REMOVE = 19,
102 BDB_OEM_CUSTOM = 20,
103 BDB_EFP_LIST = 21,
104 BDB_SDVO_LVDS_OPTIONS = 22,
105 BDB_SDVO_PANEL_DTDS = 23,
106 BDB_SDVO_LVDS_PNP_IDS = 24,
107 BDB_SDVO_LVDS_POWER_SEQ = 25,
108 BDB_TV_OPTIONS = 26,
109 BDB_EDP = 27,
110 BDB_LVDS_OPTIONS = 40,
111 BDB_LVDS_LFP_DATA_PTRS = 41,
112 BDB_LVDS_LFP_DATA = 42,
113 BDB_LVDS_BACKLIGHT = 43,
114 BDB_LVDS_POWER = 44,
115 BDB_MIPI_CONFIG = 52,
116 BDB_MIPI_SEQUENCE = 53,
117 BDB_SKIP = 254,
118 };
119
120
121
122
123
124 struct bdb_general_features {
125
126 u8 panel_fitting:2;
127 u8 flexaim:1;
128 u8 msg_enable:1;
129 u8 clear_screen:3;
130 u8 color_flip:1;
131
132
133 u8 download_ext_vbt:1;
134 u8 enable_ssc:1;
135 u8 ssc_freq:1;
136 u8 enable_lfp_on_override:1;
137 u8 disable_ssc_ddt:1;
138 u8 underscan_vga_timings:1;
139 u8 display_clock_mode:1;
140 u8 vbios_hotplug_support:1;
141
142
143 u8 disable_smooth_vision:1;
144 u8 single_dvi:1;
145 u8 rotate_180:1;
146 u8 fdi_rx_polarity_inverted:1;
147 u8 vbios_extended_mode:1;
148 u8 copy_ilfp_dtd_to_sdvo_lvds_dtd:1;
149 u8 panel_best_fit_timing:1;
150 u8 ignore_strap_state:1;
151
152
153 u8 legacy_monitor_detect;
154
155
156 u8 int_crt_support:1;
157 u8 int_tv_support:1;
158 u8 int_efp_support:1;
159 u8 dp_ssc_enable:1;
160 u8 dp_ssc_freq:1;
161 u8 dp_ssc_dongle_supported:1;
162 u8 rsvd11:2;
163 } __packed;
164
165
166
167
168
169
170 #define GPIO_PIN_DVI_LVDS 0x03
171 #define GPIO_PIN_ADD_I2C 0x05
172 #define GPIO_PIN_ADD_DDC 0x04
173 #define GPIO_PIN_ADD_DDC_I2C 0x06
174
175
176 #define DEVICE_TYPE_NONE 0x00
177 #define DEVICE_TYPE_CRT 0x01
178 #define DEVICE_TYPE_TV 0x09
179 #define DEVICE_TYPE_EFP 0x12
180 #define DEVICE_TYPE_LFP 0x22
181
182 #define DEVICE_TYPE_CRT_DPMS 0x6001
183 #define DEVICE_TYPE_CRT_DPMS_HOTPLUG 0x4001
184 #define DEVICE_TYPE_TV_COMPOSITE 0x0209
185 #define DEVICE_TYPE_TV_MACROVISION 0x0289
186 #define DEVICE_TYPE_TV_RF_COMPOSITE 0x020c
187 #define DEVICE_TYPE_TV_SVIDEO_COMPOSITE 0x0609
188 #define DEVICE_TYPE_TV_SCART 0x0209
189 #define DEVICE_TYPE_TV_CODEC_HOTPLUG_PWR 0x6009
190 #define DEVICE_TYPE_EFP_HOTPLUG_PWR 0x6012
191 #define DEVICE_TYPE_EFP_DVI_HOTPLUG_PWR 0x6052
192 #define DEVICE_TYPE_EFP_DVI_I 0x6053
193 #define DEVICE_TYPE_EFP_DVI_D_DUAL 0x6152
194 #define DEVICE_TYPE_EFP_DVI_D_HDCP 0x60d2
195 #define DEVICE_TYPE_OPENLDI_HOTPLUG_PWR 0x6062
196 #define DEVICE_TYPE_OPENLDI_DUALPIX 0x6162
197 #define DEVICE_TYPE_LFP_PANELLINK 0x5012
198 #define DEVICE_TYPE_LFP_CMOS_PWR 0x5042
199 #define DEVICE_TYPE_LFP_LVDS_PWR 0x5062
200 #define DEVICE_TYPE_LFP_LVDS_DUAL 0x5162
201 #define DEVICE_TYPE_LFP_LVDS_DUAL_HDCP 0x51e2
202
203
204 #define DEVICE_TYPE_INT_LFP 0x1022
205 #define DEVICE_TYPE_INT_TV 0x1009
206 #define DEVICE_TYPE_HDMI 0x60D2
207 #define DEVICE_TYPE_DP 0x68C6
208 #define DEVICE_TYPE_DP_DUAL_MODE 0x60D6
209 #define DEVICE_TYPE_eDP 0x78C6
210
211 #define DEVICE_TYPE_CLASS_EXTENSION (1 << 15)
212 #define DEVICE_TYPE_POWER_MANAGEMENT (1 << 14)
213 #define DEVICE_TYPE_HOTPLUG_SIGNALING (1 << 13)
214 #define DEVICE_TYPE_INTERNAL_CONNECTOR (1 << 12)
215 #define DEVICE_TYPE_NOT_HDMI_OUTPUT (1 << 11)
216 #define DEVICE_TYPE_MIPI_OUTPUT (1 << 10)
217 #define DEVICE_TYPE_COMPOSITE_OUTPUT (1 << 9)
218 #define DEVICE_TYPE_DUAL_CHANNEL (1 << 8)
219 #define DEVICE_TYPE_HIGH_SPEED_LINK (1 << 6)
220 #define DEVICE_TYPE_LVDS_SIGNALING (1 << 5)
221 #define DEVICE_TYPE_TMDS_DVI_SIGNALING (1 << 4)
222 #define DEVICE_TYPE_VIDEO_SIGNALING (1 << 3)
223 #define DEVICE_TYPE_DISPLAYPORT_OUTPUT (1 << 2)
224 #define DEVICE_TYPE_DIGITAL_OUTPUT (1 << 1)
225 #define DEVICE_TYPE_ANALOG_OUTPUT (1 << 0)
226
227
228
229
230
231 #define DEVICE_TYPE_eDP_BITS \
232 (DEVICE_TYPE_INTERNAL_CONNECTOR | \
233 DEVICE_TYPE_MIPI_OUTPUT | \
234 DEVICE_TYPE_COMPOSITE_OUTPUT | \
235 DEVICE_TYPE_DUAL_CHANNEL | \
236 DEVICE_TYPE_LVDS_SIGNALING | \
237 DEVICE_TYPE_TMDS_DVI_SIGNALING | \
238 DEVICE_TYPE_VIDEO_SIGNALING | \
239 DEVICE_TYPE_DISPLAYPORT_OUTPUT | \
240 DEVICE_TYPE_ANALOG_OUTPUT)
241
242 #define DEVICE_TYPE_DP_DUAL_MODE_BITS \
243 (DEVICE_TYPE_INTERNAL_CONNECTOR | \
244 DEVICE_TYPE_MIPI_OUTPUT | \
245 DEVICE_TYPE_COMPOSITE_OUTPUT | \
246 DEVICE_TYPE_LVDS_SIGNALING | \
247 DEVICE_TYPE_TMDS_DVI_SIGNALING | \
248 DEVICE_TYPE_VIDEO_SIGNALING | \
249 DEVICE_TYPE_DISPLAYPORT_OUTPUT | \
250 DEVICE_TYPE_DIGITAL_OUTPUT | \
251 DEVICE_TYPE_ANALOG_OUTPUT)
252
253 #define DEVICE_CFG_NONE 0x00
254 #define DEVICE_CFG_12BIT_DVOB 0x01
255 #define DEVICE_CFG_12BIT_DVOC 0x02
256 #define DEVICE_CFG_24BIT_DVOBC 0x09
257 #define DEVICE_CFG_24BIT_DVOCB 0x0a
258 #define DEVICE_CFG_DUAL_DVOB 0x11
259 #define DEVICE_CFG_DUAL_DVOC 0x12
260 #define DEVICE_CFG_DUAL_DVOBC 0x13
261 #define DEVICE_CFG_DUAL_LINK_DVOBC 0x19
262 #define DEVICE_CFG_DUAL_LINK_DVOCB 0x1a
263
264 #define DEVICE_WIRE_NONE 0x00
265 #define DEVICE_WIRE_DVOB 0x01
266 #define DEVICE_WIRE_DVOC 0x02
267 #define DEVICE_WIRE_DVOBC 0x03
268 #define DEVICE_WIRE_DVOBB 0x05
269 #define DEVICE_WIRE_DVOCC 0x06
270 #define DEVICE_WIRE_DVOB_MASTER 0x0d
271 #define DEVICE_WIRE_DVOC_MASTER 0x0e
272
273
274 #define DEVICE_PORT_DVOA 0x00
275 #define DEVICE_PORT_DVOB 0x01
276 #define DEVICE_PORT_DVOC 0x02
277
278
279 #define DVO_PORT_HDMIA 0
280 #define DVO_PORT_HDMIB 1
281 #define DVO_PORT_HDMIC 2
282 #define DVO_PORT_HDMID 3
283 #define DVO_PORT_LVDS 4
284 #define DVO_PORT_TV 5
285 #define DVO_PORT_CRT 6
286 #define DVO_PORT_DPB 7
287 #define DVO_PORT_DPC 8
288 #define DVO_PORT_DPD 9
289 #define DVO_PORT_DPA 10
290 #define DVO_PORT_DPE 11
291 #define DVO_PORT_HDMIE 12
292 #define DVO_PORT_DPF 13
293 #define DVO_PORT_HDMIF 14
294 #define DVO_PORT_MIPIA 21
295 #define DVO_PORT_MIPIB 22
296 #define DVO_PORT_MIPIC 23
297 #define DVO_PORT_MIPID 24
298
299 #define HDMI_MAX_DATA_RATE_PLATFORM 0
300 #define HDMI_MAX_DATA_RATE_297 1
301 #define HDMI_MAX_DATA_RATE_165 2
302
303 #define LEGACY_CHILD_DEVICE_CONFIG_SIZE 33
304
305
306 enum vbt_gmbus_ddi {
307 DDC_BUS_DDI_B = 0x1,
308 DDC_BUS_DDI_C,
309 DDC_BUS_DDI_D,
310 DDC_BUS_DDI_F,
311 ICL_DDC_BUS_DDI_A = 0x1,
312 ICL_DDC_BUS_DDI_B,
313 TGL_DDC_BUS_DDI_C,
314 ICL_DDC_BUS_PORT_1 = 0x4,
315 ICL_DDC_BUS_PORT_2,
316 ICL_DDC_BUS_PORT_3,
317 ICL_DDC_BUS_PORT_4,
318 TGL_DDC_BUS_PORT_5,
319 TGL_DDC_BUS_PORT_6,
320 };
321
322 #define DP_AUX_A 0x40
323 #define DP_AUX_B 0x10
324 #define DP_AUX_C 0x20
325 #define DP_AUX_D 0x30
326 #define DP_AUX_E 0x50
327 #define DP_AUX_F 0x60
328
329 #define VBT_DP_MAX_LINK_RATE_HBR3 0
330 #define VBT_DP_MAX_LINK_RATE_HBR2 1
331 #define VBT_DP_MAX_LINK_RATE_HBR 2
332 #define VBT_DP_MAX_LINK_RATE_LBR 3
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352 struct child_device_config {
353 u16 handle;
354 u16 device_type;
355
356 union {
357 u8 device_id[10];
358 struct {
359 u8 i2c_speed;
360 u8 dp_onboard_redriver;
361 u8 dp_ondock_redriver;
362 u8 hdmi_level_shifter_value:5;
363 u8 hdmi_max_data_rate:3;
364 u16 dtd_buf_ptr;
365 u8 edidless_efp:1;
366 u8 compression_enable:1;
367 u8 compression_method:1;
368 u8 ganged_edp:1;
369 u8 reserved0:4;
370 u8 compression_structure_index:4;
371 u8 reserved1:4;
372 u8 slave_port;
373 u8 reserved2;
374 } __packed;
375 } __packed;
376
377 u16 addin_offset;
378 u8 dvo_port;
379 u8 i2c_pin;
380 u8 slave_addr;
381 u8 ddc_pin;
382 u16 edid_ptr;
383 u8 dvo_cfg;
384
385 union {
386 struct {
387 u8 dvo2_port;
388 u8 i2c2_pin;
389 u8 slave2_addr;
390 u8 ddc2_pin;
391 } __packed;
392 struct {
393 u8 efp_routed:1;
394 u8 lane_reversal:1;
395 u8 lspcon:1;
396 u8 iboost:1;
397 u8 hpd_invert:1;
398 u8 use_vbt_vswing:1;
399 u8 flag_reserved:2;
400 u8 hdmi_support:1;
401 u8 dp_support:1;
402 u8 tmds_support:1;
403 u8 support_reserved:5;
404 u8 aux_channel;
405 u8 dongle_detect;
406 } __packed;
407 } __packed;
408
409 u8 pipe_cap:2;
410 u8 sdvo_stall:1;
411 u8 hpd_status:2;
412 u8 integrated_encoder:1;
413 u8 capabilities_reserved:2;
414 u8 dvo_wiring;
415
416 union {
417 u8 dvo2_wiring;
418 u8 mipi_bridge_type;
419 } __packed;
420
421 u16 extended_type;
422 u8 dvo_function;
423 u8 dp_usb_type_c:1;
424 u8 tbt:1;
425 u8 flags2_reserved:2;
426 u8 dp_port_trace_length:4;
427 u8 dp_gpio_index;
428 u16 dp_gpio_pin_num;
429 u8 dp_iboost_level:4;
430 u8 hdmi_iboost_level:4;
431 u8 dp_max_link_rate:2;
432 u8 dp_max_link_rate_reserved:6;
433 } __packed;
434
435 struct bdb_general_definitions {
436
437 u8 crt_ddc_gmbus_pin;
438
439
440 u8 dpms_acpi:1;
441 u8 skip_boot_crt_detect:1;
442 u8 dpms_aim:1;
443 u8 rsvd1:5;
444
445
446 u8 boot_display[2];
447 u8 child_dev_size;
448
449
450
451
452
453
454
455
456
457
458
459
460 u8 devices[0];
461 } __packed;
462
463
464
465
466
467 struct psr_table {
468
469 u8 full_link:1;
470 u8 require_aux_to_wakeup:1;
471 u8 feature_bits_rsvd:6;
472
473
474 u8 idle_frames:4;
475 u8 lines_to_wait:3;
476 u8 wait_times_rsvd:1;
477
478
479 u16 tp1_wakeup_time;
480 u16 tp2_tp3_wakeup_time;
481 } __packed;
482
483 struct bdb_psr {
484 struct psr_table psr_table[16];
485
486
487 u32 psr2_tp2_tp3_wakeup_time;
488 } __packed;
489
490
491
492
493
494 #define BDB_DRIVER_FEATURE_NO_LVDS 0
495 #define BDB_DRIVER_FEATURE_INT_LVDS 1
496 #define BDB_DRIVER_FEATURE_SDVO_LVDS 2
497 #define BDB_DRIVER_FEATURE_INT_SDVO_LVDS 3
498
499 struct bdb_driver_features {
500 u8 boot_dev_algorithm:1;
501 u8 block_display_switch:1;
502 u8 allow_display_switch:1;
503 u8 hotplug_dvo:1;
504 u8 dual_view_zoom:1;
505 u8 int15h_hook:1;
506 u8 sprite_in_clone:1;
507 u8 primary_lfp_id:1;
508
509 u16 boot_mode_x;
510 u16 boot_mode_y;
511 u8 boot_mode_bpp;
512 u8 boot_mode_refresh;
513
514 u16 enable_lfp_primary:1;
515 u16 selective_mode_pruning:1;
516 u16 dual_frequency:1;
517 u16 render_clock_freq:1;
518 u16 nt_clone_support:1;
519 u16 power_scheme_ui:1;
520 u16 sprite_display_assign:1;
521 u16 cui_aspect_scaling:1;
522 u16 preserve_aspect_ratio:1;
523 u16 sdvo_device_power_down:1;
524 u16 crt_hotplug:1;
525 u16 lvds_config:2;
526 u16 tv_hotplug:1;
527 u16 hdmi_config:2;
528
529 u8 static_display:1;
530 u8 reserved2:7;
531 u16 legacy_crt_max_x;
532 u16 legacy_crt_max_y;
533 u8 legacy_crt_max_refresh;
534
535 u8 hdmi_termination;
536 u8 custom_vbt_version;
537
538 u16 rmpm_enabled:1;
539 u16 s2ddt_enabled:1;
540 u16 dpst_enabled:1;
541 u16 bltclt_enabled:1;
542 u16 adb_enabled:1;
543 u16 drrs_enabled:1;
544 u16 grs_enabled:1;
545 u16 gpmt_enabled:1;
546 u16 tbt_enabled:1;
547 u16 psr_enabled:1;
548 u16 ips_enabled:1;
549 u16 reserved3:4;
550 u16 pc_feature_valid:1;
551 } __packed;
552
553
554
555
556
557 struct bdb_sdvo_lvds_options {
558 u8 panel_backlight;
559 u8 h40_set_panel_type;
560 u8 panel_type;
561 u8 ssc_clk_freq;
562 u16 als_low_trip;
563 u16 als_high_trip;
564 u8 sclalarcoeff_tab_row_num;
565 u8 sclalarcoeff_tab_row_size;
566 u8 coefficient[8];
567 u8 panel_misc_bits_1;
568 u8 panel_misc_bits_2;
569 u8 panel_misc_bits_3;
570 u8 panel_misc_bits_4;
571 } __packed;
572
573
574
575
576
577 struct lvds_dvo_timing {
578 u16 clock;
579 u8 hactive_lo;
580 u8 hblank_lo;
581 u8 hblank_hi:4;
582 u8 hactive_hi:4;
583 u8 vactive_lo;
584 u8 vblank_lo;
585 u8 vblank_hi:4;
586 u8 vactive_hi:4;
587 u8 hsync_off_lo;
588 u8 hsync_pulse_width_lo;
589 u8 vsync_pulse_width_lo:4;
590 u8 vsync_off_lo:4;
591 u8 vsync_pulse_width_hi:2;
592 u8 vsync_off_hi:2;
593 u8 hsync_pulse_width_hi:2;
594 u8 hsync_off_hi:2;
595 u8 himage_lo;
596 u8 vimage_lo;
597 u8 vimage_hi:4;
598 u8 himage_hi:4;
599 u8 h_border;
600 u8 v_border;
601 u8 rsvd1:3;
602 u8 digital:2;
603 u8 vsync_positive:1;
604 u8 hsync_positive:1;
605 u8 non_interlaced:1;
606 } __packed;
607
608 struct bdb_sdvo_panel_dtds {
609 struct lvds_dvo_timing dtds[4];
610 } __packed;
611
612
613
614
615
616 #define EDP_18BPP 0
617 #define EDP_24BPP 1
618 #define EDP_30BPP 2
619 #define EDP_RATE_1_62 0
620 #define EDP_RATE_2_7 1
621 #define EDP_LANE_1 0
622 #define EDP_LANE_2 1
623 #define EDP_LANE_4 3
624 #define EDP_PREEMPHASIS_NONE 0
625 #define EDP_PREEMPHASIS_3_5dB 1
626 #define EDP_PREEMPHASIS_6dB 2
627 #define EDP_PREEMPHASIS_9_5dB 3
628 #define EDP_VSWING_0_4V 0
629 #define EDP_VSWING_0_6V 1
630 #define EDP_VSWING_0_8V 2
631 #define EDP_VSWING_1_2V 3
632
633
634 struct edp_fast_link_params {
635 u8 rate:4;
636 u8 lanes:4;
637 u8 preemphasis:4;
638 u8 vswing:4;
639 } __packed;
640
641 struct edp_pwm_delays {
642 u16 pwm_on_to_backlight_enable;
643 u16 backlight_disable_to_pwm_off;
644 } __packed;
645
646 struct edp_full_link_params {
647 u8 preemphasis:4;
648 u8 vswing:4;
649 } __packed;
650
651 struct bdb_edp {
652 struct edp_power_seq power_seqs[16];
653 u32 color_depth;
654 struct edp_fast_link_params fast_link_params[16];
655 u32 sdrrs_msa_timing_delay;
656
657
658 u16 edp_s3d_feature;
659 u16 edp_t3_optimization;
660 u64 edp_vswing_preemph;
661 u16 fast_link_training;
662 u16 dpcd_600h_write_required;
663 struct edp_pwm_delays pwm_delays[16];
664 u16 full_link_params_provided;
665 struct edp_full_link_params full_link_params[16];
666 } __packed;
667
668
669
670
671
672
673 #define MODE_MASK 0x3
674
675 struct bdb_lvds_options {
676 u8 panel_type;
677 u8 panel_type2;
678
679 u8 pfit_mode:2;
680 u8 pfit_text_mode_enhanced:1;
681 u8 pfit_gfx_mode_enhanced:1;
682 u8 pfit_ratio_auto:1;
683 u8 pixel_dither:1;
684 u8 lvds_edid:1;
685 u8 rsvd2:1;
686 u8 rsvd4;
687
688 u32 lvds_panel_channel_bits;
689
690 u16 ssc_bits;
691 u16 ssc_freq;
692 u16 ssc_ddt;
693
694 u16 panel_color_depth;
695
696 u32 dps_panel_type_bits;
697
698 u32 blt_control_type_bits;
699
700 u16 lcdvcc_s0_enable;
701 u32 rotation;
702 } __packed;
703
704
705
706
707
708
709 struct lvds_lfp_data_ptr {
710 u16 fp_timing_offset;
711 u8 fp_table_size;
712 u16 dvo_timing_offset;
713 u8 dvo_table_size;
714 u16 panel_pnp_id_offset;
715 u8 pnp_table_size;
716 } __packed;
717
718 struct bdb_lvds_lfp_data_ptrs {
719 u8 lvds_entries;
720 struct lvds_lfp_data_ptr ptr[16];
721 } __packed;
722
723
724
725
726
727
728 struct lvds_fp_timing {
729 u16 x_res;
730 u16 y_res;
731 u32 lvds_reg;
732 u32 lvds_reg_val;
733 u32 pp_on_reg;
734 u32 pp_on_reg_val;
735 u32 pp_off_reg;
736 u32 pp_off_reg_val;
737 u32 pp_cycle_reg;
738 u32 pp_cycle_reg_val;
739 u32 pfit_reg;
740 u32 pfit_reg_val;
741 u16 terminator;
742 } __packed;
743
744 struct lvds_pnp_id {
745 u16 mfg_name;
746 u16 product_code;
747 u32 serial;
748 u8 mfg_week;
749 u8 mfg_year;
750 } __packed;
751
752 struct lvds_lfp_data_entry {
753 struct lvds_fp_timing fp_timing;
754 struct lvds_dvo_timing dvo_timing;
755 struct lvds_pnp_id pnp_id;
756 } __packed;
757
758 struct bdb_lvds_lfp_data {
759 struct lvds_lfp_data_entry data[16];
760 } __packed;
761
762
763
764
765
766 #define BDB_BACKLIGHT_TYPE_NONE 0
767 #define BDB_BACKLIGHT_TYPE_PWM 2
768
769 struct lfp_backlight_data_entry {
770 u8 type:2;
771 u8 active_low_pwm:1;
772 u8 obsolete1:5;
773 u16 pwm_freq_hz;
774 u8 min_brightness;
775 u8 obsolete2;
776 u8 obsolete3;
777 } __packed;
778
779 struct lfp_backlight_control_method {
780 u8 type:4;
781 u8 controller:4;
782 } __packed;
783
784 struct bdb_lfp_backlight_data {
785 u8 entry_size;
786 struct lfp_backlight_data_entry data[16];
787 u8 level[16];
788 struct lfp_backlight_control_method backlight_control[16];
789 } __packed;
790
791
792
793
794
795 #define MAX_MIPI_CONFIGURATIONS 6
796
797 struct bdb_mipi_config {
798 struct mipi_config config[MAX_MIPI_CONFIGURATIONS];
799 struct mipi_pps_data pps[MAX_MIPI_CONFIGURATIONS];
800 } __packed;
801
802
803
804
805
806 struct bdb_mipi_sequence {
807 u8 version;
808 u8 data[0];
809 } __packed;
810
811 #endif