Lines Matching full:regmap
18 #include <linux/regmap.h>
34 struct regmap *regmap; member
46 return regmap_write_bits(clk->regmap, clk->reg, clk->mask, clk->mask); in da8xx_cfgchip_gate_clk_enable()
53 regmap_write_bits(clk->regmap, clk->reg, clk->mask, 0); in da8xx_cfgchip_gate_clk_disable()
61 regmap_read(clk->regmap, clk->reg, &val); in da8xx_cfgchip_gate_clk_is_enabled()
89 struct regmap *regmap) in da8xx_cfgchip_gate_clk_register() argument
117 gate->regmap = regmap; in da8xx_cfgchip_gate_clk_register()
135 struct regmap *regmap) in da8xx_cfgchip_register_tbclk() argument
140 regmap); in da8xx_cfgchip_register_tbclk()
158 struct regmap *regmap) in da8xx_cfgchip_register_div4p5() argument
162 gate = da8xx_cfgchip_gate_clk_register(dev, &da8xx_div4p5ena_info, regmap); in da8xx_cfgchip_register_div4p5()
170 struct regmap *regmap) in of_da8xx_cfgchip_gate_clk_init() argument
174 gate = da8xx_cfgchip_gate_clk_register(dev, info, regmap); in of_da8xx_cfgchip_gate_clk_init()
182 struct regmap *regmap) in of_da8xx_tbclksync_init() argument
184 return of_da8xx_cfgchip_gate_clk_init(dev, &da8xx_tbclksync_info, regmap); in of_da8xx_tbclksync_init()
188 struct regmap *regmap) in of_da8xx_div4p5ena_init() argument
190 return of_da8xx_cfgchip_gate_clk_init(dev, &da8xx_div4p5ena_info, regmap); in of_da8xx_div4p5ena_init()
205 struct regmap *regmap; member
218 return regmap_write_bits(clk->regmap, clk->reg, clk->mask, val); in da8xx_cfgchip_mux_clk_set_parent()
226 regmap_read(clk->regmap, clk->reg, &val); in da8xx_cfgchip_mux_clk_get_parent()
239 struct regmap *regmap) in da8xx_cfgchip_mux_clk_register() argument
257 mux->regmap = regmap; in da8xx_cfgchip_mux_clk_register()
277 struct regmap *regmap) in da8xx_cfgchip_register_async1() argument
281 mux = da8xx_cfgchip_mux_clk_register(dev, &da850_async1_info, regmap); in da8xx_cfgchip_register_async1()
299 struct regmap *regmap) in da850_cfgchip_register_async3() argument
304 mux = da8xx_cfgchip_mux_clk_register(dev, &da850_async3_info, regmap); in da850_cfgchip_register_async3()
323 struct regmap *regmap) in of_da8xx_cfgchip_init_mux_clock() argument
327 mux = da8xx_cfgchip_mux_clk_register(dev, info, regmap); in of_da8xx_cfgchip_init_mux_clock()
334 static int __init of_da850_async1_init(struct device *dev, struct regmap *regmap) in of_da850_async1_init() argument
336 return of_da8xx_cfgchip_init_mux_clock(dev, &da850_async1_info, regmap); in of_da850_async1_init()
339 static int __init of_da850_async3_init(struct device *dev, struct regmap *regmap) in of_da850_async3_init() argument
341 return of_da8xx_cfgchip_init_mux_clock(dev, &da850_async3_info, regmap); in of_da850_async3_init()
349 struct regmap *regmap; member
390 regmap_write_bits(usb0->regmap, CFGCHIP(2), mask, val); in da8xx_usb0_clk48_enable()
391 ret = regmap_read_poll_timeout(usb0->regmap, CFGCHIP(2), val, in da8xx_usb0_clk48_enable()
405 regmap_write_bits(usb0->regmap, CFGCHIP(2), val, val); in da8xx_usb0_clk48_disable()
413 regmap_read(usb0->regmap, CFGCHIP(2), &val); in da8xx_usb0_clk48_is_enabled()
458 regmap_write_bits(usb0->regmap, CFGCHIP(2), mask, val); in da8xx_usb0_clk48_recalc_rate()
474 return regmap_write_bits(usb0->regmap, CFGCHIP(2), in da8xx_usb0_clk48_set_parent()
484 regmap_read(usb0->regmap, CFGCHIP(2), &val); in da8xx_usb0_clk48_get_parent()
503 struct regmap *regmap) in da8xx_cfgchip_register_usb0_clk48() argument
528 usb0->regmap = regmap; in da8xx_cfgchip_register_usb0_clk48()
541 struct regmap *regmap; member
551 return regmap_write_bits(usb1->regmap, CFGCHIP(2), in da8xx_usb1_clk48_set_parent()
561 regmap_read(usb1->regmap, CFGCHIP(2), &val); in da8xx_usb1_clk48_get_parent()
574 * @regmap: The CFGCHIP regmap
578 struct regmap *regmap) in da8xx_cfgchip_register_usb1_clk48() argument
595 usb1->regmap = regmap; in da8xx_cfgchip_register_usb1_clk48()
605 struct regmap *regmap) in da8xx_cfgchip_register_usb_phy_clk() argument
611 usb0 = da8xx_cfgchip_register_usb0_clk48(dev, regmap); in da8xx_cfgchip_register_usb_phy_clk()
625 usb1 = da8xx_cfgchip_register_usb1_clk48(dev, regmap); in da8xx_cfgchip_register_usb_phy_clk()
645 static int of_da8xx_usb_phy_clk_init(struct device *dev, struct regmap *regmap) in of_da8xx_usb_phy_clk_init() argument
658 usb0 = da8xx_cfgchip_register_usb0_clk48(dev, regmap); in of_da8xx_usb_phy_clk_init()
671 usb1 = da8xx_cfgchip_register_usb1_clk48(dev, regmap); in of_da8xx_usb_phy_clk_init()
737 typedef int (*da8xx_cfgchip_init)(struct device *dev, struct regmap *regmap);
745 struct regmap *regmap = NULL; in da8xx_cfgchip_probe() local
753 regmap = syscon_node_to_regmap(parent); in da8xx_cfgchip_probe()
757 regmap = pdata->cfgchip; in da8xx_cfgchip_probe()
765 if (IS_ERR_OR_NULL(regmap)) { in da8xx_cfgchip_probe()
766 dev_err(dev, "no regmap for CFGCHIP syscon\n"); in da8xx_cfgchip_probe()
767 return regmap ? PTR_ERR(regmap) : -ENOENT; in da8xx_cfgchip_probe()
770 return clk_init(dev, regmap); in da8xx_cfgchip_probe()