hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.h
....@@ -1,13 +1,5 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
2
- *
3
- * This program is free software; you can redistribute it and/or modify
4
- * it under the terms of the GNU General Public License version 2 and
5
- * only version 2 as published by the Free Software Foundation.
6
- *
7
- * This program is distributed in the hope that it will be useful,
8
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
9
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
- * GNU General Public License for more details.
113 */
124
135 #ifndef _DPU_HW_TOP_H
....@@ -52,14 +44,6 @@
5244 };
5345
5446 /**
55
- * struct cdm_output_cfg: output configuration for cdm
56
- * @intf_en : enable/disable interface output
57
- */
58
-struct cdm_output_cfg {
59
- bool intf_en;
60
-};
61
-
62
-/**
6347 * struct dpu_danger_safe_status: danger and safe status signals
6448 * @mdp: top level status
6549 * @sspp: source pipe status
....@@ -89,7 +73,6 @@
8973 * Assumption is these functions will be called after clocks are enabled.
9074 * @setup_split_pipe : Programs the pipe control registers
9175 * @setup_pp_split : Programs the pp split control registers
92
- * @setup_cdm_output : programs cdm control
9376 * @setup_traffic_shaper : programs traffic shaper control
9477 */
9578 struct dpu_hw_mdp_ops {
....@@ -100,14 +83,6 @@
10083 */
10184 void (*setup_split_pipe)(struct dpu_hw_mdp *mdp,
10285 struct split_pipe_cfg *p);
103
-
104
- /**
105
- * setup_cdm_output() : Setup selection control of the cdm data path
106
- * @mdp : mdp top context driver
107
- * @cfg : cdm output configuration
108
- */
109
- void (*setup_cdm_output)(struct dpu_hw_mdp *mdp,
110
- struct cdm_output_cfg *cfg);
11186
11287 /**
11388 * setup_traffic_shaper() : Setup traffic shaper control
....@@ -152,13 +127,6 @@
152127 struct dpu_danger_safe_status *status);
153128
154129 /**
155
- * reset_ubwc - reset top level UBWC configuration
156
- * @mdp: mdp top context driver
157
- * @m: pointer to mdss catalog data
158
- */
159
- void (*reset_ubwc)(struct dpu_hw_mdp *mdp, struct dpu_mdss_cfg *m);
160
-
161
- /**
162130 * intf_audio_select - select the external interface for audio
163131 * @mdp: mdp top context driver
164132 */
....@@ -176,16 +144,6 @@
176144 /* ops */
177145 struct dpu_hw_mdp_ops ops;
178146 };
179
-
180
-/**
181
- * to_dpu_hw_mdp - convert base object dpu_hw_base to container
182
- * @hw: Pointer to base hardware block
183
- * return: Pointer to hardware block container
184
- */
185
-static inline struct dpu_hw_mdp *to_dpu_hw_mdp(struct dpu_hw_blk *hw)
186
-{
187
- return container_of(hw, struct dpu_hw_mdp, base);
188
-}
189147
190148 /**
191149 * dpu_hw_mdptop_init - initializes the top driver for the passed idx