summaryrefslogtreecommitdiff
path: root/drivers/clk/rockchip/clk.h
diff options
context:
space:
mode:
authorMichael Turquette <mturquette@baylibre.com>2015-12-24 00:08:56 +0300
committerMichael Turquette <mturquette@baylibre.com>2015-12-24 00:08:56 +0300
commita915e30dd26ea5f3cc2e2c044aba38ee5973d3fa (patch)
tree0de1e6e8ea64b9a675a135722882cab4768b5002 /drivers/clk/rockchip/clk.h
parentce6dd266d535d66ac90abdd0241e7e5be4890568 (diff)
parentb0158bb27c7b6e9843f541c17b24dbd964b76db6 (diff)
downloadlinux-a915e30dd26ea5f3cc2e2c044aba38ee5973d3fa.tar.xz
Merge branch 'clk-rockchip' into clk-next
Diffstat (limited to 'drivers/clk/rockchip/clk.h')
-rw-r--r--drivers/clk/rockchip/clk.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/clk/rockchip/clk.h b/drivers/clk/rockchip/clk.h
index 809ef81cf63b..3f71ee5d1bc9 100644
--- a/drivers/clk/rockchip/clk.h
+++ b/drivers/clk/rockchip/clk.h
@@ -274,6 +274,7 @@ struct rockchip_clk_branch {
int gate_offset;
u8 gate_shift;
u8 gate_flags;
+ struct rockchip_clk_branch *child;
};
#define COMPOSITE(_id, cname, pnames, f, mo, ms, mw, mf, ds, dw,\
@@ -408,6 +409,24 @@ struct rockchip_clk_branch {
.gate_flags = gf, \
}
+#define COMPOSITE_FRACMUX(_id, cname, pname, f, mo, df, go, gs, gf, ch) \
+ { \
+ .id = _id, \
+ .branch_type = branch_fraction_divider, \
+ .name = cname, \
+ .parent_names = (const char *[]){ pname }, \
+ .num_parents = 1, \
+ .flags = f, \
+ .muxdiv_offset = mo, \
+ .div_shift = 16, \
+ .div_width = 16, \
+ .div_flags = df, \
+ .gate_offset = go, \
+ .gate_shift = gs, \
+ .gate_flags = gf, \
+ .child = &(struct rockchip_clk_branch)ch, \
+ }
+
#define MUX(_id, cname, pnames, f, o, s, w, mf) \
{ \
.id = _id, \