Revert "rk3188 lcdc:support color key config for win1"
authoryxj <yxj@rock-chips.com>
Tue, 26 Feb 2013 04:46:39 +0000 (12:46 +0800)
committeryxj <yxj@rock-chips.com>
Tue, 26 Feb 2013 05:07:06 +0000 (13:07 +0800)
This reverts commit 08a95bd55f6e7165d82ddd35e95605f80c4e09e0.

drivers/video/rockchip/lcdc/rk3188_lcdc.c

index 6f4eacf787ec3979f9b6f94b2ae13ea9c22af363..e08c45e54f321b7c0bc91b015b2b5b545eaf51dd 100644 (file)
@@ -120,7 +120,6 @@ static int rk3188_lcdc_alpha_cfg(struct rk3188_lcdc_device *lcdc_dev)
                lcdc_msk_reg(lcdc_dev,DSP_CTRL0,m_WIN0_ALPHA_MODE | m_ALPHA_MODE_SEL0 |
                        m_ALPHA_MODE_SEL1,v_WIN0_ALPHA_MODE(1) | v_ALPHA_MODE_SEL0(1) |
                        v_ALPHA_MODE_SEL1(0));//default set to per-pixel alpha  
-               lcdc_writel(lcdc_dev,WIN1_COLOR_KEY,v_COLOR_KEY_EN(0)| v_COLOR_KEY_VAL(0));
        }
        else if((!win0_top) && (lcdc_dev->atv_layer_cnt >= 2) && (win1_alpha_en))
        {
@@ -128,15 +127,7 @@ static int rk3188_lcdc_alpha_cfg(struct rk3188_lcdc_device *lcdc_dev)
                                v_WIN0_ALPHA_EN(0) | v_WIN1_ALPHA_EN(1));
                lcdc_msk_reg(lcdc_dev,DSP_CTRL0,m_WIN1_ALPHA_MODE | m_ALPHA_MODE_SEL0 |
                        m_ALPHA_MODE_SEL1,v_WIN1_ALPHA_MODE(1) | v_ALPHA_MODE_SEL0(1) |
-                       v_ALPHA_MODE_SEL1(0));//default set to per-pixel alpha
-               lcdc_writel(lcdc_dev,WIN1_COLOR_KEY,v_COLOR_KEY_EN(0)| v_COLOR_KEY_VAL(0));
-       }
-       else if((!win0_top) && (lcdc_dev->atv_layer_cnt >= 2) && (!win1_alpha_en))
-       {
-               lcdc_msk_reg(lcdc_dev,ALPHA_CTRL,m_WIN0_ALPHA_EN | m_WIN1_ALPHA_EN,
-                               v_WIN0_ALPHA_EN(0) | v_WIN1_ALPHA_EN(0));
-               lcdc_writel(lcdc_dev,WIN1_COLOR_KEY,v_COLOR_KEY_EN(1)| v_COLOR_KEY_VAL(0));
-               
+                       v_ALPHA_MODE_SEL1(0));//default set to per-pixel alpha  
        }
        else
        {