summaryrefslogtreecommitdiff
path: root/drivers/clk/tegra/clk-tegra-fixed.c
diff options
context:
space:
mode:
authorSowjanya Komatineni <skomatineni@nvidia.com>2020-01-14 10:24:08 +0300
committerThierry Reding <treding@nvidia.com>2020-03-12 13:33:29 +0300
commit2b50e49b093c6f4c03faaf06d6b67707fab40938 (patch)
tree007cd2d69467f859cf2c7cb8add4589da2cc81fc /drivers/clk/tegra/clk-tegra-fixed.c
parent9a85eb4d62425555ccdc774d906e6bbca5ffccc0 (diff)
downloadlinux-2b50e49b093c6f4c03faaf06d6b67707fab40938.tar.xz
clk: tegra: Add Tegra OSC to clock lookup
OSC is one of the parent for Tegra PMC clocks clk_out_1, clk_out_2, and clk_out_3. This patch adds Tegra OSC to clock lookup. Tested-by: Dmitry Osipenko <digetx@gmail.com> Reviewed-by: Dmitry Osipenko <digetx@gmail.com> Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/clk/tegra/clk-tegra-fixed.c')
-rw-r--r--drivers/clk/tegra/clk-tegra-fixed.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/clk/tegra/clk-tegra-fixed.c b/drivers/clk/tegra/clk-tegra-fixed.c
index 990106391334..0dc2d5f5cfb5 100644
--- a/drivers/clk/tegra/clk-tegra-fixed.c
+++ b/drivers/clk/tegra/clk-tegra-fixed.c
@@ -46,7 +46,12 @@ int __init tegra_osc_clk_init(void __iomem *clk_base, struct tegra_clk *clks,
return -EINVAL;
}
+ dt_clk = tegra_lookup_dt_id(tegra_clk_osc, clks);
+ if (!dt_clk)
+ return 0;
+
osc = clk_register_fixed_rate(NULL, "osc", NULL, 0, *osc_freq);
+ *dt_clk = osc;
/* osc_div2 */
dt_clk = tegra_lookup_dt_id(tegra_clk_osc_div2, clks);