hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/gpu/drm/amd/display/dc/dce80/dce80_hw_sequencer.c
....@@ -36,34 +36,6 @@
3636 #include "dce/dce_8_0_d.h"
3737 #include "dce/dce_8_0_sh_mask.h"
3838
39
-struct dce80_hw_seq_reg_offsets {
40
- uint32_t crtc;
41
-};
42
-
43
-static const struct dce80_hw_seq_reg_offsets reg_offsets[] = {
44
-{
45
- .crtc = (mmCRTC0_CRTC_GSL_CONTROL - mmCRTC_GSL_CONTROL),
46
-},
47
-{
48
- .crtc = (mmCRTC1_CRTC_GSL_CONTROL - mmCRTC_GSL_CONTROL),
49
-},
50
-{
51
- .crtc = (mmCRTC2_CRTC_GSL_CONTROL - mmCRTC_GSL_CONTROL),
52
-},
53
-{
54
- .crtc = (mmCRTC3_CRTC_GSL_CONTROL - mmCRTC_GSL_CONTROL),
55
-},
56
-{
57
- .crtc = (mmCRTC4_CRTC_GSL_CONTROL - mmCRTC_GSL_CONTROL),
58
-},
59
-{
60
- .crtc = (mmCRTC5_CRTC_GSL_CONTROL - mmCRTC_GSL_CONTROL),
61
-}
62
-};
63
-
64
-#define HW_REG_CRTC(reg, id)\
65
- (reg + reg_offsets[id].crtc)
66
-
6739 /*******************************************************************************
6840 * Private definitions
6941 ******************************************************************************/
....@@ -74,8 +46,9 @@
7446 {
7547 dce110_hw_sequencer_construct(dc);
7648
77
- dc->hwss.enable_display_power_gating = dce100_enable_display_power_gating;
49
+ dc->hwseq->funcs.enable_display_power_gating = dce100_enable_display_power_gating;
7850 dc->hwss.pipe_control_lock = dce_pipe_control_lock;
79
- dc->hwss.set_bandwidth = dce100_set_bandwidth;
51
+ dc->hwss.prepare_bandwidth = dce100_prepare_bandwidth;
52
+ dc->hwss.optimize_bandwidth = dce100_optimize_bandwidth;
8053 }
8154