aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2012-09-25 04:16:52 -0400
committerJingoo Han <jg1.han@samsung.com>2012-11-25 23:35:35 -0500
commit22254540d4b1b22861c4afaeac13c6a43b56de44 (patch)
tree26813d13ea4fa3fc93500a42646471b7594f9622
parent60eb8d83f0f70ddf023eb781d7eafffe54f9c5c5 (diff)
video: s3c-fb: move the bit definitions for WINxMAP and WPALCON register
The bit definitions for WINxMAP and WPALCON register are moved to right place. Signed-off-by: Jingoo Han <jg1.han@samsung.com>
-rw-r--r--include/video/samsung_fimd.h22
1 files changed, 6 insertions, 16 deletions
diff --git a/include/video/samsung_fimd.h b/include/video/samsung_fimd.h
index 7c9a9bcbcbbc..d5fe38b035b6 100644
--- a/include/video/samsung_fimd.h
+++ b/include/video/samsung_fimd.h
@@ -376,16 +376,20 @@
376#define WxKEYCON1_COLVAL_LIMIT (0xffffff) 376#define WxKEYCON1_COLVAL_LIMIT (0xffffff)
377#define WxKEYCON1_COLVAL(_x) ((_x) << 0) 377#define WxKEYCON1_COLVAL(_x) ((_x) << 0)
378 378
379
380/* Window blanking (MAP) */ 379/* Window blanking (MAP) */
381 380#define WINxMAP(_win) (0x180 + ((_win) * 4))
382#define WINxMAP_MAP (1 << 24) 381#define WINxMAP_MAP (1 << 24)
383#define WINxMAP_MAP_COLOUR_MASK (0xffffff << 0) 382#define WINxMAP_MAP_COLOUR_MASK (0xffffff << 0)
384#define WINxMAP_MAP_COLOUR_SHIFT (0) 383#define WINxMAP_MAP_COLOUR_SHIFT (0)
385#define WINxMAP_MAP_COLOUR_LIMIT (0xffffff) 384#define WINxMAP_MAP_COLOUR_LIMIT (0xffffff)
386#define WINxMAP_MAP_COLOUR(_x) ((_x) << 0) 385#define WINxMAP_MAP_COLOUR(_x) ((_x) << 0)
387 386
387/* Winodw palette control */
388#define WPALCON (0x1A0)
388#define WPALCON_PAL_UPDATE (1 << 9) 389#define WPALCON_PAL_UPDATE (1 << 9)
390#define WPALCON_W4PAL_16BPP_A555 (1 << 8)
391#define WPALCON_W3PAL_16BPP_A555 (1 << 7)
392#define WPALCON_W2PAL_16BPP_A555 (1 << 6)
389#define WPALCON_W1PAL_MASK (0x7 << 3) 393#define WPALCON_W1PAL_MASK (0x7 << 3)
390#define WPALCON_W1PAL_SHIFT (3) 394#define WPALCON_W1PAL_SHIFT (3)
391#define WPALCON_W1PAL_25BPP_A888 (0x0 << 3) 395#define WPALCON_W1PAL_25BPP_A888 (0x0 << 3)
@@ -395,7 +399,6 @@
395#define WPALCON_W1PAL_18BPP (0x4 << 3) 399#define WPALCON_W1PAL_18BPP (0x4 << 3)
396#define WPALCON_W1PAL_16BPP_A555 (0x5 << 3) 400#define WPALCON_W1PAL_16BPP_A555 (0x5 << 3)
397#define WPALCON_W1PAL_16BPP_565 (0x6 << 3) 401#define WPALCON_W1PAL_16BPP_565 (0x6 << 3)
398
399#define WPALCON_W0PAL_MASK (0x7 << 0) 402#define WPALCON_W0PAL_MASK (0x7 << 0)
400#define WPALCON_W0PAL_SHIFT (0) 403#define WPALCON_W0PAL_SHIFT (0)
401#define WPALCON_W0PAL_25BPP_A888 (0x0 << 0) 404#define WPALCON_W0PAL_25BPP_A888 (0x0 << 0)
@@ -416,9 +419,6 @@
416#define VIDCON1_FSTATUS_EVEN (1 << 15) 419#define VIDCON1_FSTATUS_EVEN (1 << 15)
417 420
418#define DITHMODE (0x170) 421#define DITHMODE (0x170)
419#define WINxMAP(_win) (0x180 + ((_win) * 4))
420
421
422#define DITHMODE_R_POS_MASK (0x3 << 5) 422#define DITHMODE_R_POS_MASK (0x3 << 5)
423#define DITHMODE_R_POS_SHIFT (5) 423#define DITHMODE_R_POS_SHIFT (5)
424#define DITHMODE_R_POS_8BIT (0x0 << 5) 424#define DITHMODE_R_POS_8BIT (0x0 << 5)
@@ -439,16 +439,6 @@
439 439
440#define DITHMODE_DITH_EN (1 << 0) 440#define DITHMODE_DITH_EN (1 << 0)
441 441
442#define WPALCON (0x1A0)
443
444/* Palette control */
445/* Note for S5PC100: you can still use those macros on WPALCON (aka WPALCON_L),
446 * but make sure that WPALCON_H W2PAL-W4PAL entries are zeroed out */
447#define WPALCON_W4PAL_16BPP_A555 (1 << 8)
448#define WPALCON_W3PAL_16BPP_A555 (1 << 7)
449#define WPALCON_W2PAL_16BPP_A555 (1 << 6)
450
451
452/* Notes on per-window bpp settings 442/* Notes on per-window bpp settings
453 * 443 *
454 * Value Win0 Win1 Win2 Win3 Win 4 444 * Value Win0 Win1 Win2 Win3 Win 4