Selaa lähdekoodia

clk: tegra: pll: Add tegra_pll_wait_for_lock to clk header

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>
Rhyland Klein 10 vuotta sitten
vanhempi
commit
6583a6309e
2 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  1. 5 0
      drivers/clk/tegra/clk-pll.c
  2. 1 0
      drivers/clk/tegra/clk.h

+ 5 - 0
drivers/clk/tegra/clk-pll.c

@@ -269,6 +269,11 @@ static int clk_pll_wait_for_lock(struct tegra_clk_pll *pll)
 	return -1;
 	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)
 static int clk_pll_is_enabled(struct clk_hw *hw)
 {
 {
 	struct tegra_clk_pll *pll = to_clk_pll(hw);
 	struct tegra_clk_pll *pll = to_clk_pll(hw);

+ 1 - 0
drivers/clk/tegra/clk.h

@@ -674,5 +674,6 @@ void tegra114_clock_deassert_dfll_dvco_reset(void);
 
 
 typedef void (*tegra_clk_apply_init_table_func)(void);
 typedef void (*tegra_clk_apply_init_table_func)(void);
 extern tegra_clk_apply_init_table_func tegra_clk_apply_init_table;
 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 */
 #endif /* TEGRA_CLK_H */