Lines Matching +full:3 +full:base +full:- +full:x
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* linux/drivers/gpu/drm/exynos/regs-gsc.h
7 * Register definition file for Samsung G-Scaler driver
13 /* G-Scaler enable */
28 #define GSC_ENABLE_QOS_ENABLE (1 << 3)
33 /* G-Scaler S/W reset */
37 /* G-Scaler IRQ */
45 /* G-Scaler input control */
56 #define GSC_IN_ROT_180 (3 << 16)
59 #define GSC_IN_RGB_TYPE_MASK (3 << 14)
60 #define GSC_IN_RGB_HD_WIDE (3 << 14)
74 #define GSC_IN_YUV420_3P (3 << 8)
81 #define GSC_IN_TILE_MODE (1 << 3)
82 #define GSC_IN_LOCAL_SEL_MASK (3 << 1)
83 #define GSC_IN_LOCAL_CAM3 (3 << 1)
91 /* G-Scaler source image size */
94 #define GSC_SRCIMG_HEIGHT(x) ((x) << 16) argument
96 #define GSC_SRCIMG_WIDTH(x) ((x) << 0) argument
98 /* G-Scaler source image offset */
101 #define GSC_SRCIMG_OFFSET_Y(x) ((x) << 16) argument
103 #define GSC_SRCIMG_OFFSET_X(x) ((x) << 0) argument
105 /* G-Scaler cropped source image size */
108 #define GSC_CROPPED_HEIGHT(x) ((x) << 16) argument
110 #define GSC_CROPPED_WIDTH(x) ((x) << 0) argument
112 /* G-Scaler output control */
115 #define GSC_OUT_GLOBAL_ALPHA(x) ((x) << 24) argument
120 #define GSC_OUT_RGB_TYPE_MASK (3 << 10)
121 #define GSC_OUT_RGB_HD_NARROW (3 << 10)
135 #define GSC_OUT_YUV420_3P (3 << 4)
148 /* G-Scaler scaled destination image size */
151 #define GSC_SCALED_HEIGHT(x) ((x) << 16) argument
153 #define GSC_SCALED_WIDTH(x) ((x) << 0) argument
155 /* G-Scaler pre scale ratio */
158 #define GSC_PRESC_SHFACTOR(x) ((x) << 28) argument
160 #define GSC_PRESC_V_RATIO(x) ((x) << 16) argument
162 #define GSC_PRESC_H_RATIO(x) ((x) << 0) argument
164 /* G-Scaler main scale horizontal ratio */
167 #define GSC_MAIN_H_RATIO_VALUE(x) ((x) << 0) argument
169 /* G-Scaler main scale vertical ratio */
172 #define GSC_MAIN_V_RATIO_VALUE(x) ((x) << 0) argument
174 /* G-Scaler input chrominance stride */
177 #define GSC_IN_CHROM_STRIDE_VALUE(x) ((x) << 0) argument
179 /* G-Scaler destination image size */
182 #define GSC_DSTIMG_HEIGHT(x) ((x) << 16) argument
184 #define GSC_DSTIMG_WIDTH(x) ((x) << 0) argument
186 /* G-Scaler destination image offset */
189 #define GSC_DSTIMG_OFFSET_Y(x) ((x) << 16) argument
191 #define GSC_DSTIMG_OFFSET_X(x) ((x) << 0) argument
193 /* G-Scaler output chrominance stride */
196 #define GSC_OUT_CHROM_STRIDE_VALUE(x) ((x) << 0) argument
198 /* G-Scaler input y address mask */
200 /* G-Scaler input y base address */
202 /* G-Scaler input y base current address */
205 /* G-Scaler input cb address mask */
207 /* G-Scaler input cb base address */
209 /* G-Scaler input cb base current address */
212 /* G-Scaler input cr address mask */
214 /* G-Scaler input cr base address */
216 /* G-Scaler input cr base current address */
219 /* G-Scaler input address mask */
221 #define GSC_IN_CURR_GET_INDEX(x) ((x) >> 24) argument
222 #define GSC_IN_BASE_ADDR_PINGPONG(x) ((x) << 16) argument
225 /* G-Scaler output y address mask */
227 /* G-Scaler output y base address */
230 /* G-Scaler output cb address mask */
232 /* G-Scaler output cb base address */
235 /* G-Scaler output cr address mask */
237 /* G-Scaler output cr base address */
240 /* G-Scaler output address mask */
242 #define GSC_OUT_CURR_GET_INDEX(x) ((x) >> 24) argument
243 #define GSC_OUT_BASE_ADDR_PINGPONG(x) ((x) << 16) argument
246 /* G-Scaler horizontal scaling filter */
247 #define GSC_HCOEF(n, s, x) (0x300 + (n) * 0x4 + (s) * 0x30 + (x) * 0x300) argument
249 /* G-Scaler vertical scaling filter */
250 #define GSC_VCOEF(n, s, x) (0x200 + (n) * 0x4 + (s) * 0x30 + (x) * 0x300) argument
252 /* G-Scaler BUS control */
257 #define GSC_BUSCON_AWCACHE(x) ((x) << 4) argument
258 #define GSC_BUSCON_ARCACHE(x) ((x) << 0) argument
260 /* G-Scaler V position */
262 #define GSC_VPOS_F(x) ((x) << 0) argument
265 /* G-Scaler clock initial count */
267 #define GSC_CLK_GATE_MODE_INIT_CNT(x) ((x) << 0) argument
269 /* G-Scaler clock snoop count */
271 #define GSC_CLK_GATE_MODE_SNOOP_CNT(x) ((x) << 0) argument
275 #define GSC_BLK_DISP1WB_DEST(x) (x << 10) argument
276 #define GSC_BLK_SW_RESET_WB_DEST(x) (1 << (18 + x)) argument
277 #define GSC_BLK_PXLASYNC_LO_MASK_WB(x) (0 << (14 + x)) argument
278 #define GSC_BLK_GSCL_WB_IN_SRC_SEL(x) (1 << (2 * x)) argument
280 #define PXLASYNC_LO_MASK_CAMIF_GSCL(x) (1 << (x)) argument