summaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorRhyland Klein2015-06-18 23:28:19 +0200
committerThierry Reding2015-11-20 18:04:25 +0100
commit6583a6309e83e89f00e104c4ffd9df01d2e5a9f8 (patch)
treeca59e3c75f49688cd91a2ca46c613c4ec9fea483 /drivers/clk
parentclk: tegra: periph: Add new periph clks and muxes for Tegra210 (diff)
downloadkernel-qcow2-linux-6583a6309e83e89f00e104c4ffd9df01d2e5a9f8.tar.gz
kernel-qcow2-linux-6583a6309e83e89f00e104c4ffd9df01d2e5a9f8.tar.xz
kernel-qcow2-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.c5
-rw-r--r--drivers/clk/tegra/clk.h1
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 */