video: s3c-fb: move the bit definitions for WINxMAP and WPALCON register
authorJingoo Han <jg1.han@samsung.com>
Tue, 25 Sep 2012 08:16:52 +0000 (17:16 +0900)
committerJingoo Han <jg1.han@samsung.com>
Mon, 26 Nov 2012 04:35:35 +0000 (13:35 +0900)
The bit definitions for WINxMAP and WPALCON register are moved to
right place.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
include/video/samsung_fimd.h

index 7c9a9bcbcbbc17b734932018cdba5bb904652a0a..d5fe38b035b6ab1ef5e1423282662883ac019b91 100644 (file)
 #define WxKEYCON1_COLVAL_LIMIT                 (0xffffff)
 #define WxKEYCON1_COLVAL(_x)                   ((_x) << 0)
 
-
 /* Window blanking (MAP) */
-
+#define WINxMAP(_win)                          (0x180 + ((_win) * 4))
 #define WINxMAP_MAP                            (1 << 24)
 #define WINxMAP_MAP_COLOUR_MASK                        (0xffffff << 0)
 #define WINxMAP_MAP_COLOUR_SHIFT               (0)
 #define WINxMAP_MAP_COLOUR_LIMIT               (0xffffff)
 #define WINxMAP_MAP_COLOUR(_x)                 ((_x) << 0)
 
+/* Winodw palette control */
+#define WPALCON                                        (0x1A0)
 #define WPALCON_PAL_UPDATE                     (1 << 9)
+#define WPALCON_W4PAL_16BPP_A555               (1 << 8)
+#define WPALCON_W3PAL_16BPP_A555               (1 << 7)
+#define WPALCON_W2PAL_16BPP_A555               (1 << 6)
 #define WPALCON_W1PAL_MASK                     (0x7 << 3)
 #define WPALCON_W1PAL_SHIFT                    (3)
 #define WPALCON_W1PAL_25BPP_A888               (0x0 << 3)
 #define WPALCON_W1PAL_18BPP                    (0x4 << 3)
 #define WPALCON_W1PAL_16BPP_A555               (0x5 << 3)
 #define WPALCON_W1PAL_16BPP_565                        (0x6 << 3)
-
 #define WPALCON_W0PAL_MASK                     (0x7 << 0)
 #define WPALCON_W0PAL_SHIFT                    (0)
 #define WPALCON_W0PAL_25BPP_A888               (0x0 << 0)
 #define VIDCON1_FSTATUS_EVEN   (1 << 15)
 
 #define DITHMODE                               (0x170)
-#define WINxMAP(_win)                          (0x180 + ((_win) * 4))
-
-
 #define DITHMODE_R_POS_MASK                    (0x3 << 5)
 #define DITHMODE_R_POS_SHIFT                   (5)
 #define DITHMODE_R_POS_8BIT                    (0x0 << 5)
 
 #define DITHMODE_DITH_EN                       (1 << 0)
 
-#define WPALCON                                        (0x1A0)
-
-/* Palette control */
-/* Note for S5PC100: you can still use those macros on WPALCON (aka WPALCON_L),
- * but make sure that WPALCON_H W2PAL-W4PAL entries are zeroed out */
-#define WPALCON_W4PAL_16BPP_A555               (1 << 8)
-#define WPALCON_W3PAL_16BPP_A555               (1 << 7)
-#define WPALCON_W2PAL_16BPP_A555               (1 << 6)
-
-
 /* Notes on per-window bpp settings
  *
  * Value       Win0     Win1     Win2     Win3     Win 4