upload tizen1.0 source
[kernel/linux-2.6.36.git] / arch / arm / plat-s5p / include / plat / regs-fb.h
1 /* linux/arch/arm/plat-s5p/include/plat/regs-fb.h
2  *
3  * Copyright (c) 2010 Samsung Electronics Co., Ltd.
4  *              http://www.samsung.com/
5  *
6  * Register definition file for Samsung Display Controller (FIMD) driver
7  *
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.
11 */
12
13 #ifndef __ASM_PLAT_REGS_FB_H
14 #define __ASM_PLAT_REGS_FB_H __FILE__
15
16 #define S3C_WINCON(x)           (0x0020 + (x * 0x04))
17 #define S3C_VIDOSD_A(x)         (0x0040 + (x * 0x10))
18 #define S3C_VIDOSD_B(x)         (0x0044 + (x * 0x10))
19 #define S3C_VIDOSD_C(x)         (0x0048 + (x * 0x10))
20 #define S3C_VIDOSD_D(x)         (0x004C + (x * 0x10))
21 #define S3C_VIDADDR_START0(x)   (0x00A0 + (x * 0x08))
22 #define S3C_VIDADDR_START1(x)   (0x00A4 + (x * 0x08))
23 #define S3C_VIDADDR_END0(x)     (0x00D0 + (x * 0x08))
24 #define S3C_VIDADDR_END1(x)     (0x00D4 + (x * 0x08))
25 #define S3C_VIDADDR_SIZE(x)     (0x0100 + (x * 0x04))
26 #define S3C_KEYCON(x)           (0x0140 + ((x - 1) * 0x08))
27 #define S3C_KEYVAL(x)           (0x0144 + ((x - 1) * 0x08))
28 #define S3C_WINMAP(x)           (0x0180 + (x * 0x04))
29
30 /*
31  * Register Map
32 */
33 #define S3C_VIDCON0             (0x0000)        /* Video control 0 */
34 #define S3C_VIDCON1             (0x0004)        /* Video control 1 */
35 #define S3C_VIDCON2             (0x0008)        /* Video control 2 */
36 #define S3C_PRTCON              (0x000C)        /* Protect control */
37
38 #define S3C_VIDTCON0            (0x0010)        /* Video time control 0 */
39 #define S3C_VIDTCON1            (0x0014)        /* Video time control 1 */
40 #define S3C_VIDTCON2            (0x0018)        /* Video time control 2 */
41
42 #define S3C_WINCON0             (0x0020)        /* Window control 0 */
43 #define S3C_WINCON1             (0x0024)        /* Window control 1 */
44 #define S3C_WINCON2             (0x0028)        /* Window control 2 */
45 #define S3C_WINCON3             (0x002C)        /* Window control 3 */
46 #define S3C_WINCON4             (0x0030)        /* Window control 4 */
47
48 #define S3C_WINSHMAP            (0x0034)        /* Window Shadow control */
49
50 #define S3C_VIDOSD0A            (0x0040)        /* Video Window 0 position control */
51 #define S3C_VIDOSD0B            (0x0044)        /* Video Window 0 position control1 */
52 #define S3C_VIDOSD0C            (0x0048)        /* Video Window 0 position control */
53
54 #define S3C_VIDOSD1A            (0x0050)        /* Video Window 1 position control */
55 #define S3C_VIDOSD1B            (0x0054)        /* Video Window 1 position control */
56 #define S3C_VIDOSD1C            (0x0058)        /* Video Window 1 position control */
57 #define S3C_VIDOSD1D            (0x005C)        /* Video Window 1 position control */
58
59 #define S3C_VIDOSD2A            (0x0060)        /* Video Window 2 position control */
60 #define S3C_VIDOSD2B            (0x0064)        /* Video Window 2 position control */
61 #define S3C_VIDOSD2C            (0x0068)        /* Video Window 2 position control */
62 #define S3C_VIDOSD2D            (0x006C)        /* Video Window 2 position control */
63
64 #define S3C_VIDOSD3A            (0x0070)        /* Video Window 3 position control */
65 #define S3C_VIDOSD3B            (0x0074)        /* Video Window 3 position control */
66 #define S3C_VIDOSD3C            (0x0078)        /* Video Window 3 position control */
67
68 #define S3C_VIDOSD4A            (0x0080)        /* Video Window 4 position control */
69 #define S3C_VIDOSD4B            (0x0084)        /* Video Window 4 position control */
70 #define S3C_VIDOSD4C            (0x0088)        /* Video Window 4 position control */
71
72 #define S3C_VIDW00ADD0B0        (0x00A0)        /* Window 0 buffer start address, buffer 0 */
73 #define S3C_VIDW00ADD0B1        (0x00A4)        /* Window 0 buffer start address, buffer 1 */
74 #define S3C_VIDW01ADD0B0        (0x00A8)        /* Window 1 buffer start address, buffer 0 */
75 #define S3C_VIDW01ADD0B1        (0x00AC)        /* Window 1 buffer start address, buffer 1 */
76 #define S3C_VIDW02ADD0          (0x00B0)        /* Window 2 buffer start address, buffer 0 */
77 #define S3C_VIDW03ADD0          (0x00B8)        /* Window 3 buffer start address, buffer 0 */
78 #define S3C_VIDW04ADD0          (0x00C0)        /* Window 4 buffer start address, buffer 0 */
79 #define S3C_VIDW00ADD1B0        (0x00D0)        /* Window 0 buffer end address, buffer 0 */
80 #define S3C_VIDW00ADD1B1        (0x00D4)        /* Window 0 buffer end address, buffer 1 */
81 #define S3C_VIDW01ADD1B0        (0x00D8)        /* Window 1 buffer end address, buffer 0 */
82 #define S3C_VIDW01ADD1B1        (0x00DC)        /* Window 1 buffer end address, buffer 1 */
83 #define S3C_VIDW02ADD1          (0x00E0)        /* Window 2 buffer end address */
84 #define S3C_VIDW03ADD1          (0x00E8)        /* Window 3 buffer end address */
85 #define S3C_VIDW04ADD1          (0x00F0)        /* Window 4 buffer end address */
86 #define S3C_VIDW00ADD2          (0x0100)        /* Window 0 buffer size */
87 #define S3C_VIDW01ADD2          (0x0104)        /* Window 1 buffer size */
88 #define S3C_VIDW02ADD2          (0x0108)        /* Window 2 buffer size */
89 #define S3C_VIDW03ADD2          (0x010C)        /* Window 3 buffer size */
90 #define S3C_VIDW04ADD2          (0x0110)        /* Window 4 buffer size */
91
92 #define S3C_VP1TCON0            (0x0118)        /* VP1 interface timing control 0 */
93 #define S3C_VP1TCON1            (0x011C)        /* VP1 interface timing control 1 */
94
95 #define S3C_VIDINTCON0          (0x0130)        /* Indicate the Video interrupt control */
96 #define S3C_VIDINTCON1          (0x0134)        /* Video Interrupt Pending */
97
98 #define S3C_W1KEYCON0           (0x0140)        /* Color key control */
99 #define S3C_W1KEYCON1           (0x0144)        /* Color key value (transparent value) */
100 #define S3C_W2KEYCON0           (0x0148)        /* Color key control */
101 #define S3C_W2KEYCON1           (0x014C)        /* Color key value (transparent value) */
102 #define S3C_W3KEYCON0           (0x0150)        /* Color key control */
103 #define S3C_W3KEYCON1           (0x0154)        /* Color key value (transparent value) */
104 #define S3C_W4KEYCON0           (0x0158)        /* Color key control */
105 #define S3C_W4KEYCON1           (0x015C)        /* Color key value (transparent value) */
106
107 #define S3C_W1KEYALPHA          (0x0160)        /* Color key alpha value */
108 #define S3C_W2KEYALPHA          (0x0164)        /* Color key alpha value */
109 #define S3C_W3KEYALPHA          (0x0168)        /* Color key alpha value */
110 #define S3C_W4KEYALPHA          (0x016C)        /* Color key alpha value */
111
112 #define S3C_DITHMODE            (0x0170)        /* Dithering mode */
113
114 #define S3C_WIN0MAP             (0x0180)        /* Window color control */
115 #define S3C_WIN1MAP             (0x0184)        /* Window color control */
116 #define S3C_WIN2MAP             (0x0188)        /* Window color control */
117 #define S3C_WIN3MAP             (0x018C)        /* Window color control */
118 #define S3C_WIN4MAP             (0x0190)        /* Window color control */
119
120 #define S3C_WPALCON_H           (0x019C)        /* Window Palette control */
121 #define S3C_WPALCON_L           (0x01A0)        /* Window Palette control */
122
123 #define S3C_VIDW0ALPHA0         (0x0200)        /* Window 0 alpha value 0 */
124 #define S3C_VIDW0ALPHA1         (0x0204)        /* Window 0 alpha value 1 */
125 #define S3C_VIDW1ALPHA0         (0x0208)        /* Window 1 alpha value 0 */
126 #define S3C_VIDW1ALPHA1         (0x020C)        /* Window 1 alpha value 1 */
127 #define S3C_VIDW2ALPHA0         (0x0210)        /* Window 2 alpha value 0 */
128 #define S3C_VIDW2ALPHA1         (0x0214)        /* Window 2 alpha value 1 */
129 #define S3C_VIDW3ALPHA0         (0x0218)        /* Window 3 alpha value 0 */
130 #define S3C_VIDW3ALPHA1         (0x021C)        /* Window 3 alpha value 1 */
131 #define S3C_VIDW4ALPHA0         (0x0220)        /* Window 4 alpha value 0 */
132 #define S3C_VIDW4ALPHA1         (0x0224)        /* Window 4 alpha value 1 */
133
134 #define S3C_BLENDEQ1            (0x0244)        /* Window 1 blending equation control */
135 #define S3C_BLENDEQ2            (0x0248)        /* Window 2 blending equation control */
136 #define S3C_BLENDEQ3            (0x024C)        /* Window 3 blending equation control */
137 #define S3C_BLENDEQ4            (0x0250)        /* Window 4 blending equation control */
138 #define S3C_BLENDCON            (0x0260)        /* Blending control */
139 #define S3C_DUALRGB             (0x027C)
140
141 /*
142  * Bit Definitions
143 */
144
145 /* VIDCON0 */
146 #define S3C_VIDCON0_DSI_DISABLE                 (0 << 30)
147 #define S3C_VIDCON0_DSI_ENABLE                  (1 << 30)
148 #define S3C_VIDCON0_SCAN_PROGRESSIVE            (0 << 29)
149 #define S3C_VIDCON0_SCAN_INTERLACE              (1 << 29)
150 #define S3C_VIDCON0_SCAN_MASK                   (1 << 29)
151 #define S3C_VIDCON0_VIDOUT_RGB                  (0 << 26)
152 #define S3C_VIDCON0_VIDOUT_ITU                  (1 << 26)
153 #define S3C_VIDCON0_VIDOUT_I80LDI0              (2 << 26)
154 #define S3C_VIDCON0_VIDOUT_I80LDI1              (3 << 26)
155 #define S3C_VIDCON0_VIDOUT_WB_RGB               (4 << 26)
156 #define S3C_VIDCON0_VIDOUT_WB_I80LDI0           (6 << 26)
157 #define S3C_VIDCON0_VIDOUT_WB_I80LDI1           (7 << 26)
158 #define S3C_VIDCON0_VIDOUT_MASK                 (7 << 26)
159 #define S3C_VIDCON0_PNRMODE_RGB_P               (0 << 17)
160 #define S3C_VIDCON0_PNRMODE_BGR_P               (1 << 17)
161 #define S3C_VIDCON0_PNRMODE_RGB_S               (2 << 17)
162 #define S3C_VIDCON0_PNRMODE_BGR_S               (3 << 17)
163 #define S3C_VIDCON0_PNRMODE_MASK                (3 << 17)
164 #define S3C_VIDCON0_PNRMODE_SHIFT               (17)
165 #define S3C_VIDCON0_CLKVALUP_ALWAYS             (0 << 16)
166 #define S3C_VIDCON0_CLKVALUP_START_FRAME        (1 << 16)
167 #define S3C_VIDCON0_CLKVALUP_MASK               (1 << 16)
168 #define S3C_VIDCON0_CLKVAL_F(x)                 (((x) & 0xff) << 6)
169 #define S3C_VIDCON0_VCLKEN_NORMAL               (0 << 5)
170 #define S3C_VIDCON0_VCLKEN_FREERUN              (1 << 5)
171 #define S3C_VIDCON0_VCLKEN_MASK                 (1 << 5)
172 #define S3C_VIDCON0_CLKDIR_DIRECTED             (0 << 4)
173 #define S3C_VIDCON0_CLKDIR_DIVIDED              (1 << 4)
174 #define S3C_VIDCON0_CLKDIR_MASK                 (1 << 4)
175 #define S3C_VIDCON0_CLKSEL_HCLK                 (0 << 2)
176 #define S3C_VIDCON0_CLKSEL_SCLK                 (1 << 2)
177 #define S3C_VIDCON0_CLKSEL_MASK                 (1 << 2)
178 #define S3C_VIDCON0_ENVID_ENABLE                (1 << 1)
179 #define S3C_VIDCON0_ENVID_DISABLE               (0 << 1)
180 #define S3C_VIDCON0_ENVID_F_ENABLE              (1 << 0)
181 #define S3C_VIDCON0_ENVID_F_DISABLE             (0 << 0)
182
183 /* VIDCON1 */
184 #define S3C_VIDCON1_IVCLK_FALLING_EDGE          (0 << 7)
185 #define S3C_VIDCON1_IVCLK_RISING_EDGE           (1 << 7)
186 #define S3C_VIDCON1_IHSYNC_NORMAL               (0 << 6)
187 #define S3C_VIDCON1_IHSYNC_INVERT               (1 << 6)
188 #define S3C_VIDCON1_IVSYNC_NORMAL               (0 << 5)
189 #define S3C_VIDCON1_IVSYNC_INVERT               (1 << 5)
190 #define S3C_VIDCON1_IVDEN_NORMAL                (0 << 4)
191 #define S3C_VIDCON1_IVDEN_INVERT                (1 << 4)
192
193 /* VIDCON2 */
194 #define S3C_VIDCON2_WB_SKIP_1_2                 (1 << 0)
195 #define S3C_VIDCON2_WB_SKIP_1_3                 (1 << 1)
196 #define S3C_VIDCON2_EN601_DISABLE               (0 << 23)
197 #define S3C_VIDCON2_EN601_ENABLE                (1 << 23)
198 #define S3C_VIDCON2_EN601_MASK                  (1 << 23)
199 #define S3C_VIDCON2_WB_DISABLE                  (0 << 15)
200 #define S3C_VIDCON2_WB_ENABLE                   (1 << 15)
201 #define S3C_VIDCON2_WB_MASK                     (1 << 15)
202 #define S3C_VIDCON2_TVFORMATSEL_HW              (0 << 14)
203 #define S3C_VIDCON2_TVFORMATSEL_SW              (1 << 14)
204 #define S3C_VIDCON2_TVFORMATSEL_MASK            (1 << 14)
205 #define S3C_VIDCON2_TVFORMATSEL_YUV422          (1 << 12)
206 #define S3C_VIDCON2_TVFORMATSEL_YUV444          (2 << 12)
207 #define S3C_VIDCON2_TVFORMATSEL_YUV_MASK        (3 << 12)
208 #define S3C_VIDCON2_ORGYUV_YCBCR                (0 << 8)
209 #define S3C_VIDCON2_ORGYUV_CBCRY                (1 << 8)
210 #define S3C_VIDCON2_ORGYUV_MASK                 (1 << 8)
211 #define S3C_VIDCON2_YUVORD_CBCR                 (0 << 7)
212 #define S3C_VIDCON2_YUVORD_CRCB                 (1 << 7)
213 #define S3C_VIDCON2_YUVORD_MASK                 (1 << 7)
214
215 /* PRTCON */
216 #define S3C_PRTCON_UPDATABLE                    (0 << 11)
217 #define S3C_PRTCON_PROTECT                      (1 << 11)
218
219 /* VIDTCON0 */
220 #define S3C_VIDTCON0_VBPDE(x)                   (((x) & 0xff) << 24)
221 #define S3C_VIDTCON0_VBPD(x)                    (((x) & 0xff) << 16)
222 #define S3C_VIDTCON0_VFPD(x)                    (((x) & 0xff) << 8)
223 #define S3C_VIDTCON0_VSPW(x)                    (((x) & 0xff) << 0)
224
225 /* VIDTCON1 */
226 #define S3C_VIDTCON1_VFPDE(x)                   (((x) & 0xff) << 24)
227 #define S3C_VIDTCON1_HBPD(x)                    (((x) & 0xff) << 16)
228 #define S3C_VIDTCON1_HFPD(x)                    (((x) & 0xff) << 8)
229 #define S3C_VIDTCON1_HSPW(x)                    (((x) & 0xff) << 0)
230
231 /* VIDTCON2 */
232 #define S3C_VIDTCON2_LINEVAL(x)                 (((x) & 0x7ff) << 11)
233 #define S3C_VIDTCON2_HOZVAL(x)                  (((x) & 0x7ff) << 0)
234
235 /* Window 0~4 Control - WINCONx */
236 #define S3C_WINCON_DATAPATH_DMA                 (0 << 22)
237 #define S3C_WINCON_DATAPATH_LOCAL               (1 << 22)
238 #define S3C_WINCON_DATAPATH_MASK                (1 << 22)
239 #define S3C_WINCON_BUFSEL_0                     (0 << 20)
240 #define S3C_WINCON_BUFSEL_1                     (1 << 20)
241 #define S3C_WINCON_BUFSEL_MASK                  (1 << 20)
242 #define S3C_WINCON_BUFSEL_SHIFT                 (20)
243 #define S3C_WINCON_BUFAUTO_DISABLE              (0 << 19)
244 #define S3C_WINCON_BUFAUTO_ENABLE               (1 << 19)
245 #define S3C_WINCON_BUFAUTO_MASK                 (1 << 19)
246 #define S3C_WINCON_BITSWP_DISABLE               (0 << 18)
247 #define S3C_WINCON_BITSWP_ENABLE                (1 << 18)
248 #define S3C_WINCON_BITSWP_SHIFT                 (18)
249 #define S3C_WINCON_BYTESWP_DISABLE              (0 << 17)
250 #define S3C_WINCON_BYTESWP_ENABLE               (1 << 17)
251 #define S3C_WINCON_BYTESWP_SHIFT                (17)
252 #define S3C_WINCON_HAWSWP_DISABLE               (0 << 16)
253 #define S3C_WINCON_HAWSWP_ENABLE                (1 << 16)
254 #define S3C_WINCON_HAWSWP_SHIFT                 (16)
255 #define S3C_WINCON_WSWP_DISABLE                 (0 << 15)
256 #define S3C_WINCON_WSWP_ENABLE                  (1 << 15)
257 #define S3C_WINCON_WSWP_SHIFT                   (15)
258 #define S3C_WINCON_INRGB_RGB                    (0 << 13)
259 #define S3C_WINCON_INRGB_YUV                    (1 << 13)
260 #define S3C_WINCON_INRGB_MASK                   (1 << 13)
261 #define S3C_WINCON_BURSTLEN_16WORD              (0 << 9)
262 #define S3C_WINCON_BURSTLEN_8WORD               (1 << 9)
263 #define S3C_WINCON_BURSTLEN_4WORD               (2 << 9)
264 #define S3C_WINCON_BURSTLEN_MASK                (3 << 9)
265 #define S3C_WINCON_ALPHA_MULTI_DISABLE          (0 << 7)
266 #define S3C_WINCON_ALPHA_MULTI_ENABLE           (1 << 7)
267 #define S3C_WINCON_BLD_PLANE                    (0 << 6)
268 #define S3C_WINCON_BLD_PIXEL                    (1 << 6)
269 #define S3C_WINCON_BLD_MASK                     (1 << 6)
270 #define S3C_WINCON_BPPMODE_1BPP                 (0 << 2)
271 #define S3C_WINCON_BPPMODE_2BPP                 (1 << 2)
272 #define S3C_WINCON_BPPMODE_4BPP                 (2 << 2)
273 #define S3C_WINCON_BPPMODE_8BPP_PAL             (3 << 2)
274 #define S3C_WINCON_BPPMODE_8BPP                 (4 << 2)
275 #define S3C_WINCON_BPPMODE_16BPP_565            (5 << 2)
276 #define S3C_WINCON_BPPMODE_16BPP_A555           (6 << 2)
277 #define S3C_WINCON_BPPMODE_18BPP_666            (8 << 2)
278 #define S3C_WINCON_BPPMODE_18BPP_A665           (9 << 2)
279 #define S3C_WINCON_BPPMODE_24BPP_888            (0xb << 2)
280 #define S3C_WINCON_BPPMODE_24BPP_A887           (0xc << 2)
281 #define S3C_WINCON_BPPMODE_32BPP                (0xd << 2)
282 #define S3C_WINCON_BPPMODE_16BPP_A444           (0xe << 2)
283 #define S3C_WINCON_BPPMODE_15BPP_555            (0xf << 2)
284 #define S3C_WINCON_BPPMODE_MASK                 (0xf << 2)
285 #define S3C_WINCON_BPPMODE_SHIFT                (2)
286 #define S3C_WINCON_ALPHA0_SEL                   (0 << 1)
287 #define S3C_WINCON_ALPHA1_SEL                   (1 << 1)
288 #define S3C_WINCON_ALPHA_SEL_MASK               (1 << 1)
289 #define S3C_WINCON_ENWIN_DISABLE                (0 << 0)
290 #define S3C_WINCON_ENWIN_ENABLE                 (1 << 0)
291
292 /* WINCON1 special */
293 #define S3C_WINCON1_VP_DISABLE                  (0 << 24)
294 #define S3C_WINCON1_VP_ENABLE                   (1 << 24)
295 #define S3C_WINCON1_LOCALSEL_FIMC1              (0 << 23)
296 #define S3C_WINCON1_LOCALSEL_VP                 (1 << 23)
297 #define S3C_WINCON1_LOCALSEL_MASK               (1 << 23)
298
299 /* WINSHMAP */
300 #define S3C_WINSHMAP_PROTECT(x)                 (((x) & 0x1f) << 10)
301 #define S3C_WINSHMAP_CH_ENABLE(x)               (1 << (x))
302 #define S3C_WINSHMAP_CH_DISABLE(x)              (1 << (x))
303 #define S3C_WINSHMAP_LOCAL_ENABLE(x)            (0x20 << (x))
304 #define S3C_WINSHMAP_LOCAL_DISABLE(x)           (0x20 << (x))
305
306
307 /* VIDOSDxA, VIDOSDxB */
308 #define S3C_VIDOSD_LEFT_X(x)                    (((x) & 0x7ff) << 11)
309 #define S3C_VIDOSD_TOP_Y(x)                     (((x) & 0x7ff) << 0)
310 #define S3C_VIDOSD_RIGHT_X(x)                   (((x) & 0x7ff) << 11)
311 #define S3C_VIDOSD_BOTTOM_Y(x)                  (((x) & 0x7ff) << 0)
312
313 /* VIDOSD0C, VIDOSDxD */
314 #define S3C_VIDOSD_SIZE(x)                      (((x) & 0xffffff) << 0)
315
316 /* VIDOSDxC (1~4) */
317 #define S3C_VIDOSD_ALPHA0_R(x)                  (((x) & 0xf) << 20)
318 #define S3C_VIDOSD_ALPHA0_G(x)                  (((x) & 0xf) << 16)
319 #define S3C_VIDOSD_ALPHA0_B(x)                  (((x) & 0xf) << 12)
320 #define S3C_VIDOSD_ALPHA1_R(x)                  (((x) & 0xf) << 8)
321 #define S3C_VIDOSD_ALPHA1_G(x)                  (((x) & 0xf) << 4)
322 #define S3C_VIDOSD_ALPHA1_B(x)                  (((x) & 0xf) << 0)
323 #define S3C_VIDOSD_ALPHA0_SHIFT                 (12)
324 #define S3C_VIDOSD_ALPHA1_SHIFT                 (0)
325
326 /* Start Address */
327 #define S3C_VIDADDR_START_VBANK(x)              (((x) & 0xff) << 24)
328 #define S3C_VIDADDR_START_VBASEU(x)             (((x) & 0xffffff) << 0)
329
330 /* End Address */
331 #define S3C_VIDADDR_END_VBASEL(x)               (((x) & 0xffffff) << 0)
332
333 /* Buffer Size */
334 #define S3C_VIDADDR_OFFSIZE(x)                  (((x) & 0x1fff) << 13)
335 #define S3C_VIDADDR_PAGEWIDTH(x)                (((x) & 0x1fff) << 0)
336
337 /* WIN Color Map */
338 #define S3C_WINMAP_COLOR(x)                     ((x) & 0xffffff)
339
340 /* VIDINTCON0 */
341 #define S3C_VIDINTCON0_SYSMAINCON_DISABLE       (0 << 19)
342 #define S3C_VIDINTCON0_SYSMAINCON_ENABLE        (1 << 19)
343 #define S3C_VIDINTCON0_SYSSUBCON_DISABLE        (0 << 18)
344 #define S3C_VIDINTCON0_SYSSUBCON_ENABLE         (1 << 18)
345 #define S3C_VIDINTCON0_SYSIFDONE_DISABLE        (0 << 17)
346 #define S3C_VIDINTCON0_SYSIFDONE_ENABLE         (1 << 17)
347 #define S3C_VIDINTCON0_FRAMESEL0_BACK           (0 << 15)
348 #define S3C_VIDINTCON0_FRAMESEL0_VSYNC          (1 << 15)
349 #define S3C_VIDINTCON0_FRAMESEL0_ACTIVE         (2 << 15)
350 #define S3C_VIDINTCON0_FRAMESEL0_FRONT          (3 << 15)
351 #define S3C_VIDINTCON0_FRAMESEL0_MASK           (3 << 15)
352 #define S3C_VIDINTCON0_FRAMESEL1_NONE           (0 << 13)
353 #define S3C_VIDINTCON0_FRAMESEL1_BACK           (1 << 13)
354 #define S3C_VIDINTCON0_FRAMESEL1_VSYNC          (2 << 13)
355 #define S3C_VIDINTCON0_FRAMESEL1_FRONT          (3 << 13)
356 #define S3C_VIDINTCON0_INTFRMEN_DISABLE         (0 << 12)
357 #define S3C_VIDINTCON0_INTFRMEN_ENABLE          (1 << 12)
358 #define S3C_VIDINTCON0_FIFOSEL_WIN4             (1 << 11)
359 #define S3C_VIDINTCON0_FIFOSEL_WIN3             (1 << 10)
360 #define S3C_VIDINTCON0_FIFOSEL_WIN2             (1 << 9)
361 #define S3C_VIDINTCON0_FIFOSEL_WIN1             (1 << 6)
362 #define S3C_VIDINTCON0_FIFOSEL_WIN0             (1 << 5)
363 #define S3C_VIDINTCON0_FIFOSEL_ALL              (0x73 << 5)
364 #define S3C_VIDINTCON0_FIFOSEL_MASK             (0x73 << 5)
365 #define S3C_VIDINTCON0_FIFOLEVEL_25             (0 << 2)
366 #define S3C_VIDINTCON0_FIFOLEVEL_50             (1 << 2)
367 #define S3C_VIDINTCON0_FIFOLEVEL_75             (2 << 2)
368 #define S3C_VIDINTCON0_FIFOLEVEL_EMPTY          (3 << 2)
369 #define S3C_VIDINTCON0_FIFOLEVEL_FULL           (4 << 2)
370 #define S3C_VIDINTCON0_FIFOLEVEL_MASK           (7 << 2)
371 #define S3C_VIDINTCON0_INTFIFO_DISABLE          (0 << 1)
372 #define S3C_VIDINTCON0_INTFIFO_ENABLE           (1 << 1)
373 #define S3C_VIDINTCON0_INT_DISABLE              (0 << 0)
374 #define S3C_VIDINTCON0_INT_ENABLE               (1 << 0)
375 #define S3C_VIDINTCON0_INT_MASK                 (1 << 0)
376
377 /* VIDINTCON1 */
378 #define S3C_VIDINTCON1_INTVPPEND                (1 << 5)
379 #define S3C_VIDINTCON1_INTI80PEND               (1 << 2)
380 #define S3C_VIDINTCON1_INTFRMPEND               (1 << 1)
381 #define S3C_VIDINTCON1_INTFIFOPEND              (1 << 0)
382
383 /* WINMAP */
384 #define S3C_WINMAP_ENABLE                       (1 << 24)
385
386 /* WxKEYCON0 (1~4) */
387 #define S3C_KEYCON0_KEYBLEN_DISABLE             (0 << 26)
388 #define S3C_KEYCON0_KEYBLEN_ENABLE              (1 << 26)
389 #define S3C_KEYCON0_KEY_DISABLE                 (0 << 25)
390 #define S3C_KEYCON0_KEY_ENABLE                  (1 << 25)
391 #define S3C_KEYCON0_DIRCON_MATCH_FG             (0 << 24)
392 #define S3C_KEYCON0_DIRCON_MATCH_BG             (1 << 24)
393 #define S3C_KEYCON0_COMPKEY(x)                  (((x) & 0xffffff) << 0)
394
395 /* WxKEYCON1 (1~4) */
396 #define S3C_KEYCON1_COLVAL(x)                   (((x) & 0xffffff) << 0)
397
398 #endif /* __ASM_PLAT_REGS_FB_H */