Lines Matching refs:sysc
36 struct regmap *sysc; member
101 struct regmap *sysc = clk_gate->priv->sysc; in mt7621_gate_enable() local
103 return regmap_update_bits(sysc, SYSC_REG_CLKCFG1, in mt7621_gate_enable()
110 struct regmap *sysc = clk_gate->priv->sysc; in mt7621_gate_disable() local
112 regmap_update_bits(sysc, SYSC_REG_CLKCFG1, clk_gate->bit_idx, 0); in mt7621_gate_disable()
118 struct regmap *sysc = clk_gate->priv->sysc; in mt7621_gate_is_enabled() local
121 if (regmap_read(sysc, SYSC_REG_CLKCFG1, &val)) in mt7621_gate_is_enabled()
240 struct regmap *sysc = clk->priv->sysc; in mt7621_xtal_recalc_rate() local
243 regmap_read(sysc, SYSC_REG_SYSTEM_CONFIG0, &val); in mt7621_xtal_recalc_rate()
259 struct regmap *sysc = clk->priv->sysc; in mt7621_cpu_recalc_rate() local
265 regmap_read(sysc, SYSC_REG_CLKCFG0, &clkcfg); in mt7621_cpu_recalc_rate()
268 regmap_read(sysc, SYSC_REG_CUR_CLK_STS, &curclk); in mt7621_cpu_recalc_rate()
361 priv->sysc = syscon_node_to_regmap(node); in mt7621_clk_init()
362 if (IS_ERR(priv->sysc)) { in mt7621_clk_init()
412 struct regmap *sysc; member
424 struct regmap *sysc = data->sysc; in mt7621_assert_device() local
426 return regmap_update_bits(sysc, SYSC_REG_RESET_CTRL, BIT(id), BIT(id)); in mt7621_assert_device()
433 struct regmap *sysc = data->sysc; in mt7621_deassert_device() local
435 return regmap_update_bits(sysc, SYSC_REG_RESET_CTRL, BIT(id), 0); in mt7621_deassert_device()
467 static int mt7621_reset_init(struct device *dev, struct regmap *sysc) in mt7621_reset_init() argument
475 rst_data->sysc = sysc; in mt7621_reset_init()
498 priv->sysc = syscon_node_to_regmap(np); in mt7621_clk_probe()
499 if (IS_ERR(priv->sysc)) { in mt7621_clk_probe()
500 ret = PTR_ERR(priv->sysc); in mt7621_clk_probe()
512 ret = mt7621_reset_init(dev, priv->sysc); in mt7621_clk_probe()