Home
last modified time | relevance | path

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

/linux-4.19.296/drivers/clk/renesas/
Drcar-gen2-cpg.c59 struct cpg_z_clk *zclk = to_z_clk(hw); in cpg_z_clk_recalc_rate() local
63 val = (readl(zclk->reg) & CPG_FRQCRC_ZFC_MASK) >> CPG_FRQCRC_ZFC_SHIFT; in cpg_z_clk_recalc_rate()
87 struct cpg_z_clk *zclk = to_z_clk(hw); in cpg_z_clk_set_rate() local
95 if (readl(zclk->kick_reg) & CPG_FRQCRB_KICK) in cpg_z_clk_set_rate()
98 val = readl(zclk->reg); in cpg_z_clk_set_rate()
101 writel(val, zclk->reg); in cpg_z_clk_set_rate()
107 kick = readl(zclk->kick_reg); in cpg_z_clk_set_rate()
109 writel(kick, zclk->kick_reg); in cpg_z_clk_set_rate()
121 if (!(readl(zclk->kick_reg) & CPG_FRQCRB_KICK)) in cpg_z_clk_set_rate()
141 struct cpg_z_clk *zclk; in cpg_z_clk_register() local
[all …]
Drcar-gen3-cpg.c92 struct cpg_z_clk *zclk = to_z_clk(hw); in cpg_z_clk_recalc_rate() local
96 val = readl(zclk->reg) & zclk->mask; in cpg_z_clk_recalc_rate()
97 mult = 32 - (val >> __ffs(zclk->mask)); in cpg_z_clk_recalc_rate()
119 struct cpg_z_clk *zclk = to_z_clk(hw); in cpg_z_clk_set_rate() local
128 if (readl(zclk->kick_reg) & CPG_FRQCRB_KICK) in cpg_z_clk_set_rate()
131 val = readl(zclk->reg) & ~zclk->mask; in cpg_z_clk_set_rate()
132 val |= ((32 - mult) << __ffs(zclk->mask)) & zclk->mask; in cpg_z_clk_set_rate()
133 writel(val, zclk->reg); in cpg_z_clk_set_rate()
139 kick = readl(zclk->kick_reg); in cpg_z_clk_set_rate()
141 writel(kick, zclk->kick_reg); in cpg_z_clk_set_rate()
[all …]
Dclk-rcar-gen2.c61 struct cpg_z_clk *zclk = to_z_clk(hw); in cpg_z_clk_recalc_rate() local
65 val = (readl(zclk->reg) & CPG_FRQCRC_ZFC_MASK) >> CPG_FRQCRC_ZFC_SHIFT; in cpg_z_clk_recalc_rate()
89 struct cpg_z_clk *zclk = to_z_clk(hw); in cpg_z_clk_set_rate() local
97 if (readl(zclk->kick_reg) & CPG_FRQCRB_KICK) in cpg_z_clk_set_rate()
100 val = readl(zclk->reg); in cpg_z_clk_set_rate()
103 writel(val, zclk->reg); in cpg_z_clk_set_rate()
109 kick = readl(zclk->kick_reg); in cpg_z_clk_set_rate()
111 writel(kick, zclk->kick_reg); in cpg_z_clk_set_rate()
123 if (!(readl(zclk->kick_reg) & CPG_FRQCRB_KICK)) in cpg_z_clk_set_rate()
142 struct cpg_z_clk *zclk; in cpg_z_clk_register() local
[all …]