summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2017-03-08 14:08:55 -0800
committerSascha Hauer <s.hauer@pengutronix.de>2017-03-09 08:13:38 +0100
commitb5ea2c6acce4cbe4bdf68c052018859b8c8c50b5 (patch)
treeb3ab878896b3b4a7ab8935c194dd8dd36b35ce71 /include/linux
parentda1752b37003a0c1c9b25948b05e19f4ab8055a1 (diff)
downloadbarebox-b5ea2c6acce4cbe4bdf68c052018859b8c8c50b5.tar.gz
barebox-b5ea2c6acce4cbe4bdf68c052018859b8c8c50b5.tar.xz
clk: Port two helper functions from Linux
Port of_clk_get_parent_count() and of_clk_parent_fill() from Linux. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/clk.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/clk.h b/include/linux/clk.h
index 7dd52388c5..f73b02986f 100644
--- a/include/linux/clk.h
+++ b/include/linux/clk.h
@@ -348,7 +348,10 @@ struct clk *of_clk_src_simple_get(struct of_phandle_args *clkspec, void *data);
struct clk *of_clk_get(struct device_node *np, int index);
struct clk *of_clk_get_by_name(struct device_node *np, const char *name);
struct clk *of_clk_get_from_provider(struct of_phandle_args *clkspec);
+unsigned int of_clk_get_parent_count(struct device_node *np);
char *of_clk_get_parent_name(struct device_node *np, unsigned int index);
+int of_clk_parent_fill(struct device_node *np, const char **parents,
+ unsigned int size);
int of_clk_init(struct device_node *root, const struct of_device_id *matches);
#else
static inline struct clk *of_clk_get(struct device_node *np, int index)