Home
last modified time | relevance | path

Searched refs:rcg (Results 1 – 3 of 3) sorted by relevance

/linux-4.19.296/drivers/clk/qcom/
Dclk-rcg.c47 struct clk_rcg *rcg = to_clk_rcg(hw); in clk_rcg_get_parent() local
52 ret = regmap_read(rcg->clkr.regmap, rcg->ns_reg, &ns); in clk_rcg_get_parent()
55 ns = ns_to_src(&rcg->s, ns); in clk_rcg_get_parent()
57 if (ns == rcg->s.parent_map[i].cfg) in clk_rcg_get_parent()
66 static int reg_to_bank(struct clk_dyn_rcg *rcg, u32 bank) in reg_to_bank() argument
68 bank &= BIT(rcg->mux_sel_bit); in reg_to_bank()
74 struct clk_dyn_rcg *rcg = to_clk_dyn_rcg(hw); in clk_dyn_rcg_get_parent() local
81 ret = regmap_read(rcg->clkr.regmap, rcg->bank_reg, &reg); in clk_dyn_rcg_get_parent()
84 bank = reg_to_bank(rcg, reg); in clk_dyn_rcg_get_parent()
85 s = &rcg->s[bank]; in clk_dyn_rcg_get_parent()
[all …]
Dclk-rcg2.c50 struct clk_rcg2 *rcg = to_clk_rcg2(hw); in clk_rcg2_is_enabled() local
54 ret = regmap_read(rcg->clkr.regmap, rcg->cmd_rcgr + CMD_REG, &cmd); in clk_rcg2_is_enabled()
63 struct clk_rcg2 *rcg = to_clk_rcg2(hw); in clk_rcg2_get_parent() local
68 ret = regmap_read(rcg->clkr.regmap, rcg->cmd_rcgr + CFG_REG, &cfg); in clk_rcg2_get_parent()
76 if (cfg == rcg->parent_map[i].cfg) in clk_rcg2_get_parent()
85 static int update_config(struct clk_rcg2 *rcg) in update_config() argument
89 struct clk_hw *hw = &rcg->clkr.hw; in update_config()
92 ret = regmap_update_bits(rcg->clkr.regmap, rcg->cmd_rcgr + CMD_REG, in update_config()
99 ret = regmap_read(rcg->clkr.regmap, rcg->cmd_rcgr + CMD_REG, &cmd); in update_config()
113 struct clk_rcg2 *rcg = to_clk_rcg2(hw); in clk_rcg2_set_parent() local
[all …]
DMakefile8 clk-qcom-y += clk-rcg.o