summaryrefslogtreecommitdiff
path: root/include/clk.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-07-04 11:58:03 -0600
committerSimon Glass <sjg@chromium.org>2016-07-14 20:40:24 -0600
commit7423daa60eb30b6613dfc19a51c55de23fd4d703 (patch)
tree0122221097902d85d3e11f41d045e1a77c417e9f /include/clk.h
parentf24770d8124c097b7b57ccc22b67aaf02bb6e850 (diff)
dm: clk: Add support for of-platdata
Add support for this feature in the core clock code. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/clk.h')
-rw-r--r--include/clk.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clk.h b/include/clk.h
index 2f31cf70e3..161bc2825f 100644
--- a/include/clk.h
+++ b/include/clk.h
@@ -60,6 +60,10 @@ struct clk {
};
#if CONFIG_IS_ENABLED(OF_CONTROL)
+struct phandle_2_cell;
+int clk_get_by_index_platdata(struct udevice *dev, int index,
+ struct phandle_2_cell *cells, struct clk *clk);
+
/**
* clock_get_by_index - Get/request a clock by integer index.
*