summaryrefslogtreecommitdiffstats
path: root/include/linux/clk-provider.h
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2013-10-22 11:39:36 +0300
committerMike Turquette <mturquette@linaro.org>2014-01-17 12:34:52 -0800
commit819b4861c18d602463cfe815041d11fd81002654 (patch)
treeb9b83374a962896f3d3903dc16345a9dfa53ecca /include/linux/clk-provider.h
parenta8aceccb4d5db0acb476b74051525fb26f57f8ae (diff)
downloadblackbird-op-linux-819b4861c18d602463cfe815041d11fd81002654.tar.gz
blackbird-op-linux-819b4861c18d602463cfe815041d11fd81002654.zip
CLK: ti: add init support for clock IP blocks
ti_dt_clk_init_provider() can now be used to initialize the contents of a single clock IP block. This parses all the clocks under the IP block and calls the corresponding init function for them. This patch also introduces a helper function for the TI clock drivers to get register info from DT and append the master IP info to this. Signed-off-by: Tero Kristo <t-kristo@ti.com> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'include/linux/clk-provider.h')
-rw-r--r--include/linux/clk-provider.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h
index 999b28ba38f7..448b2294820f 100644
--- a/include/linux/clk-provider.h
+++ b/include/linux/clk-provider.h
@@ -488,6 +488,8 @@ struct clk_onecell_data {
unsigned int clk_num;
};
+extern struct of_device_id __clk_of_table;
+
#define CLK_OF_DECLARE(name, compat, fn) \
static const struct of_device_id __clk_of_table_##name \
__used __section(__clk_of_table) \
OpenPOWER on IntegriCloud