rk3066 lcdc:fix BLEND register define bug
authoryxj <yxj@rock-chips.com>
Thu, 29 Nov 2012 11:46:37 +0000 (19:46 +0800)
committeryxj <yxj@rock-chips.com>
Sat, 1 Dec 2012 04:56:05 +0000 (12:56 +0800)
drivers/video/rockchip/lcdc/rk30_lcdc.h

index 9576ed54c59adce70126d06062877f09d9e63ca0..01645ab021a78bace50927b49c208ac93415c2e2 100644 (file)
@@ -304,23 +304,23 @@ typedef volatile struct tagLCDC_REG
 #define v_MCU_OUTPUT_SELECT(x)        (((x)&1)<<31)
 
 //LCDC_ BLEND_CTRL
-#define m_HWC_BLEND_EN         (1<<0)
-#define m_W2_BLEND_EN          (1<<1)
-#define m_W1_BLEND_EN          (1<<2)
-#define m_W0_BLEND_EN          (1<<3)
-#define m_HWC_BLEND_FACTOR     (15<<4)
-#define m_W2_BLEND_FACTOR     (0xff<<8)
-#define m_W1_BLEND_FACTOR     (0xff<<16)
-#define m_W0_BLEND_FACTOR     (0xff<<24)
-
-#define v_HWC_BLEND_EN(x)         (((x)&1)<<0)
-#define v_W2_BLEND_EN(x)          (((x)&1)<<1)
-#define v_W1_BLEND_EN(x)          (((x)&1)<<2)
-#define v_W0_BLEND_EN(x)          (((x)&1)<<3)
-#define v_HWC_BLEND_FACTOR(x)    (((x)&15)<<4)
-#define v_W2_BLEND_FACTOR(x)     (((x)&0xff)<<8)
-#define v_W1_BLEND_FACTOR(x)     (((x)&0xff)<<16)
-#define v_W0_BLEND_FACTOR(x)     (((x)&0xff)<<24)
+#define m_W0_BLEND_EN         (1<<0)
+#define m_W1_BLEND_EN          (1<<1)
+#define m_W2_BLEND_EN          (1<<2)
+#define m_HWC_BLEND_EN          (1<<3)
+#define m_W0_BLEND_FACTOR     (15<<4)
+#define m_W1_BLEND_FACTOR     (0xff<<8)
+#define m_W2_BLEND_FACTOR     (0xff<<16)
+#define m_HWC_BLEND_FACTOR     (0xff<<24)
+
+#define v_W0_BLEND_EN(x)         (((x)&1)<<0)
+#define v_W1_BLEND_EN(x)          (((x)&1)<<1)
+#define v_W2_BLEND_EN(x)          (((x)&1)<<2)
+#define v_HWC_BLEND_EN(x)          (((x)&1)<<3)
+#define v_W0_BLEND_FACTOR(x)    (((x)&15)<<4)
+#define v_W1_BLEND_FACTOR(x)     (((x)&0xff)<<8)
+#define v_W2_BLEND_FACTOR(x)     (((x)&0xff)<<16)
+#define v_HWC_BLEND_FACTOR(x)     (((x)&0xff)<<24)
 
 
 //LCDC_WIN0_COLOR_KEY_CTRL / LCDC_WIN1_COLOR_KEY_CTRL