]> git.karo-electronics.de Git - linux-beck.git/commitdiff
clk: tegra: pll: Add tegra_pll_wait_for_lock to clk header
authorRhyland Klein <rklein@nvidia.com>
Thu, 18 Jun 2015 21:28:19 +0000 (17:28 -0400)
committerThierry Reding <treding@nvidia.com>
Fri, 20 Nov 2015 17:04:25 +0000 (18:04 +0100)
Create a wrapper interface to make use of the existing
clk_pll_wait_for_lock. This will be useful for implementations
of callbacks in Tegra SoC specific clock drivers.

Reviewed-by: Benson Leung <bleung@chromium.org>
Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/clk/tegra/clk-pll.c
drivers/clk/tegra/clk.h

index e14d3ae2d74c9398e7737497f1b87a17955715f3..d53b226c02771765cd1e3287d4d7f6ba90888b57 100644 (file)
@@ -269,6 +269,11 @@ static int clk_pll_wait_for_lock(struct tegra_clk_pll *pll)
        return -1;
 }
 
+int tegra_pll_wait_for_lock(struct tegra_clk_pll *pll)
+{
+       return clk_pll_wait_for_lock(pll);
+}
+
 static int clk_pll_is_enabled(struct clk_hw *hw)
 {
        struct tegra_clk_pll *pll = to_clk_pll(hw);
index bdaec2b01295b81b9d72d7a3d5dd7662a05e383a..ced19e7c68d2415b6c1fabdbf190b9a8741e7749 100644 (file)
@@ -674,5 +674,6 @@ void tegra114_clock_deassert_dfll_dvco_reset(void);
 
 typedef void (*tegra_clk_apply_init_table_func)(void);
 extern tegra_clk_apply_init_table_func tegra_clk_apply_init_table;
+int tegra_pll_wait_for_lock(struct tegra_clk_pll *pll);
 
 #endif /* TEGRA_CLK_H */