aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/1007-drm-amd-dal-remove-dead-code.patch
blob: 37cd6b17c951df1b4a8161ffda4959309629794f (plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
From 31cf95fbd0163fa4a00f497d8bf40996701d8806 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Glisse?= <jglisse@redhat.com>
Date: Thu, 24 Mar 2016 14:23:37 +0100
Subject: [PATCH 1007/1110] drm/amd/dal: remove dead code.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Even more seriously ...

Signed-off-by: Jérôme Glisse <jglisse@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/dal/dc/inc/core_types.h        |  10 -
 drivers/gpu/drm/amd/dal/include/dcs_types.h        | 126 -------------
 drivers/gpu/drm/amd/dal/include/dmcu_types.h       |  15 --
 drivers/gpu/drm/amd/dal/include/dpcd_defs.h        | 209 ---------------------
 .../drm/amd/dal/include/grph_object_ctrl_defs.h    |  86 ---------
 .../gpu/drm/amd/dal/include/link_service_types.h   |  65 -------
 drivers/gpu/drm/amd/dal/include/video_csc_types.h  |  10 -
 .../gpu/drm/amd/dal/include/video_gamma_types.h    |   8 -
 8 files changed, 529 deletions(-)

diff --git a/drivers/gpu/drm/amd/dal/dc/inc/core_types.h b/drivers/gpu/drm/amd/dal/dc/inc/core_types.h
index 9093e97..5994ad1 100644
--- a/drivers/gpu/drm/amd/dal/dc/inc/core_types.h
+++ b/drivers/gpu/drm/amd/dal/dc/inc/core_types.h
@@ -148,16 +148,6 @@ struct dpcd_caps {
 	int8_t branch_dev_name[6];
 };
 
-union dp_wa {
-	struct {
-		/* keep DP receiver powered up on DisplayOutput */
-		uint32_t KEEP_RECEIVER_POWERED:1;
-
-		/* TODO: may add other member in.*/
-	} bits;
-	uint32_t raw;
-};
-
 /* DP MST stream allocation (payload bandwidth number) */
 struct link_mst_stream_allocation {
 	/* DIG front */
diff --git a/drivers/gpu/drm/amd/dal/include/dcs_types.h b/drivers/gpu/drm/amd/dal/include/dcs_types.h
index bccfd99..912310e 100644
--- a/drivers/gpu/drm/amd/dal/include/dcs_types.h
+++ b/drivers/gpu/drm/amd/dal/include/dcs_types.h
@@ -61,45 +61,6 @@ enum edid_screen_aspect_ratio {
 	EDID_SCREEN_AR_4X5
 };
 
-union cv_smart_dongle_modes {
-	uint8_t all;
-	struct cv_smart_dongle_switches {
-		uint8_t MODE_1080I:1;
-		uint8_t MODE_720P:1;
-		uint8_t MODE_540P:1;
-		uint8_t MODE_480P:1;
-		uint8_t MODE_480I:1;
-		uint8_t MODE_16_9:1;
-	} switches;
-};
-
-union cea_speaker_allocation_data_block {
-	struct {
-		uint32_t FL_FR:1;
-		uint32_t LFE:1;
-		uint32_t FC:1;
-		uint32_t RL_RR:1;
-		uint32_t RC:1;
-		uint32_t FLC_FRC:1;
-		uint32_t RLC_RRC:1;
-	} bits;
-	uint32_t raw;
-};
-
-union cea_video_capability_data_block {
-	struct {
-		uint8_t S_CE0:1;
-		uint8_t S_CE1:1;
-		uint8_t S_IT0:1;
-		uint8_t S_IT1:1;
-		uint8_t S_PT0:1;
-		uint8_t S_PT1:1;
-		uint8_t QS:1;
-		uint8_t QY:1;
-	} bits;
-	uint8_t raw;
-};
-
 enum stereo_3d_multi_presence {
 	STEREO_3D_MULTI_NOT_PRESENT = 0,
 	STEREO_3D_MULTI_ALL_FORMATS,
@@ -131,47 +92,6 @@ enum dcs_interface_type {
 	INTERFACE_TYPE_EDP
 };
 
-
-union panel_misc_info {
-	struct {
-		uint32_t H_CUT_OFF:1;
-		uint32_t H_SYNC_POLARITY:1;/*0=Active High, 1=Active Low*/
-		uint32_t V_SYNC_POLARITY:1; /*0=Active High, 1=Active Low*/
-		uint32_t V_CUT_OFF:1;
-		uint32_t H_REPLICATION_BY_2:1;
-		uint32_t V_REPLICATION_BY_2:1;
-		uint32_t COMPOSITE_SYNC:1;
-		uint32_t INTERLACE:1;
-		uint32_t DOUBLE_CLOCK:1;
-		uint32_t RGB888:1;
-		uint32_t GREY_LEVEL:2;
-		uint32_t SPATIAL:1;
-		uint32_t TEMPORAL:1;
-		uint32_t API_ENABLED:1;
-	} bits;
-	uint32_t raw;
-};
-
-union hdtv_mode_support {
-	struct {
-		uint32_t HDTV_SUPPORT_480I:1;
-		uint32_t HDTV_SUPPORT_480P:1;
-		uint32_t HDTV_SUPPORT_576I25:1;
-		uint32_t HDTV_SUPPORT_576P50:1;
-		uint32_t HDTV_SUPPORT_720P:1;
-		uint32_t HDTV_SUPPORT_720P50:1;
-		uint32_t HDTV_SUPPORT_1080I:1;
-		uint32_t HDTV_SUPPORT_1080I25:1;
-		uint32_t HDTV_SUPPORT_1080P:1;
-		uint32_t HDTV_SUPPORT_1080P50:1;
-		uint32_t HDTV_SUPPORT_1080P24:1;
-		uint32_t HDTV_SUPPORT_1080P25:1;
-		uint32_t HDTV_SUPPORT_1080P30:1;
-		uint32_t HDTV_SUPPORT_16X9:1;
-	} bits;
-	uint32_t raw;
-};
-
 enum edid_retrieve_status {
 	EDID_RETRIEVE_SUCCESS = 0,
 	EDID_RETRIEVE_FAIL,
@@ -424,50 +344,4 @@ enum monitor_patch_type {
 	MONITOR_PATCH_TYPE_SINGLE_MODE_PACKED_PIXEL
 };
 
-union dcs_monitor_patch_flags {
-        struct {
-                bool ERROR_CHECKSUM:1;
-                bool HDTV_WITH_PURE_DFP_EDID:1;
-                bool DO_NOT_USE_DETAILED_TIMING:1;
-                bool DO_NOT_USE_RANGE_LIMITATION:1;
-                bool EDID_EXTENTION_ERROR_CHECKSUM:1;
-                bool TURN_OFF_DISPLAY_BEFORE_MODE_CHANGE:1;
-                bool RESTRICT_VESA_MODE_TIMING:1;
-                bool DO_NOT_USE_EDID_MAX_PIX_CLK:1;
-                bool VENDOR_0:1;
-                bool RANDOM_CRT:1;/* 10 bits used including this one-*/
-                bool VENDOR_1:1;
-                bool LIMIT_PANEL_SUPPORT_RGB_ONLY:1;
-                bool PACKED_PIXEL_FORMAT:1;
-                bool LARGE_PANEL:1;
-                bool STEREO_SUPPORT:1;
-                bool DUAL_EDID_PANEL:1;
-                bool IGNORE_19X12_STD_TIMING:1;
-                bool MULTIPLE_PACKED_TYPE:1;
-                bool RESET_TX_ON_DISPLAY_POWER_ON:1;
-                bool ALLOW_ONLY_CE_MODE:1;/* 20 bits used including this one*/
-                bool RESTRICT_PROT_DUAL_LINK_DVI:1;
-                bool FORCE_LINK_RATE:1;
-                bool DELAY_AFTER_DP_RECEIVER_POWER_UP:1;
-                bool KEEP_DP_RECEIVER_POWERED:1;
-                bool DELAY_BEFORE_READ_EDID:1;
-                bool DELAY_AFTER_PIXEL_FORMAT_CHANGE:1;
-                bool INCREASE_DEFER_WRITE_RETRY_I2C_OVER_AUX:1;
-                bool NO_DEFAULT_TIMINGS:1;
-                bool ADD_CEA861_DETAILED_TIMING_VIC16:1;
-                bool ADD_CEA861_DETAILED_TIMING_VIC31:1; /* 30 bits*/
-                bool DELAY_BEFORE_UNMUTE:1;
-                bool RETRY_LINK_TRAINING_ON_FAILURE:1;
-                bool ALLOW_AUX_WHEN_HPD_LOW:1;
-                bool TILED_DISPLAY:1;
-                bool DISABLE_PSR_ENTRY_ABORT:1;
-                bool INTERMITTENT_EDID_ERROR:1;/* 36 bits total*/
-                bool VID_STREAM_DIFFER_TO_SYNC:1;/* 37 bits total*/
-                bool EXTRA_DELAY_ON_DISCONNECT:1;/* 38 bits total*/
-                bool DELAY_AFTER_DISABLE_BACKLIGHT_DFS_BYPASS:1;/* 39 bits total*/
-        } flags;
-        uint64_t raw;
-};
-
 #endif /* __DAL_DCS_TYPES_H__ */
-
diff --git a/drivers/gpu/drm/amd/dal/include/dmcu_types.h b/drivers/gpu/drm/amd/dal/include/dmcu_types.h
index 00f9fa4..b74bb5b 100644
--- a/drivers/gpu/drm/amd/dal/include/dmcu_types.h
+++ b/drivers/gpu/drm/amd/dal/include/dmcu_types.h
@@ -129,21 +129,6 @@ struct dmcu_context {
 	uint32_t vsync_rate_hz;
 };
 
-union dmcu_psr_level {
-	struct {
-		bool SKIP_CRC:1;
-		bool SKIP_DP_VID_STREAM_DISABLE:1;
-		bool SKIP_PHY_POWER_DOWN:1;
-		bool SKIP_AUX_ACK_CHECK:1;
-		bool SKIP_CRTC_DISABLE:1;
-		bool SKIP_AUX_RFB_CAPTURE_CHECK:1;
-		bool SKIP_SMU_NOTIFICATION:1;
-		bool SKIP_AUTO_STATE_ADVANCE:1;
-		bool DISABLE_PSR_ENTRY_ABORT:1;
-	} bits;
-	uint32_t u32all;
-};
-
 enum varibright_command {
 	VARIBRIGHT_CMD_SET_VB_LEVEL = 0,
 	VARIBRIGHT_CMD_USER_ENABLE,
diff --git a/drivers/gpu/drm/amd/dal/include/dpcd_defs.h b/drivers/gpu/drm/amd/dal/include/dpcd_defs.h
index e251cff..27b7aee 100644
--- a/drivers/gpu/drm/amd/dal/include/dpcd_defs.h
+++ b/drivers/gpu/drm/amd/dal/include/dpcd_defs.h
@@ -414,16 +414,6 @@ union mstm_cap {
 	uint8_t raw;
 };
 
-union mstm_cntl {
-	struct {
-		uint8_t MST_EN:1;
-		uint8_t UP_REQ_EN:1;
-		uint8_t UPSTREAM_IS_SRC:1;
-		uint8_t RESERVED:5;
-	} bits;
-	uint8_t raw;
-};
-
 union lane_count_set {
 	struct {
 		uint8_t LANE_COUNT_SET:5;
@@ -434,44 +424,6 @@ union lane_count_set {
 	uint8_t raw;
 };
 
-/* for DPCD_ADDRESS_I2C_SPEED_CNTL_CAP
- * and DPCD_ADDRESS_I2C_SPEED_CNTL
- */
-union i2c_speed {
-	struct {
-		uint8_t _1KBPS:1;
-		uint8_t _5KBPS:1;
-		uint8_t _10KBPS:1;
-		uint8_t _100KBPS:1;
-		uint8_t _400KBPS:1;
-		uint8_t _1MBPS:1;
-		uint8_t reserved:2;
-	} bits;
-	uint8_t raw;
-};
-
-union payload_table_update_status {
-	struct {
-		uint8_t VC_PAYLOAD_TABLE_UPDATED:1;
-		uint8_t ACT_HANDLED:1;
-	} bits;
-	uint8_t raw;
-};
-
-union device_irq_esi_0 {
-	struct {
-		uint8_t REMOTE_CONTROL_CMD_PENDING:1;
-		uint8_t AUTOMATED_TEST_REQUEST:1;
-		uint8_t CP_IRQ:1;
-		uint8_t MCCS_IRQ:1;
-		uint8_t DOWN_REP_MSG_RDY:1;
-		uint8_t UP_REQ_MSG_RDY:1;
-		uint8_t SINK_SPECIFIC_IRQ:1;
-		uint8_t RESERVED:1;
-	} bits;
-	uint8_t raw;
-};
-
 union lane_status {
 	struct {
 		uint8_t CR_DONE_0:1;
@@ -500,17 +452,6 @@ union device_service_irq {
 	uint8_t raw;
 };
 
-union downstream_port {
-	struct {
-		uint8_t PRESENT:1;
-		uint8_t TYPE:2;
-		uint8_t FORMAT_CONV:1;
-		uint8_t DETAILED_CAPS:1;
-		uint8_t RESERVED:3;
-	} bits;
-	uint8_t raw;
-};
-
 union sink_count {
 	struct {
 		uint8_t SINK_COUNT:6;
@@ -540,74 +481,6 @@ union lane_adjust {
 	uint8_t raw;
 };
 
-/* Automated test structures */
-union test_request {
-	struct {
-		uint8_t LINK_TRAINING:1;
-		uint8_t LINK_TEST_PATTERN:1;
-		uint8_t EDID_READ:1;
-		uint8_t PHY_TEST_PATTERN:1;
-		uint8_t AUDIO_TEST_PATTERN:1;
-		uint8_t AUDIO_TEST_NO_VIDEO:1;
-		uint8_t RESERVED:1;
-		uint8_t TEST_STEREO_3D:1;
-	} bits;
-	uint8_t raw;
-};
-
-union test_response {
-	struct {
-		uint8_t ACK:1;
-		uint8_t NO_ACK:1;
-		uint8_t RESERVED:6;
-	} bits;
-	uint8_t raw;
-};
-
-union link_test_pattern {
-	struct {
-		uint8_t PATTERN:2;/*DpcdLinkTestPatterns*/
-		uint8_t RESERVED:6;
-	} bits;
-	uint8_t raw;
-};
-
-union test_misc {
-	struct dpcd_test_misc_bits {
-		uint8_t SYNC_CLOCK:1;
-		uint8_t CLR_FORMAT:2;/*DpcdTestColorFormat*/
-		uint8_t DYN_RANGE:1;/*DpcdTestDynRange*/
-		uint8_t YCBCR:1;/*DpcdTestYCbCrStandard*/
-		uint8_t BPC:3;/*DpcdTestBitDepth*/
-	} bits;
-	uint8_t raw;
-};
-
-union phy_test_pattern {
-	struct {
-		/* This field is 2 bits for DP1.1 and 3 bits for DP1.2.*/
-		uint8_t PATTERN:3;
-		uint8_t RESERVED:5;/* BY spec, bit7:2 is 0 for DP1.1.*/
-	} bits;
-	uint8_t raw;
-};
-
-union audio_test_mode {
-	struct {
-		uint8_t SAMPLING_RATE:4;
-		uint8_t CHANNEL_COUNT:4;
-	} bits;
-	uint8_t raw;
-};
-
-union audio_test_pattern_period {
-	struct {
-		uint8_t PATTERN_PERIOD:4;
-		uint8_t RESERVED:4;
-	} bits;
-	uint8_t raw;
-};
-
 union dpcd_training_pattern {
 	struct {
 		uint8_t TRAINING_PATTERN_SET:4;
@@ -641,68 +514,8 @@ union dpcd_training_lane {
 post cursor 2 level of Training Pattern 2 or 3*/
 /* The DPCD addresses are 0x10F (TRAINING_LANE0_1_SET2)
 and 0x110 (TRAINING_LANE2_3_SET2)*/
-union dpcd_training_lane_set2 {
-	struct {
-		uint8_t POST_CURSOR2_SET:2;
-		uint8_t MAX_POST_CURSOR2_REACHED:1;
-		uint8_t RESERVED:1;
-	} bits;
-	uint8_t raw;
-};
-
-union dpcd_psr_configuration {
-	struct {
-		uint8_t ENABLE:1;
-		uint8_t TRANSMITTER_ACTIVE_IN_PSR:1;
-		uint8_t CRC_VERIFICATION:1;
-		uint8_t FRAME_CAPTURE_INDICATION:1;
-		uint8_t LINE_CAPTURE_INDICATION:1;
-		uint8_t IRQ_HPD_WITH_CRC_ERROR:1;
-		uint8_t RESERVED:2;
-	} bits;
-	uint8_t raw;
-};
-
-union psr_error_status {
-	struct {
-		uint8_t LINK_CRC_ERROR:1;
-		uint8_t RFB_STORAGE_ERROR:1;
-		uint8_t RESERVED:6;
-	} bits;
-	uint8_t raw;
-};
-
-union psr_event_status_ind {
-	struct {
-		uint8_t SINK_PSR_CAP_CHANGE:1;
-		uint8_t RESERVED:7;
-	} bits;
-	uint8_t raw;
-};
-
-union psr_sink_psr_status {
-	struct {
-		uint8_t SINK_SELF_REFRESH_STATUS:3;
-		uint8_t RESERVED:5;
-	} bits;
-	uint8_t raw;
-};
 
 /* EDP related 0x701 */
-union edp_generial_cap1 {
-	struct {
-		uint8_t TCON_BACKLIGHT_ADJUSTMENT_CAPABLE:1;
-		uint8_t BACKLIGHT_PIN_ENABLE_CAPABLE:1;
-		uint8_t BACKLIGHT_AUX_ENABLE_CAPABLE:1;
-		uint8_t PANEL_SELFTEST_PIN_ENABLE_CAPABLE:1;
-		uint8_t BACKLIGHT_SELFTEST_AUX_ENABLE_CAPABLE:1;
-		uint8_t FRC_ENABLE_CAPABLE:1;
-		uint8_t COLOR_ENGINE_CAPABLE:1;
-		/*bit 7, pane can be controlled by 0x600*/
-		uint8_t SET_POWER_CAPABLE:1;
-	} bits;
-	uint8_t raw;
-};
 
 /* TMDS-converter related */
 union dwnstream_port_caps_byte0 {
@@ -763,19 +576,6 @@ union dwnstream_port_caps_byte3_hdmi {
 
 /*4-byte structure for detailed capabilities of a down-stream port
 (DP-to-TMDS converter).*/
-union dwnstream_portx_caps {
-	struct {
-		union dwnstream_port_caps_byte0 byte0;
-		uint8_t max_tmds_clk;/* byte1 */
-		union dwnstream_port_caps_byte2 byte2;
-
-		union {
-			union dwnstream_port_caps_byte3_dvi byte_dvi;
-			union dwnstream_port_caps_byte3_hdmi byte_hdmi;
-		} byte3;
-	} bytes;
-	uint8_t raw[4];
-};
 
 union sink_status {
 	struct {
@@ -862,15 +662,6 @@ union edp_configuration_cap {
 	uint8_t raw;
 };
 
-union psr_capabilities {
-	struct {
-		uint8_t EXIT_LT_NOT_REQ:1;
-		uint8_t RFB_SETUP_TIME:3;
-		uint8_t RESERVED:4;
-	} bits;
-	uint8_t raw;
-};
-
 union training_aux_rd_interval {
 	struct {
 		uint8_t TRAINIG_AUX_RD_INTERVAL:7;
diff --git a/drivers/gpu/drm/amd/dal/include/grph_object_ctrl_defs.h b/drivers/gpu/drm/amd/dal/include/grph_object_ctrl_defs.h
index 11b1b99..50e3f0a 100644
--- a/drivers/gpu/drm/amd/dal/include/grph_object_ctrl_defs.h
+++ b/drivers/gpu/drm/amd/dal/include/grph_object_ctrl_defs.h
@@ -189,23 +189,6 @@ struct firmware_info {
 	uint8_t remote_display_config;
 };
 
-/* direct HW (mmBIOS_SCRATCH_2) translation! */
-union tv_standard_support {
-	uint8_t u_all;
-	struct {
-		bool TV_SUPPORT_NTSC:1;
-		bool TV_SUPPORT_NTSCJ:1;
-
-		bool TV_SUPPORT_PAL:1;
-		bool TV_SUPPORT_PALM:1;
-		bool TV_SUPPORT_PALCN:1;
-		bool TV_SUPPORT_PALN:1;
-		bool TV_SUPPORT_PAL60:1;
-
-		bool TV_SUPPORT_SECAM:1;
-	} bits;
-};
-
 struct step_and_delay_info {
     uint32_t step;
     uint32_t delay;
@@ -406,47 +389,6 @@ struct bios_event_info {
 	bool backlight_changed;
 };
 
-union stereo_3d_support {
-	struct {
-		/* HW can alter left and right image sequentially */
-		uint32_t FRAME_ALTERNATE:1;
-		/* Frame Alternate + HW can integrate stereosync
-		signal into TMDS stream */
-		uint32_t DVI_FRAME_ALT:1;
-		/* Frame Alternate + HW can integrate stereosync
-		signal into DP stream */
-		uint32_t DISPLAY_PORT_FRAME_ALT:1;
-		/* Frame Alternate + HW can drive stereosync signal
-		on separate line */
-		uint32_t SIDEBAND_FRAME_ALT:1;
-		/* SW allowed to pack left and right image into single frame.
-		Used for HDMI only, DP has it's own flags. */
-		uint32_t SW_FRAME_PACK:1;
-		/* HW can pack left and right image into single HDMI frame */
-		uint32_t PROGRESSIVE_FRAME_PACK:1;
-		/* HW can pack left and right interlaced images into
-		single HDMI frame */
-		uint32_t INTERLACE_FRAME_PACK:1;
-		/* HW can pack left and right images into single DP frame */
-		uint32_t DISPLAY_PORT_FRAME_PACK:1;
-		/* SW can pack left and right images into single DP frame */
-		uint32_t DISPLAY_PORT_SW_FRAME_PACK:1;
-		/* HW can mix left and right images into single image */
-		uint32_t INTERLEAVE:1;
-		/* HW can mix left and right interlaced images
-		into single image */
-		uint32_t INTERLACE_INTERLEAVE:1;
-		/* Allow display-based formats (whatever supported)
-		in WS stereo mode */
-		uint32_t DISPLAY_3DIN_WS_MODE:1;
-		/* Side-by-side, packed by application/driver into 2D frame */
-		uint32_t SIDE_BY_SIDE_SW_PACKED:1;
-		/* Top-and-bottom, packed by application/driver into 2D frame */
-		uint32_t TOP_AND_BOTTOM_SW_PACKED:1;
-	} bits;
-	uint32_t u_all;
-};
-
 /* Bitvector and bitfields of possible optimizations
  #IMPORTANT# Keep bitfields match bitvector! */
 enum optimization_feature {
@@ -463,37 +405,9 @@ enum optimization_feature {
 	OF_SKIP_POWER_DOWN_INACTIVE_ENCODER = 0x80
 };
 
-union optimization_flags {
-	struct {
-		/* Don't do HW programming if panels were enabled by VBIOS */
-		uint32_t SKIP_HW_PROGRAMMING_ON_ENABLED_EMBEDDED_DISPLAY:1;
-		uint32_t SKIP_RESET_OF_ALL_HW_ON_S3RESUME:1;
-		uint32_t SKIP_HW_RESET_OF_EMBEDDED_DISPLAY_ON_S3RESUME:1;
-		uint32_t SKIP_POWER_UP_VBIOS_ENABLED_ENCODER:1;
-		/* Do not turn off VCC while powering down on boot or resume */
-		uint32_t KEEP_VCC_DURING_POWER_DOWN_ON_BOOT_OR_RESUME:1;
-		/* Do not turn off VCC while performing SetMode */
-		uint32_t KEEP_VCC_DURING_SET_MODE:1;
-		uint32_t DO_NOT_WAIT_FOR_HPD_LOW:1;
-	} bits;
-	uint32_t u_all;
-};
-
 /* Bitvector and bitfields of performance measurements
  #IMPORTANT# Keep bitfields match bitvector! */
 
-union perf_measure_flags {
-	struct {
-		uint32_t ADAPTER_POWER_STATE:1;
-		uint32_t DISPLAY_POWER_STATE:1;
-		uint32_t SET_MODE_SEQ:1;
-		uint32_t DETECT_AT_RESUME:1;
-		uint32_t MEMORY_READ_CONTROL:1;
-
-	} bits;
-	uint32_t u_all;
-};
-
 enum {
 	PERF_MEASURE_POWERCODE_OFFSET = 0x0,
 	PERF_MEASURE_POWER_CODE_MASK = 0xFF,
diff --git a/drivers/gpu/drm/amd/dal/include/link_service_types.h b/drivers/gpu/drm/amd/dal/include/link_service_types.h
index a14c4af..5dd75a3 100644
--- a/drivers/gpu/drm/amd/dal/include/link_service_types.h
+++ b/drivers/gpu/drm/amd/dal/include/link_service_types.h
@@ -82,46 +82,6 @@ enum edp_revision {
 	EDP_REVISION_13 = 0x02
 };
 
-/* DPCD_ADDR_DOWNSTREAM_PORT_PRESENT register value */
-union dpcd_downstream_port {
-	struct {
-#if defined(LITTLEENDIAN_CPU)
-		uint8_t PRESENT:1;
-		uint8_t TYPE:2;
-		uint8_t FORMAT_CONV:1;
-		uint8_t RESERVED:4;
-#elif defined(BIGENDIAN_CPU)
-		uint8_t RESERVED:4;
-		uint8_t FORMAT_CONV:1;
-		uint8_t TYPE:2;
-		uint8_t PRESENT:1;
-#else
-	#error ARCH not defined!
-#endif
-	} bits;
-
-	uint8_t raw;
-};
-
-/* DPCD_ADDR_SINK_COUNT register value */
-union dpcd_sink_count {
-	struct {
-#if defined(LITTLEENDIAN_CPU)
-		uint8_t SINK_COUNT:6;
-		uint8_t CP_READY:1;
-		uint8_t RESERVED:1;
-#elif defined(BIGENDIAN_CPU)
-		uint8_t RESERVED:1;
-		uint8_t CP_READY:1;
-		uint8_t SINK_COUNT:6;
-#else
-	#error ARCH not defined!
-#endif
-	} bits;
-
-	uint8_t raw;
-};
-
 enum {
 	LINK_RATE_REF_FREQ_IN_KHZ = 27000 /*27MHz*/
 };
@@ -244,31 +204,6 @@ union dpcd_training_lane_set {
 	uint8_t raw;
 };
 
-/* DPCD_ADDR_TRAINING_LANEx_SET2 registers value - since DP 1.2 */
-union dpcd_training_lanes_set2 {
-	struct {
-#if defined(LITTLEENDIAN_CPU)
-		uint8_t LANE0_POST_CURSOR2_SET:2;
-		uint8_t LANE0_MAX_POST_CURSOR2_REACHED:1;
-		uint8_t LANE0_RESERVED:1;
-		uint8_t LANE1_POST_CURSOR2_SET:2;
-		uint8_t LANE1_MAX_POST_CURSOR2_REACHED:1;
-		uint8_t LANE1_RESERVED:1;
-#elif defined(BIGENDIAN_CPU)
-		uint8_t LANE1_RESERVED:1;
-		uint8_t LANE1_MAX_POST_CURSOR2_REACHED:1;
-		uint8_t LANE1_POST_CURSOR2_SET:2;
-		uint8_t LANE0_RESERVED:1;
-		uint8_t LANE0_MAX_POST_CURSOR2_REACHED:1;
-		uint8_t LANE0_POST_CURSOR2_SET:2;
-#else
-	#error ARCH not defined!
-#endif
-	} bits;
-
-	uint8_t raw;
-};
-
 /**
  * @brief represent the 16 byte
  *  global unique identifier
diff --git a/drivers/gpu/drm/amd/dal/include/video_csc_types.h b/drivers/gpu/drm/amd/dal/include/video_csc_types.h
index 96b4ac9..258e5ad 100644
--- a/drivers/gpu/drm/amd/dal/include/video_csc_types.h
+++ b/drivers/gpu/drm/amd/dal/include/video_csc_types.h
@@ -32,14 +32,4 @@
 #define MAXTRIX_SIZE TEMPERATURE_MAXTRIX_SIZE
 #define MAXTRIX_SIZE_WITH_OFFSET 12
 
-/* overlay adjustment input */
-union ovl_csc_flag {
-	uint32_t u_all;
-	struct {
-		uint32_t CONFIG_IS_CHANGED:1;
-		uint32_t RESERVED:31;
-	} bits;
-};
-
-
 #endif
diff --git a/drivers/gpu/drm/amd/dal/include/video_gamma_types.h b/drivers/gpu/drm/amd/dal/include/video_gamma_types.h
index 1e249ac..5c70a75 100644
--- a/drivers/gpu/drm/amd/dal/include/video_gamma_types.h
+++ b/drivers/gpu/drm/amd/dal/include/video_gamma_types.h
@@ -29,12 +29,4 @@
 #include "set_mode_types.h"
 #include "gamma_types.h"
 
-union video_gamma_flag {
-	struct {
-		uint32_t CONFIG_IS_CHANGED:1;
-		uint32_t RESERVED:31;
-	} bits;
-	uint32_t u_all;
-};
-
 #endif
-- 
2.7.4