1 /* linux/arch/arm/mach-s5pv310/include/mach/regs-sdo.h
3 * Copyright (c) 2010 Samsung Electronics
4 * http://www.samsung.com/
6 * SDO register description file for Samsung TVOUT driver
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
13 #ifndef __ARCH_ARM_REGS_SDO_H
14 #define __ARCH_ARM_REGS_SDO_H
19 #define S5P_SDO_CLKCON (0x0000)
20 #define S5P_SDO_CONFIG (0x0008)
21 #define S5P_SDO_SCALE (0x000C)
22 #define S5P_SDO_SYNC (0x0010)
23 #define S5P_SDO_VBI (0x0014)
24 #define S5P_SDO_SCALE_CH0 (0x001C)
25 #define S5P_SDO_SCALE_CH1 (0x0020)
26 #define S5P_SDO_SCALE_CH2 (0x0024)
27 #define S5P_SDO_YCDELAY (0x0034)
28 #define S5P_SDO_SCHLOCK (0x0038)
29 #define S5P_SDO_DAC (0x003C)
30 #define S5P_SDO_FINFO (0x0040)
31 #define S5P_SDO_Y0 (0x0044)
32 #define S5P_SDO_Y1 (0x0048)
33 #define S5P_SDO_Y2 (0x004C)
34 #define S5P_SDO_Y3 (0x0050)
35 #define S5P_SDO_Y4 (0x0054)
36 #define S5P_SDO_Y5 (0x0058)
37 #define S5P_SDO_Y6 (0x005C)
38 #define S5P_SDO_Y7 (0x0060)
39 #define S5P_SDO_Y8 (0x0064)
40 #define S5P_SDO_Y9 (0x0068)
41 #define S5P_SDO_Y10 (0x006C)
42 #define S5P_SDO_Y11 (0x0070)
43 #define S5P_SDO_CB0 (0x0080)
44 #define S5P_SDO_CB1 (0x0084)
45 #define S5P_SDO_CB2 (0x0088)
46 #define S5P_SDO_CB3 (0x008C)
47 #define S5P_SDO_CB4 (0x0090)
48 #define S5P_SDO_CB5 (0x0094)
49 #define S5P_SDO_CB6 (0x0098)
50 #define S5P_SDO_CB7 (0x009C)
51 #define S5P_SDO_CB8 (0x00A0)
52 #define S5P_SDO_CB9 (0x00A4)
53 #define S5P_SDO_CB10 (0x00A8)
54 #define S5P_SDO_CB11 (0x00AC)
55 #define S5P_SDO_CR0 (0x00C0)
56 #define S5P_SDO_CR1 (0x00C4)
57 #define S5P_SDO_CR2 (0x00C8)
58 #define S5P_SDO_CR3 (0x00CC)
59 #define S5P_SDO_CR4 (0x00D0)
60 #define S5P_SDO_CR5 (0x00D4)
61 #define S5P_SDO_CR6 (0x00D8)
62 #define S5P_SDO_CR7 (0x00DC)
63 #define S5P_SDO_CR8 (0x00E0)
64 #define S5P_SDO_CR9 (0x00E4)
65 #define S5P_SDO_CR10 (0x00E8)
66 #define S5P_SDO_CR11 (0x00EC)
67 #define S5P_SDO_MV_ON (0x0100)
68 #define S5P_SDO_MV_SLINE_FIRST_EVEN (0x0104)
69 #define S5P_SDO_MV_SLINE_FIRST_SPACE_EVEN (0x0108)
70 #define S5P_SDO_MV_SLINE_FIRST_ODD (0x010C)
71 #define S5P_SDO_MV_SLINE_FIRST_SPACE_ODD (0x0110)
72 #define S5P_SDO_MV_SLINE_SPACING (0x0114)
73 #define S5P_SDO_MV_STRIPES_NUMBER (0x0118)
74 #define S5P_SDO_MV_STRIPES_THICKNESS (0x011C)
75 #define S5P_SDO_MV_PSP_DURATION (0x0120)
76 #define S5P_SDO_MV_PSP_FIRST (0x0124)
77 #define S5P_SDO_MV_PSP_SPACING (0x0128)
78 #define S5P_SDO_MV_SEL_LINE_PSP_AGC (0x012C)
79 #define S5P_SDO_MV_SEL_FORMAT_PSP_AGC (0x0130)
80 #define S5P_SDO_MV_PSP_AGC_A_ON (0x0134)
81 #define S5P_SDO_MV_PSP_AGC_B_ON (0x0138)
82 #define S5P_SDO_MV_BACK_PORCH (0x013C)
83 #define S5P_SDO_MV_BURST_ADVANCED_ON (0x0140)
84 #define S5P_SDO_MV_BURST_DURATION_ZONE1 (0x0144)
85 #define S5P_SDO_MV_BURST_DURATION_ZONE2 (0x0148)
86 #define S5P_SDO_MV_BURST_DURATION_ZONE3 (0x014C)
87 #define S5P_SDO_MV_BURST_PHASE_ZONE (0x0150)
88 #define S5P_SDO_MV_SLICE_PHASE_LINE (0x0154)
89 #define S5P_SDO_MV_RGB_PROTECTION_ON (0x0158)
90 #define S5P_SDO_MV_480P_PROTECTION_ON (0x015C)
91 #define S5P_SDO_CCCON (0x0180)
92 #define S5P_SDO_YSCALE (0x0184)
93 #define S5P_SDO_CBSCALE (0x0188)
94 #define S5P_SDO_CRSCALE (0x018C)
95 #define S5P_SDO_CB_CR_OFFSET (0x0190)
96 #define S5P_SDO_CVBS_CC_Y1 (0x0198)
97 #define S5P_SDO_CVBS_CC_Y2 (0x019C)
98 #define S5P_SDO_CVBS_CC_C (0x01A0)
99 #define S5P_SDO_CSC_525_PORCH (0x01B0)
100 #define S5P_SDO_CSC_625_PORCH (0x01B4)
101 #define S5P_SDO_OSFC00_0 (0x0200)
102 #define S5P_SDO_OSFC01_0 (0x0204)
103 #define S5P_SDO_OSFC02_0 (0x0208)
104 #define S5P_SDO_OSFC03_0 (0x020C)
105 #define S5P_SDO_OSFC04_0 (0x0210)
106 #define S5P_SDO_OSFC05_0 (0x0214)
107 #define S5P_SDO_OSFC06_0 (0x0218)
108 #define S5P_SDO_OSFC07_0 (0x021C)
109 #define S5P_SDO_OSFC08_0 (0x0220)
110 #define S5P_SDO_OSFC09_0 (0x0224)
111 #define S5P_SDO_OSFC10_0 (0x0228)
112 #define S5P_SDO_OSFC11_0 (0x022C)
113 #define S5P_SDO_OSFC12_0 (0x0230)
114 #define S5P_SDO_OSFC13_0 (0x0234)
115 #define S5P_SDO_OSFC14_0 (0x0238)
116 #define S5P_SDO_OSFC15_0 (0x023C)
117 #define S5P_SDO_OSFC16_0 (0x0240)
118 #define S5P_SDO_OSFC17_0 (0x0244)
119 #define S5P_SDO_OSFC18_0 (0x0248)
120 #define S5P_SDO_OSFC19_0 (0x024C)
121 #define S5P_SDO_OSFC20_0 (0x0250)
122 #define S5P_SDO_OSFC21_0 (0x0254)
123 #define S5P_SDO_OSFC22_0 (0x0258)
124 #define S5P_SDO_OSFC23_0 (0x025C)
125 #define S5P_SDO_XTALK0 (0x0260)
126 #define S5P_SDO_XTALK1 (0x0264)
127 #define S5P_SDO_XTALK2 (0x0268)
128 #define S5P_SDO_BB_CTRL (0x026C)
129 #define S5P_SDO_IRQ (0x0280)
130 #define S5P_SDO_IRQMASK (0x0284)
131 #define S5P_SDO_OSFC00_1 (0x02C0)
132 #define S5P_SDO_OSFC01_1 (0x02C4)
133 #define S5P_SDO_OSFC02_1 (0x02C8)
134 #define S5P_SDO_OSFC03_1 (0x02CC)
135 #define S5P_SDO_OSFC04_1 (0x02D0)
136 #define S5P_SDO_OSFC05_1 (0x02D4)
137 #define S5P_SDO_OSFC06_1 (0x02D8)
138 #define S5P_SDO_OSFC07_1 (0x02DC)
139 #define S5P_SDO_OSFC08_1 (0x02E0)
140 #define S5P_SDO_OSFC09_1 (0x02E4)
141 #define S5P_SDO_OSFC10_1 (0x02E8)
142 #define S5P_SDO_OSFC11_1 (0x02EC)
143 #define S5P_SDO_OSFC12_1 (0x02E0)
144 #define S5P_SDO_OSFC13_1 (0x02F4)
145 #define S5P_SDO_OSFC14_1 (0x02F8)
146 #define S5P_SDO_OSFC15_1 (0x02FC)
147 #define S5P_SDO_OSFC16_1 (0x0300)
148 #define S5P_SDO_OSFC17_1 (0x0304)
149 #define S5P_SDO_OSFC18_1 (0x0308)
150 #define S5P_SDO_OSFC19_1 (0x030C)
151 #define S5P_SDO_OSFC20_1 (0x0310)
152 #define S5P_SDO_OSFC21_1 (0x0314)
153 #define S5P_SDO_OSFC22_1 (0x0318)
154 #define S5P_SDO_OSFC23_1 (0x031C)
155 #define S5P_SDO_OSFC00_2 (0x0320)
156 #define S5P_SDO_OSFC01_2 (0x0324)
157 #define S5P_SDO_OSFC02_2 (0x0328)
158 #define S5P_SDO_OSFC03_2 (0x032C)
159 #define S5P_SDO_OSFC04_2 (0x0330)
160 #define S5P_SDO_OSFC05_2 (0x0334)
161 #define S5P_SDO_OSFC06_2 (0x0338)
162 #define S5P_SDO_OSFC07_2 (0x033C)
163 #define S5P_SDO_OSFC08_2 (0x0340)
164 #define S5P_SDO_OSFC09_2 (0x0344)
165 #define S5P_SDO_OSFC10_2 (0x0348)
166 #define S5P_SDO_OSFC11_2 (0x034C)
167 #define S5P_SDO_OSFC12_2 (0x0350)
168 #define S5P_SDO_OSFC13_2 (0x0354)
169 #define S5P_SDO_OSFC14_2 (0x0358)
170 #define S5P_SDO_OSFC15_2 (0x035C)
171 #define S5P_SDO_OSFC16_2 (0x0360)
172 #define S5P_SDO_OSFC17_2 (0x0364)
173 #define S5P_SDO_OSFC18_2 (0x0368)
174 #define S5P_SDO_OSFC19_2 (0x036C)
175 #define S5P_SDO_OSFC20_2 (0x0370)
176 #define S5P_SDO_OSFC21_2 (0x0374)
177 #define S5P_SDO_OSFC22_2 (0x0378)
178 #define S5P_SDO_OSFC23_2 (0x037C)
179 #define S5P_SDO_ARMCC (0x03C0)
180 #define S5P_SDO_ARMWSS525 (0x03C4)
181 #define S5P_SDO_ARMWSS625 (0x03C8)
182 #define S5P_SDO_ARMCGMS525 (0x03CC)
183 #define S5P_SDO_ARMCGMS625 (0x03D4)
184 #define S5P_SDO_VERSION (0x03D8)
185 #define S5P_SDO_CC (0x0380)
186 #define S5P_SDO_WSS525 (0x0384)
187 #define S5P_SDO_WSS625 (0x0388)
188 #define S5P_SDO_CGMS525 (0x038C)
189 #define S5P_SDO_CGMS625 (0x0394)
193 * Bit definition part
195 /* SDO Clock Control Register (SDO_CLKCON) */
196 #define S5P_SDO_TVOUT_SW_RESET (1 << 4)
197 #define S5P_SDO_TVOUT_CLOCK_ON (1)
198 #define S5P_SDO_TVOUT_CLOCK_OFF (0)
200 /* SDO Video Standard Configuration Register (SDO_CONFIG) */
201 #define S5P_SDO_DAC2_Y_G (0 << 20)
202 #define S5P_SDO_DAC2_PB_B (1 << 20)
203 #define S5P_SDO_DAC2_PR_R (2 << 20)
204 #define S5P_SDO_DAC1_Y_G (0 << 18)
205 #define S5P_SDO_DAC1_PB_B (1 << 18)
206 #define S5P_SDO_DAC1_PR_R (2 << 18)
207 #define S5P_SDO_DAC0_Y_G (0 << 16)
208 #define S5P_SDO_DAC0_PB_B (1 << 16)
209 #define S5P_SDO_DAC0_PR_R (2 << 16)
210 #define S5P_SDO_DAC2_CVBS (0 << 12)
211 #define S5P_SDO_DAC2_Y (1 << 12)
212 #define S5P_SDO_DAC2_C (2 << 12)
213 #define S5P_SDO_DAC1_CVBS (0 << 10)
214 #define S5P_SDO_DAC1_Y (1 << 10)
215 #define S5P_SDO_DAC1_C (2 << 10)
216 #define S5P_SDO_DAC0_CVBS (0 << 8)
217 #define S5P_SDO_DAC0_Y (1 << 8)
218 #define S5P_SDO_DAC0_C (2 << 8)
219 #define S5P_SDO_COMPOSITE (0 << 6)
220 #define S5P_SDO_COMPONENT (1 << 6)
221 #define S5P_SDO_RGB (0 << 5)
222 #define S5P_SDO_YPBPR (1 << 5)
223 #define S5P_SDO_INTERLACED (0 << 4)
224 #define S5P_SDO_PROGRESSIVE (1 << 4)
225 #define S5P_SDO_NTSC_M (0)
226 #define S5P_SDO_PAL_M (1)
227 #define S5P_SDO_PAL_BGHID (2)
228 #define S5P_SDO_PAL_N (3)
229 #define S5P_SDO_PAL_NC (4)
230 #define S5P_SDO_NTSC_443 (8)
231 #define S5P_SDO_PAL_60 (9)
233 /* SDO Video Scale Configuration Register (SDO_SCALE) */
234 #define S5P_SDO_COMPONENT_LEVEL_SEL_0IRE (0 << 3)
235 #define S5P_SDO_COMPONENT_LEVEL_SEL_75IRE (1 << 3)
236 #define S5P_SDO_COMPONENT_VTOS_RATIO_10_4 (0 << 2)
237 #define S5P_SDO_COMPONENT_VTOS_RATIO_7_3 (1 << 2)
238 #define S5P_SDO_COMPOSITE_LEVEL_SEL_0IRE (0 << 1)
239 #define S5P_SDO_COMPOSITE_LEVEL_SEL_75IRE (1 << 1)
240 #define S5P_SDO_COMPOSITE_VTOS_RATIO_10_4 (0)
241 #define S5P_SDO_COMPOSITE_VTOS_RATIO_7_3 (1)
243 /* SDO Video sync Register */
244 #define S5P_SDO_COMPONENT_SYNC_ABSENT (0)
245 #define S5P_SDO_COMPONENT_SYNC_YG (1)
246 #define S5P_SDO_COMPONENT_SYNC_ALL (3)
248 /* SDO VBI Configuration Register (SDO_VBI) */
249 #define S5P_SDO_CVBS_NO_WSS (0 << 14)
250 #define S5P_SDO_CVBS_WSS_INS (1 << 14)
251 #define S5P_SDO_CVBS_NO_CLOSED_CAPTION (0 << 12)
252 #define S5P_SDO_CVBS_21H_CLOSED_CAPTION (1 << 12)
253 #define S5P_SDO_CVBS_21H_284H_CLOSED_CAPTION (2 << 12)
254 #define S5P_SDO_CVBS_USE_OTHERS (3 << 12)
256 /* SDO Channel #0 Scale Control Register (SDO_SCALE_CH0) */
257 #define S5P_SDO_SCALE_CONV_OFFSET(x) (((x) & 0x3FF) << 16)
258 #define S5P_SDO_SCALE_CONV_GAIN(x) ((x) & 0xFFF)
260 /* SDO Video Delay Control Register (SDO_YCDELAY) */
261 #define S5P_SDO_DELAY_YTOC(x) (((x) & 0xF) << 16)
262 #define S5P_SDO_ACTIVE_START_OFFSET(x) (((x) & 0xFF) << 8)
263 #define S5P_SDO_ACTIVE_END_OFFSET(x) ((x) & 0xFF)
265 /* SDO SCH Phase Control Register (SDO_SCHLOCK) */
266 #define S5P_SDO_COLOR_SC_PHASE_ADJ (1)
267 #define S5P_SDO_COLOR_SC_PHASE_NOADJ (0)
269 /* SDO DAC Configuration Register (SDO_DAC) */
270 #define S5P_SDO_POWER_ON_DAC (1 << 0)
271 #define S5P_SDO_POWER_DOWN_DAC (0 << 0)
273 /* SDO Status Register (SDO_FINFO) */
274 #define S5P_SDO_FIELD_MOD_1001(x) (((x) & (0x3ff << 16)) >> 16)
275 #define S5P_SDO_FIELD_ID_BOTTOM(x) ((x) & (1 << 1))
276 #define S5P_SDO_FIELD_ID_BOTTOM_PI_INCATION(x) (1)
278 #define S5P_SDO_MV_AGC_103_ON (1)
280 /* SDO Color Compensation On/Off Control (SDO_CCCON) */
281 #define S5P_SDO_COMPENSATION_BHS_ADJ_ON (0 << 4)
282 #define S5P_SDO_COMPENSATION_BHS_ADJ_OFF (1 << 4)
283 #define S5P_SDO_COMPENSATION_CVBS_COMP_ON (0)
284 #define S5P_SDO_COMPENSATION_CVBS_COMP_OFF (1)
286 /* SDO Brightness Control for Y (SDO_YSCALE) */
287 #define S5P_SDO_BRIGHTNESS_GAIN(x) (((x) & 0xFF) << 16)
288 #define S5P_SDO_BRIGHTNESS_OFFSET(x) ((x) & 0xFF)
290 /* SDO Hue/Saturation Control for CB (SDO_CBSCALE) */
291 #define S5P_SDO_HS_CB_GAIN0(x) (((x) & 0x1FF) << 16)
292 #define S5P_SDO_HS_CB_GAIN1(x) ((x) & 0x1FF)
294 /* SDO Hue/Saturation Control for CR (SDO_CRSCALE) */
295 #define S5P_SDO_HS_CR_GAIN0(x) (((x) & 0x1FF) << 16)
296 #define S5P_SDO_HS_CR_GAIN1(x) ((x) & 0x1FF)
298 /* SDO Hue/Saturation Control for CB/CR (SDO_CB_CR_OFFSET) */
299 #define S5P_SDO_HS_CR_OFFSET(x) (((x) & 0x3FF) << 16)
300 #define S5P_SDO_HS_CB_OFFSET(x) ((x) & 0x3FF)
302 #define S5P_SDO_MAX_RGB_CUBE(x) (((x) & 0xFF) << 8)
303 #define S5P_SDO_MIN_RGB_CUBE(x) ((x) & 0xFF)
305 /* Color Compensation Control Register for CVBS Output (SDO_CVBS_CC_Y1) */
306 #define S5P_SDO_Y_LOWER_MID_CVBS_CORN(x) (((x) & 0x3FF) << 16)
307 #define S5P_SDO_Y_BOTTOM_CVBS_CORN(x) ((x) & 0x3FF)
309 /* Color Compensation Control Register for CVBS Output (SDO_CVBS_CC_Y2) */
310 #define S5P_SDO_Y_TOP_CVBS_CORN(x) (((x) & 0x3FF) << 16)
311 #define S5P_SDO_Y_UPPER_MID_CVBS_CORN(x) ((x) & 0x3FF)
313 /* Color Compensation Control Register for CVBS Output (SDO_CVBS_CC_C) */
314 #define S5P_SDO_RADIUS_CVBS_CORN(x) ((x) & 0x1FF)
317 * SDO 525 Line Component Front/Back Porch Position
318 * Control Register (SDO_CSC_525_PORCH)
320 #define S5P_SDO_COMPONENT_525_BP(x) (((x) & 0x3FF) << 16)
321 #define S5P_SDO_COMPONENT_525_FP(x) ((x) & 0x3FF)
324 * SDO 625 Line Component Front/Back Porch Position
325 * Control Resigter(SDO_CSC_625_PORCH
327 #define S5P_SDO_COMPONENT_625_BP(x) (((x) & 0x3FF) << 16)
328 #define S5P_SDO_COMPONENT_625_FP(x) ((x) & 0x3FF)
330 /* SDO Oversampling #0 Filter Coefficient (SDO_OSFC00_0) */
331 #define S5P_SDO_OSF_COEF_ODD(x) (((x) & 0xFFF) << 16)
332 #define S5P_SDO_OSF_COEF_EVEN(x) ((x) & 0xFFF)
334 /* SDO Channel Crosstalk Cancellation Coefficient for Ch. 0 (SDO_XTALK0) */
335 #define S5P_SDO_XTALK_COEF02(x) (((x) & 0xFF) << 16)
336 #define S5P_SDO_XTALK_COEF01(x) ((x) & 0xFF)
338 /* SDO Black Burst Control Register (SDO_BB_CTRL) */
339 #define S5P_SDO_REF_BB_LEVEL_NTSC (0x11A << 8)
340 #define S5P_SDO_REF_BB_LEVEL_PAL (0xFB << 8)
341 #define S5P_SDO_SEL_BB_CJAN_CVBS0_BB1_BB2 (0 << 4)
342 #define S5P_SDO_SEL_BB_CJAN_BB0_CVBS1_BB2 (1 << 4)
343 #define S5P_SDO_SEL_BB_CJAN_BB0_BB1_CVBS2 (2 << 4)
344 #define S5P_SDO_BB_MODE_ENABLE (1)
345 #define S5P_SDO_BB_MODE_DISABLE (0)
347 /* SDO Interrupt Request Register (SDO_IRQ) */
348 #define S5P_SDO_VSYNC_IRQ_PEND (1)
349 #define S5P_SDO_VSYNC_NO_IRQ (0)
351 /* SDO Interrupt Request Masking Register (SDO_IRQMASK) */
352 #define S5P_SDO_VSYNC_IRQ_ENABLE (0)
353 #define S5P_SDO_VSYNC_IRQ_DISABLE (1)
355 /* SDO Closed Caption Data Registers (SDO_ARMCC) */
356 #define S5P_SDO_DISPLAY_CC_CAPTION(x) (((x) & 0xFF) << 16)
357 #define S5P_SDO_NON_DISPLAY_CC_CAPTION(x) ((x) & 0xFF)
359 /* SDO WSS 525 Data Registers (SDO_ARMWSS525) */
360 #define S5P_SDO_CRC_WSS525(x) (((x) & 0x3F) << 14)
361 #define S5P_SDO_WORD2_WSS525_COPY_PERMIT (0 << 6)
362 #define S5P_SDO_WORD2_WSS525_ONECOPY_PERMIT (1 << 6)
363 #define S5P_SDO_WORD2_WSS525_NOCOPY_PERMIT (3 << 6)
364 #define S5P_SDO_WORD2_WSS525_MV_PSP_OFF (0 << 8)
365 #define S5P_SDO_WORD2_WSS525_MV_PSP_ON_2LINE_BURST (1 << 8)
366 #define S5P_SDO_WORD2_WSS525_MV_PSP_ON_BURST_OFF (2 << 8)
367 #define S5P_SDO_WORD2_WSS525_MV_PSP_ON_4LINE_BURST (3 << 8)
368 #define S5P_SDO_WORD2_WSS525_ANALOG_OFF (0 << 10)
369 #define S5P_SDO_WORD2_WSS525_ANALOG_ON (1 << 10)
370 #define S5P_SDO_WORD1_WSS525_COPY_INFO (0 << 2)
371 #define S5P_SDO_WORD1_WSS525_DEFAULT (0xF << 2)
372 #define S5P_SDO_WORD0_WSS525_4_3_NORMAL (0)
373 #define S5P_SDO_WORD0_WSS525_16_9_ANAMORPIC (1)
374 #define S5P_SDO_WORD0_WSS525_4_3_LETTERBOX (2)
376 /* SDO WSS 625 Data Registers (SDO_ARMWSS625) */
377 #define S5P_SDO_WSS625_SURROUND_SOUND_DISABLE (0 << 11)
378 #define S5P_SDO_WSS625_SURROUND_SOUND_ENABLE (1 << 11)
379 #define S5P_SDO_WSS625_NO_COPYRIGHT (0 << 12)
380 #define S5P_SDO_WSS625_COPYRIGHT (1 << 12)
381 #define S5P_SDO_WSS625_COPY_NOT_RESTRICTED (0 << 13)
382 #define S5P_SDO_WSS625_COPY_RESTRICTED (1 << 13)
383 #define S5P_SDO_WSS625_TELETEXT_NO_SUBTITLES (0 << 8)
384 #define S5P_SDO_WSS625_TELETEXT_SUBTITLES (1 << 8)
385 #define S5P_SDO_WSS625_NO_OPEN_SUBTITLES (0 << 9)
386 #define S5P_SDO_WSS625_INACT_OPEN_SUBTITLES (1 << 9)
387 #define S5P_SDO_WSS625_OUTACT_OPEN_SUBTITLES (2 << 9)
388 #define S5P_SDO_WSS625_CAMERA (0 << 4)
389 #define S5P_SDO_WSS625_FILM (1 << 4)
390 #define S5P_SDO_WSS625_NORMAL_PAL (0 << 5)
391 #define S5P_SDO_WSS625_MOTION_ADAPTIVE_COLORPLUS (1 << 5)
392 #define S5P_SDO_WSS625_HELPER_NO_SIG (0 << 6)
393 #define S5P_SDO_WSS625_HELPER_SIG (1 << 6)
394 #define S5P_SDO_WSS625_4_3_FULL_576 (0x8)
395 #define S5P_SDO_WSS625_14_9_LETTERBOX_CENTER_504 (0x1)
396 #define S5P_SDO_WSS625_14_9_LETTERBOX_TOP_504 (0x2)
397 #define S5P_SDO_WSS625_16_9_LETTERBOX_CENTER_430 (0xb)
398 #define S5P_SDO_WSS625_16_9_LETTERBOX_TOP_430 (0x4)
399 #define S5P_SDO_WSS625_16_9_LETTERBOX_CENTER (0xd)
400 #define S5P_SDO_WSS625_14_9_FULL_CENTER_576 (0xe)
401 #define S5P_SDO_WSS625_16_9_ANAMORPIC_576 (0x7)
403 /* SDO CGMS-A 525 Data Registers (SDO_ARMCGMS525) */
404 #define S5P_SDO_CRC_CGMS525(x) (((x) & 0x3F) << 14)
405 #define S5P_SDO_WORD2_CGMS525_COPY_PERMIT (0 << 6)
406 #define S5P_SDO_WORD2_CGMS525_ONECOPY_PERMIT (1 << 6)
407 #define S5P_SDO_WORD2_CGMS525_NOCOPY_PERMIT (3 << 6)
408 #define S5P_SDO_WORD2_CGMS525_MV_PSP_OFF (0 << 8)
409 #define S5P_SDO_WORD2_CGMS525_MV_PSP_ON_2LINE_BURST (1 << 8)
410 #define S5P_SDO_WORD2_CGMS525_MV_PSP_ON_BURST_OFF (2 << 8)
411 #define S5P_SDO_WORD2_CGMS525_MV_PSP_ON_4LINE_BURST (3 << 8)
412 #define S5P_SDO_WORD2_CGMS525_ANALOG_OFF (0 << 10)
413 #define S5P_SDO_WORD2_CGMS525_ANALOG_ON (1 << 10)
414 #define S5P_SDO_WORD1_CGMS525_COPY_INFO (0 << 2)
415 #define S5P_SDO_WORD1_CGMS525_DEFAULT (0xF << 2)
416 #define S5P_SDO_WORD0_CGMS525_4_3_NORMAL (0)
417 #define S5P_SDO_WORD0_CGMS525_16_9_ANAMORPIC (1)
418 #define S5P_SDO_WORD0_CGMS525_4_3_LETTERBOX (2)
420 /* SDO CGMS-A 625 Data Registers (SDO_ARMCGMS625) */
421 #define S5P_SDO_CGMS625_SURROUND_SOUND_DISABLE (0 << 11)
422 #define S5P_SDO_CGMS625_SURROUND_SOUND_ENABLE (1 << 11)
423 #define S5P_SDO_CGMS625_NO_COPYRIGHT (0 << 12)
424 #define S5P_SDO_CGMS625_COPYRIGHT (1 << 12)
425 #define S5P_SDO_CGMS625_COPY_NOT_RESTRICTED (0 << 13)
426 #define S5P_SDO_CGMS625_COPY_RESTRICTED (1 << 13)
427 #define S5P_SDO_CGMS625_TELETEXT_NO_SUBTITLES (0 << 8)
428 #define S5P_SDO_CGMS625_TELETEXT_SUBTITLES (1 << 8)
429 #define S5P_SDO_CGMS625_NO_OPEN_SUBTITLES (0 << 9)
430 #define S5P_SDO_CGMS625_INACT_OPEN_SUBTITLES (1 << 9)
431 #define S5P_SDO_CGMS625_OUTACT_OPEN_SUBTITLES (2 << 9)
432 #define S5P_SDO_CGMS625_CAMERA (0 << 4)
433 #define S5P_SDO_CGMS625_FILM (1 << 4)
434 #define S5P_SDO_CGMS625_NORMAL_PAL (0 << 5)
435 #define S5P_SDO_CGMS625_MOTION_ADAPTIVE_COLORPLUS (1 << 5)
436 #define S5P_SDO_CGMS625_HELPER_NO_SIG (0 << 6)
437 #define S5P_SDO_CGMS625_HELPER_SIG (1 << 6)
438 #define S5P_SDO_CGMS625_4_3_FULL_576 (0x8)
439 #define S5P_SDO_CGMS625_14_9_LETTERBOX_CENTER_504 (0x1)
440 #define S5P_SDO_CGMS625_14_9_LETTERBOX_TOP_504 (0x2)
441 #define S5P_SDO_CGMS625_16_9_LETTERBOX_CENTER_430 (0xb)
442 #define S5P_SDO_CGMS625_16_9_LETTERBOX_TOP_430 (0x4)
443 #define S5P_SDO_CGMS625_16_9_LETTERBOX_CENTER (0xd)
444 #define S5P_SDO_CGMS625_14_9_FULL_CENTER_576 (0xe)
445 #define S5P_SDO_CGMS625_16_9_ANAMORPIC_576 (0x7)
447 /* SDO Version Register (SDO_VERSION) */
448 #define S5P_SDO_VERSION_NUMBER_MASK (0xFFFFFFFF)
450 #endif /* __ARCH_ARM_REGS_SDO_H */