clk: ti: add support for clkctrl clocks
authorTero Kristo <t-kristo@ti.com>
Thu, 9 Feb 2017 09:27:11 +0000 (11:27 +0200)
committerTero Kristo <t-kristo@ti.com>
Thu, 15 Jun 2017 07:47:43 +0000 (10:47 +0300)
commit88a172526c326b357eb6c19e0f90d8cf5bd4473d
tree506415fb8b4250b1e149736283f896fb6c30e33a
parent35395a9c52c8a8159178b9a96e4661f0758ede5d
clk: ti: add support for clkctrl clocks

Previously, hwmod core has been used for controlling the hwmod level
clocks directly. This has certain drawbacks, like being unable to share
the clocks for multiple users, missing usecounting and generally being
totally incompatible with the common clock framework.

This patch adds support for clkctrl clocks for addressing the above
issues. These support the modulemode handling, which will replace the
direct hwmod clkctrl linkage. Any optional clocks are also supported,
gate, mux and divider.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
drivers/clk/ti/Makefile
drivers/clk/ti/clkctrl.c [new file with mode: 0644]
drivers/clk/ti/clock.h