Home
last modified time | relevance | path

Searched refs:clksel0 (Results 1 - 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/drivers/soc/kendryte/
H A Dk210-sysctl.c136 u32 clksel0, pll0; in k210_sysctl_clk_recalc_rate() local
143 clksel0 = readl(s->regs + K210_SYSCTL_CLKSEL0); in k210_sysctl_clk_recalc_rate()
144 if (!(clksel0 & CLKSEL_ACLK)) in k210_sysctl_clk_recalc_rate()
158 return pll0_freq / (2ULL << FIELD_GET(0x00000006, clksel0)); in k210_sysctl_clk_recalc_rate()
/kernel/linux/linux-5.10/drivers/clk/rockchip/
H A Dclk-cpu.c91 u32 clksel0 = readl_relaxed(cpuclk->reg_base + reg_data->core_reg); in rockchip_cpuclk_recalc_rate() local
93 clksel0 >>= reg_data->div_core_shift; in rockchip_cpuclk_recalc_rate()
94 clksel0 &= reg_data->div_core_mask; in rockchip_cpuclk_recalc_rate()
95 return parent_rate / (clksel0 + 1); in rockchip_cpuclk_recalc_rate()
/kernel/linux/linux-6.6/drivers/clk/rockchip/
H A Dclk-cpu.c87 u32 clksel0 = readl_relaxed(cpuclk->reg_base + reg_data->core_reg[0]); in rockchip_cpuclk_recalc_rate() local
89 clksel0 >>= reg_data->div_core_shift[0]; in rockchip_cpuclk_recalc_rate()
90 clksel0 &= reg_data->div_core_mask[0]; in rockchip_cpuclk_recalc_rate()
91 return parent_rate / (clksel0 + 1); in rockchip_cpuclk_recalc_rate()

Completed in 2 milliseconds