diff options
author | Tero Kristo <t-kristo@ti.com> | 2014-12-16 18:20:49 +0200 |
---|---|---|
committer | Michael Turquette <mturquette@linaro.org> | 2015-01-30 10:55:00 -0800 |
commit | 06524fa4289797deb9a66c1a3e681052eed0d83d (patch) | |
tree | 8af9e6d4ce571b62671ceaf663b8d59807b0fb4a /drivers/clk/ti/gate.c | |
parent | f187616b36edafff5a18d2b66fe7eed3bbb38bf0 (diff) | |
download | talos-op-linux-06524fa4289797deb9a66c1a3e681052eed0d83d.tar.gz talos-op-linux-06524fa4289797deb9a66c1a3e681052eed0d83d.zip |
clk: ti: interface: add support for legacy interface clock init
Legacy clock data is initialized slightly differently compared to
DT clocks, thus add support for this. The interface clock descriptor
itself is overloading the gate clock descriptor, thus it needs to
be called from the gate setup.
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/gate.c')
-rw-r--r-- | drivers/clk/ti/gate.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/clk/ti/gate.c b/drivers/clk/ti/gate.c index ff3380ea3861..d4f6cb20e16e 100644 --- a/drivers/clk/ti/gate.c +++ b/drivers/clk/ti/gate.c @@ -142,6 +142,9 @@ struct clk *ti_clk_register_gate(struct ti_clk *setup) gate = setup->data; + if (gate->flags & CLKF_INTERFACE) + return ti_clk_register_interface(setup); + reg_setup = (struct clk_omap_reg *)® if (gate->flags & CLKF_SET_RATE_PARENT) |