diff options
author | Peter De Schrijver <pdeschrijver@nvidia.com> | 2013-10-14 16:47:37 +0300 |
---|---|---|
committer | Peter De Schrijver <pdeschrijver@nvidia.com> | 2013-11-26 18:46:23 +0200 |
commit | b8700d506ac4050fd96ce9305df04df811365326 (patch) | |
tree | cd3cd4be2dff9c903c0c9ca3965520715df36026 /drivers/clk/tegra/clk.c | |
parent | a59ba9565ee20d162e858de03b9eebc0b9dbd8b6 (diff) | |
download | blackbird-op-linux-b8700d506ac4050fd96ce9305df04df811365326.tar.gz blackbird-op-linux-b8700d506ac4050fd96ce9305df04df811365326.zip |
clk: tegra: add common infra for DT clocks
Introduce a common infrastructure for sharing clock initialization between
SoCs.
Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Diffstat (limited to 'drivers/clk/tegra/clk.c')
-rw-r--r-- | drivers/clk/tegra/clk.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/clk/tegra/clk.c b/drivers/clk/tegra/clk.c index 3a95a8757ebc..a0430cd65d7c 100644 --- a/drivers/clk/tegra/clk.c +++ b/drivers/clk/tegra/clk.c @@ -212,6 +212,15 @@ void __init tegra_add_of_provider(struct device_node *np) of_clk_add_provider(np, of_clk_src_onecell_get, &clk_data); } +struct clk ** __init tegra_lookup_dt_id(int clk_id, + struct tegra_clk *tegra_clk) +{ + if (tegra_clk[clk_id].present) + return &clks[tegra_clk[clk_id].dt_id]; + else + return NULL; +} + tegra_clk_apply_init_table_func tegra_clk_apply_init_table; void __init tegra_clocks_apply_init_table(void) |