Searched refs:rcg (Results 1 – 4 of 4) sorted by relevance
/drivers/clk/qcom/ |
D | clk-rcg.c | 39 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, ®); 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 …]
|
D | clk-rcg2.c | 45 #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 …]
|
D | clk-rcg.h | 167 struct clk_rcg2 *rcg; member 172 { .rcg = &r, .init = &r##_init }
|
D | Makefile | 8 clk-qcom-y += clk-rcg.o
|