aboutsummaryrefslogtreecommitdiffstats
path: root/include/video/samsung_fimd.h
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2012-09-25 02:37:45 -0400
committerJingoo Han <jg1.han@samsung.com>2012-11-25 23:35:34 -0500
commit36ff8d54ca6f3c251f0b7536bac3c38c57439e23 (patch)
tree92c8b45372a60290031815189d0be94d916b1efc /include/video/samsung_fimd.h
parentf4a75d2eb7b1e2206094b901be09adb31ba63681 (diff)
video: s3c-fb: clean the bit definition for WINCON register
This patch cleans the bit definition for WINCON register. The bit definition for WINCON1 and WINCON2 is removed, because it is not used. Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Diffstat (limited to 'include/video/samsung_fimd.h')
-rw-r--r--include/video/samsung_fimd.h76
1 files changed, 13 insertions, 63 deletions
diff --git a/include/video/samsung_fimd.h b/include/video/samsung_fimd.h
index 7ae6c07f2ef8..bd0a04e478eb 100644
--- a/include/video/samsung_fimd.h
+++ b/include/video/samsung_fimd.h
@@ -173,18 +173,27 @@
173 173
174/* WINCONx */ 174/* WINCONx */
175 175
176 176#define WINCON(_win) (0x20 + ((_win) * 4))
177#define WINCONx_CSCWIDTH_MASK (0x3 << 26)
178#define WINCONx_CSCWIDTH_SHIFT (26)
179#define WINCONx_CSCWIDTH_WIDE (0x0 << 26)
180#define WINCONx_CSCWIDTH_NARROW (0x3 << 26)
181#define WINCONx_ENLOCAL (1 << 22)
182#define WINCONx_BUFSTATUS (1 << 21)
183#define WINCONx_BUFSEL (1 << 20)
184#define WINCONx_BUFAUTOEN (1 << 19)
177#define WINCONx_BITSWP (1 << 18) 185#define WINCONx_BITSWP (1 << 18)
178#define WINCONx_BYTSWP (1 << 17) 186#define WINCONx_BYTSWP (1 << 17)
179#define WINCONx_HAWSWP (1 << 16) 187#define WINCONx_HAWSWP (1 << 16)
180#define WINCONx_WSWP (1 << 15) 188#define WINCONx_WSWP (1 << 15)
189#define WINCONx_YCbCr (1 << 13)
181#define WINCONx_BURSTLEN_MASK (0x3 << 9) 190#define WINCONx_BURSTLEN_MASK (0x3 << 9)
182#define WINCONx_BURSTLEN_SHIFT (9) 191#define WINCONx_BURSTLEN_SHIFT (9)
183#define WINCONx_BURSTLEN_16WORD (0x0 << 9) 192#define WINCONx_BURSTLEN_16WORD (0x0 << 9)
184#define WINCONx_BURSTLEN_8WORD (0x1 << 9) 193#define WINCONx_BURSTLEN_8WORD (0x1 << 9)
185#define WINCONx_BURSTLEN_4WORD (0x2 << 9) 194#define WINCONx_BURSTLEN_4WORD (0x2 << 9)
186
187#define WINCONx_ENWIN (1 << 0) 195#define WINCONx_ENWIN (1 << 0)
196
188#define WINCON0_BPPMODE_MASK (0xf << 2) 197#define WINCON0_BPPMODE_MASK (0xf << 2)
189#define WINCON0_BPPMODE_SHIFT (2) 198#define WINCON0_BPPMODE_SHIFT (2)
190#define WINCON0_BPPMODE_1BPP (0x0 << 2) 199#define WINCON0_BPPMODE_1BPP (0x0 << 2)
@@ -196,9 +205,8 @@
196#define WINCON0_BPPMODE_18BPP_666 (0x8 << 2) 205#define WINCON0_BPPMODE_18BPP_666 (0x8 << 2)
197#define WINCON0_BPPMODE_24BPP_888 (0xb << 2) 206#define WINCON0_BPPMODE_24BPP_888 (0xb << 2)
198 207
208#define WINCON1_LOCALSEL_CAMIF (1 << 23)
199#define WINCON1_BLD_PIX (1 << 6) 209#define WINCON1_BLD_PIX (1 << 6)
200
201#define WINCON1_ALPHA_SEL (1 << 1)
202#define WINCON1_BPPMODE_MASK (0xf << 2) 210#define WINCON1_BPPMODE_MASK (0xf << 2)
203#define WINCON1_BPPMODE_SHIFT (2) 211#define WINCON1_BPPMODE_SHIFT (2)
204#define WINCON1_BPPMODE_1BPP (0x0 << 2) 212#define WINCON1_BPPMODE_1BPP (0x0 << 2)
@@ -216,6 +224,7 @@
216#define WINCON1_BPPMODE_24BPP_A1887 (0xc << 2) 224#define WINCON1_BPPMODE_24BPP_A1887 (0xc << 2)
217#define WINCON1_BPPMODE_25BPP_A1888 (0xd << 2) 225#define WINCON1_BPPMODE_25BPP_A1888 (0xd << 2)
218#define WINCON1_BPPMODE_28BPP_A4888 (0xd << 2) 226#define WINCON1_BPPMODE_28BPP_A4888 (0xd << 2)
227#define WINCON1_ALPHA_SEL (1 << 1)
219 228
220/* S5PV210 */ 229/* S5PV210 */
221#define SHADOWCON (0x34) 230#define SHADOWCON (0x34)
@@ -401,71 +410,12 @@
401#define VIDTCON1 (0x14) 410#define VIDTCON1 (0x14)
402#define VIDTCON2 (0x18) 411#define VIDTCON2 (0x18)
403 412
404/* Window position controls */
405
406#define WINCON(_win) (0x20 + ((_win) * 4))
407
408/* OSD1 and OSD4 do not have register D */ 413/* OSD1 and OSD4 do not have register D */
409 414
410#define VIDOSD_BASE (0x40) 415#define VIDOSD_BASE (0x40)
411 416
412#define VIDINTCON0 (0x130) 417#define VIDINTCON0 (0x130)
413 418
414/* WINCONx */
415
416#define WINCONx_CSCWIDTH_MASK (0x3 << 26)
417#define WINCONx_CSCWIDTH_SHIFT (26)
418#define WINCONx_CSCWIDTH_WIDE (0x0 << 26)
419#define WINCONx_CSCWIDTH_NARROW (0x3 << 26)
420
421#define WINCONx_ENLOCAL (1 << 22)
422#define WINCONx_BUFSTATUS (1 << 21)
423#define WINCONx_BUFSEL (1 << 20)
424#define WINCONx_BUFAUTOEN (1 << 19)
425#define WINCONx_YCbCr (1 << 13)
426
427#define WINCON1_LOCALSEL_CAMIF (1 << 23)
428
429#define WINCON2_LOCALSEL_CAMIF (1 << 23)
430#define WINCON2_BLD_PIX (1 << 6)
431
432#define WINCON2_ALPHA_SEL (1 << 1)
433#define WINCON2_BPPMODE_MASK (0xf << 2)
434#define WINCON2_BPPMODE_SHIFT (2)
435#define WINCON2_BPPMODE_1BPP (0x0 << 2)
436#define WINCON2_BPPMODE_2BPP (0x1 << 2)
437#define WINCON2_BPPMODE_4BPP (0x2 << 2)
438#define WINCON2_BPPMODE_8BPP_1232 (0x4 << 2)
439#define WINCON2_BPPMODE_16BPP_565 (0x5 << 2)
440#define WINCON2_BPPMODE_16BPP_A1555 (0x6 << 2)
441#define WINCON2_BPPMODE_16BPP_I1555 (0x7 << 2)
442#define WINCON2_BPPMODE_18BPP_666 (0x8 << 2)
443#define WINCON2_BPPMODE_18BPP_A1665 (0x9 << 2)
444#define WINCON2_BPPMODE_19BPP_A1666 (0xa << 2)
445#define WINCON2_BPPMODE_24BPP_888 (0xb << 2)
446#define WINCON2_BPPMODE_24BPP_A1887 (0xc << 2)
447#define WINCON2_BPPMODE_25BPP_A1888 (0xd << 2)
448#define WINCON2_BPPMODE_28BPP_A4888 (0xd << 2)
449
450#define WINCON3_BLD_PIX (1 << 6)
451
452#define WINCON3_ALPHA_SEL (1 << 1)
453#define WINCON3_BPPMODE_MASK (0xf << 2)
454#define WINCON3_BPPMODE_SHIFT (2)
455#define WINCON3_BPPMODE_1BPP (0x0 << 2)
456#define WINCON3_BPPMODE_2BPP (0x1 << 2)
457#define WINCON3_BPPMODE_4BPP (0x2 << 2)
458#define WINCON3_BPPMODE_16BPP_565 (0x5 << 2)
459#define WINCON3_BPPMODE_16BPP_A1555 (0x6 << 2)
460#define WINCON3_BPPMODE_16BPP_I1555 (0x7 << 2)
461#define WINCON3_BPPMODE_18BPP_666 (0x8 << 2)
462#define WINCON3_BPPMODE_18BPP_A1665 (0x9 << 2)
463#define WINCON3_BPPMODE_19BPP_A1666 (0xa << 2)
464#define WINCON3_BPPMODE_24BPP_888 (0xb << 2)
465#define WINCON3_BPPMODE_24BPP_A1887 (0xc << 2)
466#define WINCON3_BPPMODE_25BPP_A1888 (0xd << 2)
467#define WINCON3_BPPMODE_28BPP_A4888 (0xd << 2)
468
469#define VIDINTCON0_FIFIOSEL_WINDOW2 (0x10 << 5) 419#define VIDINTCON0_FIFIOSEL_WINDOW2 (0x10 << 5)
470#define VIDINTCON0_FIFIOSEL_WINDOW3 (0x20 << 5) 420#define VIDINTCON0_FIFIOSEL_WINDOW3 (0x20 << 5)
471#define VIDINTCON0_FIFIOSEL_WINDOW4 (0x40 << 5) 421#define VIDINTCON0_FIFIOSEL_WINDOW4 (0x40 << 5)