diff options
author | Rhyland Klein <rklein@nvidia.com> | 2015-06-18 17:28:19 -0400 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2015-11-20 18:04:25 +0100 |
commit | 6583a6309e83e89f00e104c4ffd9df01d2e5a9f8 (patch) | |
tree | ca59e3c75f49688cd91a2ca46c613c4ec9fea483 /drivers/clk | |
parent | dc37fec48314d942003a414a4bab38f4688f09a3 (diff) | |
download | talos-obmc-linux-6583a6309e83e89f00e104c4ffd9df01d2e5a9f8.tar.gz talos-obmc-linux-6583a6309e83e89f00e104c4ffd9df01d2e5a9f8.zip |
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>
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/tegra/clk-pll.c | 5 | ||||
-rw-r--r-- | drivers/clk/tegra/clk.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/drivers/clk/tegra/clk-pll.c b/drivers/clk/tegra/clk-pll.c index e14d3ae2d74c..d53b226c0277 100644 --- a/drivers/clk/tegra/clk-pll.c +++ b/drivers/clk/tegra/clk-pll.c @@ -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); diff --git a/drivers/clk/tegra/clk.h b/drivers/clk/tegra/clk.h index bdaec2b01295..ced19e7c68d2 100644 --- a/drivers/clk/tegra/clk.h +++ b/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); 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 */ |