.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* 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. |
---|
11 | 3 | */ |
---|
12 | 4 | |
---|
13 | 5 | #ifndef _DPU_HW_TOP_H |
---|
.. | .. |
---|
52 | 44 | }; |
---|
53 | 45 | |
---|
54 | 46 | /** |
---|
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 | | -/** |
---|
63 | 47 | * struct dpu_danger_safe_status: danger and safe status signals |
---|
64 | 48 | * @mdp: top level status |
---|
65 | 49 | * @sspp: source pipe status |
---|
.. | .. |
---|
89 | 73 | * Assumption is these functions will be called after clocks are enabled. |
---|
90 | 74 | * @setup_split_pipe : Programs the pipe control registers |
---|
91 | 75 | * @setup_pp_split : Programs the pp split control registers |
---|
92 | | - * @setup_cdm_output : programs cdm control |
---|
93 | 76 | * @setup_traffic_shaper : programs traffic shaper control |
---|
94 | 77 | */ |
---|
95 | 78 | struct dpu_hw_mdp_ops { |
---|
.. | .. |
---|
100 | 83 | */ |
---|
101 | 84 | void (*setup_split_pipe)(struct dpu_hw_mdp *mdp, |
---|
102 | 85 | 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); |
---|
111 | 86 | |
---|
112 | 87 | /** |
---|
113 | 88 | * setup_traffic_shaper() : Setup traffic shaper control |
---|
.. | .. |
---|
152 | 127 | struct dpu_danger_safe_status *status); |
---|
153 | 128 | |
---|
154 | 129 | /** |
---|
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 | | - /** |
---|
162 | 130 | * intf_audio_select - select the external interface for audio |
---|
163 | 131 | * @mdp: mdp top context driver |
---|
164 | 132 | */ |
---|
.. | .. |
---|
176 | 144 | /* ops */ |
---|
177 | 145 | struct dpu_hw_mdp_ops ops; |
---|
178 | 146 | }; |
---|
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 | | -} |
---|
189 | 147 | |
---|
190 | 148 | /** |
---|
191 | 149 | * dpu_hw_mdptop_init - initializes the top driver for the passed idx |
---|