diff options
author | Tero Kristo <t-kristo@ti.com> | 2014-12-16 17:20:48 +0100 |
---|---|---|
committer | Michael Turquette <mturquette@linaro.org> | 2015-01-30 19:54:54 +0100 |
commit | f187616b36edafff5a18d2b66fe7eed3bbb38bf0 (patch) | |
tree | b200f7c83602177dc499e12cfab36e5c3f16dbba /drivers/clk/ti/clk.c | |
parent | clk: ti: mux: add support for legacy mux init (diff) | |
download | linux-f187616b36edafff5a18d2b66fe7eed3bbb38bf0.tar.xz linux-f187616b36edafff5a18d2b66fe7eed3bbb38bf0.zip |
clk: ti: gate: add support for legacy gate init
Legacy clock data is initialialized slightly differently compared to
DT clocks, thus add support for this.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk/ti/clk.c')
-rw-r--r-- | drivers/clk/ti/clk.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/clk/ti/clk.c b/drivers/clk/ti/clk.c index 215f681053d0..676dbf170b31 100644 --- a/drivers/clk/ti/clk.c +++ b/drivers/clk/ti/clk.c @@ -222,6 +222,9 @@ struct clk __init *ti_clk_register_clk(struct ti_clk *setup) 0, fixed_factor->mult, fixed_factor->div); break; + case TI_CLK_GATE: + clk = ti_clk_register_gate(setup); + break; default: pr_err("bad type for %s!\n", setup->name); clk = ERR_PTR(-EINVAL); |