Home
last modified time | relevance | path

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

/drivers/clk/qcom/
Dclk-rcg.c39 struct clk_rcg *rcg = to_clk_rcg(hw); in clk_rcg_get_parent() local
44 ret = regmap_read(rcg->clkr.regmap, rcg->ns_reg, &ns); in clk_rcg_get_parent()
47 ns = ns_to_src(&rcg->s, ns); in clk_rcg_get_parent()
49 if (ns == rcg->s.parent_map[i].cfg) in clk_rcg_get_parent()
58 static int reg_to_bank(struct clk_dyn_rcg *rcg, u32 bank) in reg_to_bank() argument
60 bank &= BIT(rcg->mux_sel_bit); in reg_to_bank()
66 struct clk_dyn_rcg *rcg = to_clk_dyn_rcg(hw); in clk_dyn_rcg_get_parent() local
73 ret = regmap_read(rcg->clkr.regmap, rcg->bank_reg, &reg); in clk_dyn_rcg_get_parent()
76 bank = reg_to_bank(rcg, reg); in clk_dyn_rcg_get_parent()
77 s = &rcg->s[bank]; in clk_dyn_rcg_get_parent()
[all …]
Dclk-rcg2.c45 #define RCG_CFG_OFFSET(rcg) ((rcg)->cmd_rcgr + (rcg)->cfg_off + CFG_REG) argument
46 #define RCG_M_OFFSET(rcg) ((rcg)->cmd_rcgr + (rcg)->cfg_off + M_REG) argument
47 #define RCG_N_OFFSET(rcg) ((rcg)->cmd_rcgr + (rcg)->cfg_off + N_REG) argument
48 #define RCG_D_OFFSET(rcg) ((rcg)->cmd_rcgr + (rcg)->cfg_off + D_REG) argument
65 struct clk_rcg2 *rcg = to_clk_rcg2(hw); in clk_rcg2_is_enabled() local
69 ret = regmap_read(rcg->clkr.regmap, rcg->cmd_rcgr + CMD_REG, &cmd); in clk_rcg2_is_enabled()
78 struct clk_rcg2 *rcg = to_clk_rcg2(hw); in clk_rcg2_get_parent() local
83 ret = regmap_read(rcg->clkr.regmap, RCG_CFG_OFFSET(rcg), &cfg); in clk_rcg2_get_parent()
91 if (cfg == rcg->parent_map[i].cfg) in clk_rcg2_get_parent()
100 static int update_config(struct clk_rcg2 *rcg) in update_config() argument
[all …]
Dclk-rcg.h167 struct clk_rcg2 *rcg; member
172 { .rcg = &r, .init = &r##_init }
DMakefile8 clk-qcom-y += clk-rcg.o