rk3066b_lcdc: support new iomux api
author黄涛 <huangtao@rock-chips.com>
Wed, 16 Jan 2013 06:40:41 +0000 (14:40 +0800)
committer黄涛 <huangtao@rock-chips.com>
Wed, 16 Jan 2013 06:51:53 +0000 (14:51 +0800)
drivers/video/rockchip/lcdc/rk3066b_lcdc.c

index ca029224f13b0ddd0b45b1d719df021914e9bb8c..8a413e951e47fa8dfb7069be7b532ac8302f9953 100755 (executable)
@@ -77,34 +77,34 @@ static int init_rk3066b_lcdc(struct rk_lcdc_device_driver *dev_drv)
 
        if(lcdc_dev->id == 1) //iomux for lcdc1
        {
-               rk30_mux_api_set(GPIO2D0_LCDC1DCLK_SMCCSN0_NAME,GPIO2D_LCDC1DCLK);
-               rk30_mux_api_set(GPIO2D1_LCDC1DEN_SMCWEN_NAME,GPIO2D_LCDC1DEN);
-               rk30_mux_api_set(GPIO2D2_LCDC1HSYNC_SMCOEN_NAME,GPIO2D_LCDC1HSYNC);
-               rk30_mux_api_set(GPIO2D3_LCDC1VSYNC_SMCADVN_NAME,GPIO2D_LCDC1VSYNC);
-               rk30_mux_api_set(GPIO2A0_LCDC1DATA0_SMCDATA0_TRACEDATA0_NAME,GPIO2A_LCDC1DATA0);
-               rk30_mux_api_set(GPIO2A1_LCDC1DATA1_SMCDATA1_TRACEDATA1_NAME,GPIO2A_LCDC1DATA1);
-               rk30_mux_api_set(GPIO2A2_LCDC1DATA2_SMCDATA2_TRACEDATA2_NAME,GPIO2A_LCDC1DATA2);
-               rk30_mux_api_set(GPIO2A3_LCDC1DATA3_SMCDATA3_TRACEDATA3_NAME,GPIO2A_LCDC1DATA3);
-               rk30_mux_api_set(GPIO2A4_LCDC1DATA4_SMCDATA4_TRACEDATA4_NAME,GPIO2A_LCDC1DATA4);
-               rk30_mux_api_set(GPIO2A5_LCDC1DATA5_SMCDATA5_TRACEDATA5_NAME,GPIO2A_LCDC1DATA5);
-               rk30_mux_api_set(GPIO2A6_LCDC1DATA6_SMCDATA6_TRACEDATA6_NAME,GPIO2A_LCDC1DATA6);
-               rk30_mux_api_set(GPIO2A7_LCDC1DATA7_SMCDATA7_TRACEDATA7_NAME,GPIO2A_LCDC1DATA7);
-               rk30_mux_api_set(GPIO2B0_LCDC1DATA8_SMCDATA8_TRACEDATA8_NAME,GPIO2B_LCDC1DATA8);
-               rk30_mux_api_set(GPIO2B1_LCDC1DATA9_SMCDATA9_TRACEDATA9_NAME,GPIO2B_LCDC1DATA9);
-               rk30_mux_api_set(GPIO2B2_LCDC1DATA10_SMCDATA10_TRACEDATA10_NAME,GPIO2B_LCDC1DATA10);
-               rk30_mux_api_set(GPIO2B3_LCDC1DATA11_SMCDATA11_TRACEDATA11_NAME,GPIO2B_LCDC1DATA11);
-               rk30_mux_api_set(GPIO2B4_LCDC1DATA12_SMCDATA12_TRACEDATA12_NAME,GPIO2B_LCDC1DATA12);
-               rk30_mux_api_set(GPIO2B5_LCDC1DATA13_SMCDATA13_TRACEDATA13_NAME,GPIO2B_LCDC1DATA13);
-               rk30_mux_api_set(GPIO2B6_LCDC1DATA14_SMCDATA14_TRACEDATA14_NAME,GPIO2B_LCDC1DATA14);
-               rk30_mux_api_set(GPIO2B7_LCDC1DATA15_SMCDATA15_TRACEDATA15_NAME,GPIO2B_LCDC1DATA15);
-               rk30_mux_api_set(GPIO2C0_LCDC1DATA16_SMCADDR0_TRACECLK_NAME,GPIO2C_LCDC1DATA16);
-               rk30_mux_api_set(GPIO2C1_LCDC1DATA17_SMCADDR1_TRACECTL_NAME,GPIO2C_LCDC1DATA17);
-               rk30_mux_api_set(GPIO2C2_LCDC1DATA18_SMCADDR2_NAME,GPIO2C_LCDC1DATA18);
-               rk30_mux_api_set(GPIO2C3_LCDC1DATA19_SMCADDR3_NAME,GPIO2C_LCDC1DATA19);
-               rk30_mux_api_set(GPIO2C4_LCDC1DATA20_SMCADDR4_NAME,GPIO2C_LCDC1DATA20);
-               rk30_mux_api_set(GPIO2C5_LCDC1DATA21_SMCADDR5_NAME,GPIO2C_LCDC1DATA21);
-               rk30_mux_api_set(GPIO2C6_LCDC1DATA22_SMCADDR6_NAME,GPIO2C_LCDC1DATA22);
-               rk30_mux_api_set(GPIO2C7_LCDC1DATA23_SMCADDR7_NAME,GPIO2C_LCDC1DATA23);
+               iomux_set(LCDC1_DCLK);
+               iomux_set(LCDC1_DEN);
+               iomux_set(LCDC1_HSYNC);
+               iomux_set(LCDC1_VSYNC);
+               iomux_set(LCDC1_D0);
+               iomux_set(LCDC1_D1);
+               iomux_set(LCDC1_D2);
+               iomux_set(LCDC1_D3);
+               iomux_set(LCDC1_D4);
+               iomux_set(LCDC1_D5);
+               iomux_set(LCDC1_D6);
+               iomux_set(LCDC1_D7);
+               iomux_set(LCDC1_D8);
+               iomux_set(LCDC1_D9);
+               iomux_set(LCDC1_D10);
+               iomux_set(LCDC1_D11);
+               iomux_set(LCDC1_D12);
+               iomux_set(LCDC1_D13);
+               iomux_set(LCDC1_D14);
+               iomux_set(LCDC1_D15);
+               iomux_set(LCDC1_D16);
+               iomux_set(LCDC1_D17);
+               iomux_set(LCDC1_D18);
+               iomux_set(LCDC1_D19);
+               iomux_set(LCDC1_D20);
+               iomux_set(LCDC1_D21);
+               iomux_set(LCDC1_D22);
+               iomux_set(LCDC1_D23);
                
        }
        LcdMskReg(lcdc_dev,SYS_CFG, m_LCDC_AXICLK_AUTO_ENABLE | m_W0_AXI_OUTSTANDING2 |