MIPI: fix merge error with develop-3.10
authorxjh <xujh@rock-chips.com>
Mon, 28 Jul 2014 07:54:37 +0000 (15:54 +0800)
committerxjh <xujh@rock-chips.com>
Mon, 28 Jul 2014 07:58:24 +0000 (15:58 +0800)
drivers/video/rockchip/transmitter/rk32_mipi_dsi.c
drivers/video/rockchip/transmitter/rk32_mipi_dsi.h

index fa220e3d3a683b01ad5840f83bb96f7e824fcaf3..392bbf42dc4d77b623e7ae21cb172329a11f3127 100755 (executable)
@@ -1689,7 +1689,7 @@ static int rk32_dsi_enable(void)
        
        rk_fb_get_prmry_screen(dsi0->screen.screen);
        dsi0->screen.lcdc_id = dsi0->screen.screen->lcdc_id;
-       rk_init_phy_mode(dsi0->screen.lcdc_id);
+       rk32_init_phy_mode(dsi0->screen.lcdc_id);
        
        dsi_init(0, 0);
        if (rk_mipi_get_dsi_num() ==2)
@@ -1741,6 +1741,10 @@ static void rk32_init_phy_mode(int lcdc_id)
        int val0 = 0, val1 = 0;
 
        MIPI_DBG("rk32_init_phy_mode----------lcdc_id=%d\n",lcdc_id);
+       
+       if(cpu_is_rk312x())
+               return;
+       
        //D-PHY mode select
        if( rk_mipi_get_dsi_num() ==1 ){
        
@@ -1767,12 +1771,6 @@ static void rk32_init_phy_mode(int lcdc_id)
        }
 }
 
-static void rk_init_phy_mode(int lcdc_id)
-{
-       if(cpu_is_rk3288())
-               rk32_init_phy_mode(lcdc_id);
-       
-}
 #ifdef CONFIG_RK_3288_DSI_UBOOT
 #ifdef CONFIG_OF_LIBFDT
 int rk_dsi_host_parse_dt(const void *blob, struct dsi *dsi)
index d47335b3a94bc3f1a1ab5d83c4e3ee4830baeee3..32a47161b9d304b5b9023761e25faa69db58d97a 100755 (executable)
@@ -300,7 +300,6 @@ int rk_mipi_get_dsi_lane(void);
 static int rk32_mipi_power_down_DDR(void);
 static int rk32_mipi_power_up_DDR(void);
 static void rk32_init_phy_mode(int lcdc_id);
-static void rk_init_phy_mode(int lcdc_id);
 
 
 #endif /* end of RK32_MIPI_DSI_H */