Lines Matching refs:ilp
27 struct bcm53573_ilp *ilp = container_of(hw, struct bcm53573_ilp, hw); in bcm53573_ilp_enable() local
29 regmap_write(ilp->regmap, PMU_SLOW_CLK_PERIOD, 0x10199); in bcm53573_ilp_enable()
30 regmap_write(ilp->regmap, 0x674, 0x10000); in bcm53573_ilp_enable()
37 struct bcm53573_ilp *ilp = container_of(hw, struct bcm53573_ilp, hw); in bcm53573_ilp_disable() local
39 regmap_write(ilp->regmap, PMU_SLOW_CLK_PERIOD, 0); in bcm53573_ilp_disable()
40 regmap_write(ilp->regmap, 0x674, 0); in bcm53573_ilp_disable()
46 struct bcm53573_ilp *ilp = container_of(hw, struct bcm53573_ilp, hw); in bcm53573_ilp_recalc_rate() local
47 struct regmap *regmap = ilp->regmap; in bcm53573_ilp_recalc_rate()
100 struct bcm53573_ilp *ilp; in bcm53573_ilp_init() local
105 ilp = kzalloc(sizeof(*ilp), GFP_KERNEL); in bcm53573_ilp_init()
106 if (!ilp) in bcm53573_ilp_init()
115 ilp->regmap = syscon_node_to_regmap(of_get_parent(np)); in bcm53573_ilp_init()
116 if (IS_ERR(ilp->regmap)) { in bcm53573_ilp_init()
117 err = PTR_ERR(ilp->regmap); in bcm53573_ilp_init()
126 ilp->hw.init = &init; in bcm53573_ilp_init()
127 err = clk_hw_register(NULL, &ilp->hw); in bcm53573_ilp_init()
131 err = of_clk_add_hw_provider(np, of_clk_hw_simple_get, &ilp->hw); in bcm53573_ilp_init()
138 clk_hw_unregister(&ilp->hw); in bcm53573_ilp_init()
140 kfree(ilp); in bcm53573_ilp_init()