Home
last modified time | relevance | path

Searched refs:cpu_freq_select (Results 1 – 6 of 6) sorted by relevance

/linux-6.6.21/drivers/clk/mvebu/
Darmada-xp.c71 u8 cpu_freq_select = 0; in axp_get_cpu_freq() local
73 cpu_freq_select = ((readl(sar + SARL) >> SARL_AXP_PCLK_FREQ_OPT) & in axp_get_cpu_freq()
79 cpu_freq_select |= (((readl(sar + SARH) >> SARH_AXP_PCLK_FREQ_OPT) & in axp_get_cpu_freq()
81 if (cpu_freq_select >= ARRAY_SIZE(axp_cpu_freqs)) { in axp_get_cpu_freq()
82 pr_err("CPU freq select unsupported: %d\n", cpu_freq_select); in axp_get_cpu_freq()
85 cpu_freq = axp_cpu_freqs[cpu_freq_select]; in axp_get_cpu_freq()
Darmada-375.c73 u8 cpu_freq_select; in armada_375_get_cpu_freq() local
75 cpu_freq_select = ((readl(sar) >> SAR1_A375_CPU_DDR_L2_FREQ_OPT) & in armada_375_get_cpu_freq()
77 if (cpu_freq_select >= ARRAY_SIZE(armada_375_cpu_frequencies)) { in armada_375_get_cpu_freq()
79 cpu_freq_select); in armada_375_get_cpu_freq()
82 return armada_375_cpu_frequencies[cpu_freq_select]; in armada_375_get_cpu_freq()
Darmada-39x.c70 u8 cpu_freq_select; in armada_39x_get_cpu_freq() local
72 cpu_freq_select = ((readl(sar + SARL) >> SARL_A390_CPU_DDR_L2_FREQ_OPT) & in armada_39x_get_cpu_freq()
74 if (cpu_freq_select >= ARRAY_SIZE(armada_39x_cpu_frequencies)) { in armada_39x_get_cpu_freq()
76 cpu_freq_select); in armada_39x_get_cpu_freq()
80 return armada_39x_cpu_frequencies[cpu_freq_select]; in armada_39x_get_cpu_freq()
Darmada-38x.c56 u8 cpu_freq_select; in armada_38x_get_cpu_freq() local
58 cpu_freq_select = ((readl(sar) >> SAR_A380_CPU_DDR_L2_FREQ_OPT) & in armada_38x_get_cpu_freq()
60 if (cpu_freq_select >= ARRAY_SIZE(armada_38x_cpu_frequencies)) { in armada_38x_get_cpu_freq()
62 cpu_freq_select); in armada_38x_get_cpu_freq()
66 return armada_38x_cpu_frequencies[cpu_freq_select]; in armada_38x_get_cpu_freq()
Dmv98dx3236.c71 u8 cpu_freq_select = 0; in mv98dx3236_get_cpu_freq() local
73 cpu_freq_select = ((readl(sar) >> SAR1_MV98DX3236_CPU_DDR_MPLL_FREQ_OPT) & in mv98dx3236_get_cpu_freq()
77 cpu_freq = mv98dx4251_cpu_frequencies[cpu_freq_select]; in mv98dx3236_get_cpu_freq()
79 cpu_freq = mv98dx3236_cpu_frequencies[cpu_freq_select]; in mv98dx3236_get_cpu_freq()
82 pr_err("CPU freq select unsupported %d\n", cpu_freq_select); in mv98dx3236_get_cpu_freq()
Darmada-370.c67 u8 cpu_freq_select = 0; in a370_get_cpu_freq() local
69 cpu_freq_select = ((readl(sar) >> SARL_A370_PCLK_FREQ_OPT) & in a370_get_cpu_freq()
71 if (cpu_freq_select >= ARRAY_SIZE(a370_cpu_freqs)) { in a370_get_cpu_freq()
72 pr_err("CPU freq select unsupported %d\n", cpu_freq_select); in a370_get_cpu_freq()
75 cpu_freq = a370_cpu_freqs[cpu_freq_select]; in a370_get_cpu_freq()