rk3066B lcdc: add AXI_MS_ID config,fix stanby issue
authoryxj <yxj@rock-chips.com>
Mon, 3 Sep 2012 09:43:09 +0000 (17:43 +0800)
committeryxj <yxj@rock-chips.com>
Mon, 3 Sep 2012 09:43:47 +0000 (17:43 +0800)
drivers/video/rockchip/chips/rk31_lcdc.c
drivers/video/rockchip/chips/rk31_lcdc.h

index 29dff742a25643f6879ce817c35bb2de84db094e..d7bd620101372fd8e1fa63221d30220db8fbb740 100644 (file)
@@ -76,6 +76,9 @@ static int init_rk31_lcdc(struct rk_lcdc_device_driver *dev_drv)
        LcdMskReg(lcdc_dev,SYS_CFG, m_LCDC_AXICLK_AUTO_ENABLE | m_W0_AXI_OUTSTANDING2 |
                m_W1_AXI_OUTSTANDING2,v_LCDC_AXICLK_AUTO_ENABLE(1) | v_W0_AXI_OUTSTANDING2(1) |
                v_W1_AXI_OUTSTANDING2(1));//eanble axi-clk auto gating for low power
+        LcdWrReg(lcdc_dev,AXI_MS_ID,v_HWC_CHANNEL_ID(5) | v_WIN2_CHANNEL_ID(4) |
+               v_WIN1_YRGB_CHANNEL_ID(3) | v_WIN0_CBR_CHANNEL_ID(2) | 
+               v_WIN0_YRGB_CHANNEL_ID(1));
        LcdMskReg(lcdc_dev, INT_STATUS,m_HOR_STARTMASK| m_FRM_STARTMASK | 
              m_SCANNING_MASK, v_HOR_STARTMASK(1) | v_FRM_STARTMASK(1) | 
              v_SCANNING_MASK(1));  //mask all interrupt in init
index 25c6044d868806bf2d93143d1b41838714ee7add..c3abd092b04b546fe56f5b39709a7e430de706f8 100644 (file)
 #define v_WIN2_FIFO_FULL_LEVEL(x)      (((x)&0x1f) << 7)
 
 
+#define m_WIN0_YRGB_CHANNEL_ID         ((0x0f)<<0)
+#define m_WIN0_CBR_CHANNEL_ID          ((0x0f)<<4)
+#define m_WIN1_YRGB_CHANNEL_ID         ((0x0f)<<8)
+#define m_WIN2_CHANNEL_ID              ((0x0f)<<12)
+#define m_HWC_CHANNEL_ID               ((0x0f)<<16)
+#define v_WIN0_YRGB_CHANNEL_ID(x)      (((x)&0x0f)<<0)
+#define v_WIN0_CBR_CHANNEL_ID(x)       (((x)&0x0f)<<4)
+#define v_WIN1_YRGB_CHANNEL_ID(x)      (((x)&0x0f)<<8)
+#define v_WIN2_CHANNEL_ID(x)           (((x)&0x0f)<<12)
+#define v_HWC_CHANNEL_ID(x)            (((x)&0x0f)<<16)
+
 
 //LCDC_WINx_SCL_FACTOR_Y/CBCR
 #define v_X_SCL_FACTOR(x)  ((x)<<0)