summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2016-11-09 08:13:57 -0800
committerSascha Hauer <s.hauer@pengutronix.de>2017-01-11 08:07:00 +0100
commit10a7436e511264720c4c5b3ec97f6dae25b0c3cb (patch)
tree4e64f3aa81df88cf1a778ed711ced7e054e780d7 /include/linux
parentc580e8422c0cb6dfe963c826a9d83214e6f0aa8a (diff)
downloadbarebox-10a7436e511264720c4c5b3ec97f6dae25b0c3cb.tar.gz
barebox-10a7436e511264720c4c5b3ec97f6dae25b0c3cb.tar.xz
clk: Port of_clk_set_defaults()
Port of_clk_set_defautls() from Linux kernel in order to support DT configurations that require it (e. g. Vybrid). 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/clk-conf.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/clk/clk-conf.h b/include/linux/clk/clk-conf.h
new file mode 100644
index 0000000000..8f4382e6c6
--- /dev/null
+++ b/include/linux/clk/clk-conf.h
@@ -0,0 +1,17 @@
+/*
+ * Copyright (C) 2014 Samsung Electronics Co., Ltd.
+ * Sylwester Nawrocki <s.nawrocki@samsung.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#if defined(CONFIG_OFTREE) && defined(CONFIG_COMMON_CLK_OF_PROVIDER)
+
+#include <linux/types.h>
+
+struct device_node;
+int of_clk_set_defaults(struct device_node *node, bool clk_supplier);
+
+#endif