rk3288:enable front camera
authorzyh <zyh@rock-chips.com>
Wed, 2 Apr 2014 13:50:49 +0000 (21:50 +0800)
committerzyh <zyh@rock-chips.com>
Wed, 2 Apr 2014 13:50:49 +0000 (21:50 +0800)
drivers/media/video/rk_camsys/camsys_marvin.c

index 041a3a562d604f9e6e4e52bbe18cf7985019c31d..486b2ffbd6b2df39f17f9d79f505cb37a7935e01 100755 (executable)
@@ -135,6 +135,9 @@ static int camsys_mrv_clkin_cb(void *ptr, unsigned int on)
         clk_prepare_enable(clk->isp);
         clk_prepare_enable(clk->isp_jpe);
         clk_prepare_enable(clk->clk_mipi_24m); 
+        clk_prepare_enable(clk->pclkin_isp); 
+
+
 
  //       clk_enable(clk->pd_isp);
   //      clk_enable(clk->aclk_isp);
@@ -156,6 +159,7 @@ static int camsys_mrv_clkin_cb(void *ptr, unsigned int on)
         clk_disable_unprepare(clk->isp);
         clk_disable_unprepare(clk->isp_jpe);
         clk_disable_unprepare(clk->clk_mipi_24m); 
+        clk_disable_unprepare(clk->pclkin_isp); 
 
   //      clk_disable(clk->pd_isp);
   //      clk_disable(clk->aclk_isp);
@@ -346,7 +350,7 @@ int camsys_mrv_probe_cb(struct platform_device *pdev, camsys_dev_t *camsys_dev)
     mrv_clk->cif_clk_out = devm_clk_get(&pdev->dev, "clk_vipout");
     mrv_clk->clk_mipi_24m = devm_clk_get(&pdev->dev,"clk_mipi_24m"); 
     if (/*IS_ERR_OR_NULL(mrv_clk->pd_isp) ||*/ IS_ERR_OR_NULL(mrv_clk->aclk_isp) || IS_ERR_OR_NULL(mrv_clk->hclk_isp) ||
-        IS_ERR_OR_NULL(mrv_clk->isp) || IS_ERR_OR_NULL(mrv_clk->isp_jpe) /*|| IS_ERR_OR_NULL(mrv_clk->pclkin_isp)*/ || 
+        IS_ERR_OR_NULL(mrv_clk->isp) || IS_ERR_OR_NULL(mrv_clk->isp_jpe) || IS_ERR_OR_NULL(mrv_clk->pclkin_isp) || 
         IS_ERR_OR_NULL(mrv_clk->cif_clk_out) || IS_ERR_OR_NULL(mrv_clk->clk_mipi_24m)) {
         camsys_err("Get %s clock resouce failed!\n",miscdev_name);
         err = -EINVAL;