Lines Matching refs:vco

126 	struct berlin2_avpll_vco *vco = to_avpll_vco(hw);  in berlin2_avpll_vco_is_enabled()  local
129 reg = readl_relaxed(vco->base + VCO_CTRL0); in berlin2_avpll_vco_is_enabled()
130 if (vco->flags & BERLIN2_AVPLL_BIT_QUIRK) in berlin2_avpll_vco_is_enabled()
138 struct berlin2_avpll_vco *vco = to_avpll_vco(hw); in berlin2_avpll_vco_enable() local
141 reg = readl_relaxed(vco->base + VCO_CTRL0); in berlin2_avpll_vco_enable()
142 if (vco->flags & BERLIN2_AVPLL_BIT_QUIRK) in berlin2_avpll_vco_enable()
146 writel_relaxed(reg, vco->base + VCO_CTRL0); in berlin2_avpll_vco_enable()
153 struct berlin2_avpll_vco *vco = to_avpll_vco(hw); in berlin2_avpll_vco_disable() local
156 reg = readl_relaxed(vco->base + VCO_CTRL0); in berlin2_avpll_vco_disable()
157 if (vco->flags & BERLIN2_AVPLL_BIT_QUIRK) in berlin2_avpll_vco_disable()
161 writel_relaxed(reg, vco->base + VCO_CTRL0); in berlin2_avpll_vco_disable()
169 struct berlin2_avpll_vco *vco = to_avpll_vco(hw); in berlin2_avpll_vco_recalc_rate() local
174 reg = readl_relaxed(vco->base + VCO_CTRL1); in berlin2_avpll_vco_recalc_rate()
195 struct berlin2_avpll_vco *vco; in berlin2_avpll_vco_register() local
198 vco = kzalloc(sizeof(*vco), GFP_KERNEL); in berlin2_avpll_vco_register()
199 if (!vco) in berlin2_avpll_vco_register()
202 vco->base = base; in berlin2_avpll_vco_register()
203 vco->flags = vco_flags; in berlin2_avpll_vco_register()
204 vco->hw.init = &init; in berlin2_avpll_vco_register()
211 return clk_register(NULL, &vco->hw); in berlin2_avpll_vco_register()