summaryrefslogtreecommitdiffstats
path: root/drivers/clk/ti/interface.c
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2014-02-25 19:16:07 +0200
committerTero Kristo <t-kristo@ti.com>2014-05-28 12:30:12 +0300
commitde742570745e12b53c70130ace958f2a60044000 (patch)
tree6ea305766c90234e92bdd9338f32c819d33d13fc /drivers/clk/ti/interface.c
parent9fa160cb9f2f51ef8274df7b4f390edf6ae491c3 (diff)
downloadtalos-obmc-linux-de742570745e12b53c70130ace958f2a60044000.tar.gz
talos-obmc-linux-de742570745e12b53c70130ace958f2a60044000.zip
CLK: TI: interface: add support for omap2430 specific interface clock
OMAP2430 I2CHS modules require specific hardware ops to be used, so added a new compatible string for this. Signed-off-by: Tero Kristo <t-kristo@ti.com>
Diffstat (limited to 'drivers/clk/ti/interface.c')
-rw-r--r--drivers/clk/ti/interface.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/clk/ti/interface.c b/drivers/clk/ti/interface.c
index 320a2b168bb2..9c3e8c4aaa40 100644
--- a/drivers/clk/ti/interface.c
+++ b/drivers/clk/ti/interface.c
@@ -94,6 +94,7 @@ static void __init of_ti_no_wait_interface_clk_setup(struct device_node *node)
CLK_OF_DECLARE(ti_no_wait_interface_clk, "ti,omap3-no-wait-interface-clock",
of_ti_no_wait_interface_clk_setup);
+#ifdef CONFIG_ARCH_OMAP3
static void __init of_ti_hsotgusb_interface_clk_setup(struct device_node *node)
{
_of_ti_interface_clk_setup(node,
@@ -123,3 +124,13 @@ static void __init of_ti_am35xx_interface_clk_setup(struct device_node *node)
}
CLK_OF_DECLARE(ti_am35xx_interface_clk, "ti,am35xx-interface-clock",
of_ti_am35xx_interface_clk_setup);
+#endif
+
+#ifdef CONFIG_SOC_OMAP2430
+static void __init of_ti_omap2430_interface_clk_setup(struct device_node *node)
+{
+ _of_ti_interface_clk_setup(node, &clkhwops_omap2430_i2chs_wait);
+}
+CLK_OF_DECLARE(ti_omap2430_interface_clk, "ti,omap2430-interface-clock",
+ of_ti_omap2430_interface_clk_setup);
+#endif
OpenPOWER on IntegriCloud