Lines Matching full:sysc
33 struct regmap *sysc; member
98 struct regmap *sysc = clk_gate->priv->sysc; in mt7621_gate_enable() local
100 return regmap_update_bits(sysc, SYSC_REG_CLKCFG1, in mt7621_gate_enable()
107 struct regmap *sysc = clk_gate->priv->sysc; in mt7621_gate_disable() local
109 regmap_update_bits(sysc, SYSC_REG_CLKCFG1, clk_gate->bit_idx, 0); in mt7621_gate_disable()
115 struct regmap *sysc = clk_gate->priv->sysc; in mt7621_gate_is_enabled() local
118 if (regmap_read(sysc, SYSC_REG_CLKCFG1, &val)) in mt7621_gate_is_enabled()
231 struct regmap *sysc = clk->priv->sysc; in mt7621_xtal_recalc_rate() local
234 regmap_read(sysc, SYSC_REG_SYSTEM_CONFIG0, &val); in mt7621_xtal_recalc_rate()
250 struct regmap *sysc = clk->priv->sysc; in mt7621_cpu_recalc_rate() local
256 regmap_read(sysc, SYSC_REG_CLKCFG0, &clkcfg); in mt7621_cpu_recalc_rate()
259 regmap_read(sysc, SYSC_REG_CUR_CLK_STS, &curclk); in mt7621_cpu_recalc_rate()
352 priv->sysc = syscon_node_to_regmap(node); in mt7621_clk_init()
353 if (IS_ERR(priv->sysc)) { in mt7621_clk_init()
354 pr_err("Could not get sysc syscon regmap\n"); in mt7621_clk_init()
399 CLK_OF_DECLARE_DRIVER(mt7621_clk, "mediatek,mt7621-sysc", mt7621_clk_init);
413 priv->sysc = syscon_node_to_regmap(np); in mt7621_clk_probe()
414 if (IS_ERR(priv->sysc)) { in mt7621_clk_probe()
415 ret = PTR_ERR(priv->sysc); in mt7621_clk_probe()
416 dev_err(dev, "Could not get sysc syscon regmap\n"); in mt7621_clk_probe()
477 { .compatible = "mediatek,mt7621-sysc" },