Lines Matching +full:interface +full:- +full:node
2 * OMAP interface clock support
6 * Tero Kristo <t-kristo@ti.com>
18 #include <linux/clk-provider.h>
35 static struct clk *_register_interface(struct device_node *node, in _register_interface() argument
47 return ERR_PTR(-ENOMEM); in _register_interface()
49 clk_hw->hw.init = &init; in _register_interface()
50 clk_hw->ops = ops; in _register_interface()
51 memcpy(&clk_hw->enable_reg, reg, sizeof(*reg)); in _register_interface()
52 clk_hw->enable_bit = bit_idx; in _register_interface()
61 clk = of_ti_clk_register_omap_hw(node, &clk_hw->hw, name); in _register_interface()
69 static void __init _of_ti_interface_clk_setup(struct device_node *node, in _of_ti_interface_clk_setup() argument
79 if (ti_clk_get_reg_addr(node, 0, ®)) in _of_ti_interface_clk_setup()
82 if (!of_property_read_u32(node, "ti,bit-shift", &val)) in _of_ti_interface_clk_setup()
85 parent_name = of_clk_get_parent_name(node, 0); in _of_ti_interface_clk_setup()
87 pr_err("%pOFn must have a parent\n", node); in _of_ti_interface_clk_setup()
91 name = ti_dt_clk_name(node); in _of_ti_interface_clk_setup()
92 clk = _register_interface(node, name, parent_name, ®, in _of_ti_interface_clk_setup()
96 of_clk_add_provider(node, of_clk_src_simple_get, clk); in _of_ti_interface_clk_setup()
99 static void __init of_ti_interface_clk_setup(struct device_node *node) in of_ti_interface_clk_setup() argument
101 _of_ti_interface_clk_setup(node, &clkhwops_iclk_wait); in of_ti_interface_clk_setup()
103 CLK_OF_DECLARE(ti_interface_clk, "ti,omap3-interface-clock",
106 static void __init of_ti_no_wait_interface_clk_setup(struct device_node *node) in of_ti_no_wait_interface_clk_setup() argument
108 _of_ti_interface_clk_setup(node, &clkhwops_iclk); in of_ti_no_wait_interface_clk_setup()
110 CLK_OF_DECLARE(ti_no_wait_interface_clk, "ti,omap3-no-wait-interface-clock",
114 static void __init of_ti_hsotgusb_interface_clk_setup(struct device_node *node) in of_ti_hsotgusb_interface_clk_setup() argument
116 _of_ti_interface_clk_setup(node, in of_ti_hsotgusb_interface_clk_setup()
119 CLK_OF_DECLARE(ti_hsotgusb_interface_clk, "ti,omap3-hsotgusb-interface-clock",
122 static void __init of_ti_dss_interface_clk_setup(struct device_node *node) in of_ti_dss_interface_clk_setup() argument
124 _of_ti_interface_clk_setup(node, in of_ti_dss_interface_clk_setup()
127 CLK_OF_DECLARE(ti_dss_interface_clk, "ti,omap3-dss-interface-clock",
130 static void __init of_ti_ssi_interface_clk_setup(struct device_node *node) in of_ti_ssi_interface_clk_setup() argument
132 _of_ti_interface_clk_setup(node, &clkhwops_omap3430es2_iclk_ssi_wait); in of_ti_ssi_interface_clk_setup()
134 CLK_OF_DECLARE(ti_ssi_interface_clk, "ti,omap3-ssi-interface-clock",
137 static void __init of_ti_am35xx_interface_clk_setup(struct device_node *node) in of_ti_am35xx_interface_clk_setup() argument
139 _of_ti_interface_clk_setup(node, &clkhwops_am35xx_ipss_wait); in of_ti_am35xx_interface_clk_setup()
141 CLK_OF_DECLARE(ti_am35xx_interface_clk, "ti,am35xx-interface-clock",
146 static void __init of_ti_omap2430_interface_clk_setup(struct device_node *node) in of_ti_omap2430_interface_clk_setup() argument
148 _of_ti_interface_clk_setup(node, &clkhwops_omap2430_i2chs_wait); in of_ti_omap2430_interface_clk_setup()
150 CLK_OF_DECLARE(ti_omap2430_interface_clk, "ti,omap2430-interface-clock",