aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2019-07-31 07:01:39 +0000
committerLukasz Majewski <lukma@denx.de>2019-07-31 09:20:51 +0200
commit4f305bf1b688ecb9508a2d74fa76ff34e90bc21f (patch)
treeefda2f763141a3d39e4d8029bbede6d950bcd057 /include
parentfe69b030deed82cb0364e8dfb1b7d1ea9dbec063 (diff)
downloadu-boot-4f305bf1b688ecb9508a2d74fa76ff34e90bc21f.zip
u-boot-4f305bf1b688ecb9508a2d74fa76ff34e90bc21f.tar.gz
u-boot-4f305bf1b688ecb9508a2d74fa76ff34e90bc21f.tar.bz2
clk: fixed_rate: export clk_fixed_rate
Export the structure for others to use. Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/clk-provider.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h
index 8b04ecd..f42df9b 100644
--- a/include/linux/clk-provider.h
+++ b/include/linux/clk-provider.h
@@ -129,6 +129,13 @@ struct clk_fixed_factor {
#define to_clk_fixed_factor(_clk) container_of(_clk, struct clk_fixed_factor,\
clk)
+struct clk_fixed_rate {
+ struct clk clk;
+ unsigned long fixed_rate;
+};
+
+#define to_clk_fixed_rate(dev) ((struct clk_fixed_rate *)dev_get_platdata(dev))
+
int clk_register(struct clk *clk, const char *drv_name, const char *name,
const char *parent_name);