]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - include/video/samsung_fimd.h
Merge tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux
[linux.git] / include / video / samsung_fimd.h
index d8fc96ed11e9d29ecde7654419d1554aaeb7ab16..4ba5efe8d086a876285399b68051df0ce87fc368 100644 (file)
 #define WINCONx_BURSTLEN_8WORD                 (0x1 << 9)
 #define WINCONx_BURSTLEN_4WORD                 (0x2 << 9)
 #define WINCONx_ENWIN                          (1 << 0)
+#define WINCONx_BLEND_MODE_MASK                        (0xc2)
 
 #define WINCON0_BPPMODE_MASK                   (0xf << 2)
 #define WINCON0_BPPMODE_SHIFT                  2
 #define WINCON0_BPPMODE_24BPP_888              (0xb << 2)
 
 #define WINCON1_LOCALSEL_CAMIF                 (1 << 23)
+#define WINCON1_ALPHA_MUL                      (1 << 7)
 #define WINCON1_BLD_PIX                                (1 << 6)
 #define WINCON1_BPPMODE_MASK                   (0xf << 2)
 #define WINCON1_BPPMODE_SHIFT                  2
 #define WPALCON_W0PAL_16BPP_565                        (0x6 << 0)
 
 /* Blending equation control */
+#define BLENDEQx(_win)                         (0x244 + ((_win - 1) * 4))
+#define BLENDEQ_ZERO                           0x0
+#define BLENDEQ_ONE                            0x1
+#define BLENDEQ_ALPHA_A                                0x2
+#define BLENDEQ_ONE_MINUS_ALPHA_A              0x3
+#define BLENDEQ_ALPHA0                         0x6
+#define BLENDEQ_B_FUNC_F(_x)                   (_x << 6)
+#define BLENDEQ_A_FUNC_F(_x)                   (_x << 0)
 #define BLENDCON                               0x260
 #define BLENDCON_NEW_MASK                      (1 << 0)
 #define BLENDCON_NEW_8BIT_ALPHA_VALUE          (1 << 0)