]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
media: video: tegra: enable t14x config
authorSudhir Vyas <svyas@nvidia.com>
Mon, 4 Feb 2013 19:53:19 +0000 (11:53 -0800)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 19:59:34 +0000 (12:59 -0700)
Bug 1180011

Change-Id: Ide51c3927f8699b8d186f6f3eda87609c1d872a1
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/197082
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Tested-by: Thomas Cherry <tcherry@nvidia.com>
drivers/media/video/tegra/tegra_camera.c

index c327b3f872c3e92820227f4d722da78a1513deb0..48073c37fb8ee9dc5467ff9252f87d882f96681d 100644 (file)
@@ -89,7 +89,7 @@ static int tegra_camera_enable_clk(struct tegra_camera_dev *dev)
        clk_prepare_enable(dev->isp_clk);
        clk_prepare_enable(dev->csi_clk);
 
-#ifdef CONFIG_ARCH_TEGRA_11x_SOC
+#if defined(CONFIG_ARCH_TEGRA_11x_SOC) || defined(CONFIG_ARCH_TEGRA_14x_SOC)
        clk_prepare_enable(dev->cilab_clk);
        clk_prepare_enable(dev->cilcd_clk);
        clk_prepare_enable(dev->cile_clk);
@@ -108,7 +108,7 @@ static int tegra_camera_disable_clk(struct tegra_camera_dev *dev)
        clk_disable_unprepare(dev->vi_sensor_clk);
        clk_disable_unprepare(dev->vi_clk);
 
-#ifdef CONFIG_ARCH_TEGRA_11x_SOC
+#if defined(CONFIG_ARCH_TEGRA_11x_SOC) || defined(CONFIG_ARCH_TEGRA_14x_SOC)
        clk_disable_unprepare(dev->cilab_clk);
        clk_disable_unprepare(dev->cilcd_clk);
        clk_disable_unprepare(dev->cile_clk);
@@ -160,7 +160,7 @@ static int tegra_camera_clk_set_rate(struct tegra_camera_dev *dev)
 
        switch (info->clk_id) {
        case TEGRA_CAMERA_VI_CLK:
-#ifdef CONFIG_ARCH_TEGRA_11x_SOC
+#if defined(CONFIG_ARCH_TEGRA_11x_SOC) || defined(CONFIG_ARCH_TEGRA_14x_SOC)
                if (info->flag == TEGRA_CAMERA_ENABLE_PD2VI_CLK) {
                        if (dev->pll_d2_clk) {
                                if (!tegra_is_clk_enabled(dev->pll_d2_clk))
@@ -694,7 +694,7 @@ static int tegra_camera_remove(struct platform_device *pdev)
        clk_put(dev->vi_sensor_clk);
        clk_put(dev->csus_clk);
        clk_put(dev->csi_clk);
-#ifdef CONFIG_ARCH_TEGRA_11x_SOC
+#if defined(CONFIG_ARCH_TEGRA_11x_SOC) || defined(CONFIG_ARCH_TEGRA_14x_SOC)
        clk_put(dev->cilab_clk);
        clk_put(dev->cilcd_clk);
        clk_put(dev->cile_clk);