Home
last modified time | relevance | path

Searched refs:hwclk (Results 1 – 13 of 13) sorted by relevance

/linux-4.19.296/drivers/clk/
Dclk-highbank.c56 static int clk_pll_prepare(struct clk_hw *hwclk) in clk_pll_prepare() argument
58 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_prepare()
73 static void clk_pll_unprepare(struct clk_hw *hwclk) in clk_pll_unprepare() argument
75 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_unprepare()
83 static int clk_pll_enable(struct clk_hw *hwclk) in clk_pll_enable() argument
85 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_enable()
95 static void clk_pll_disable(struct clk_hw *hwclk) in clk_pll_disable() argument
97 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_disable()
105 static unsigned long clk_pll_recalc_rate(struct clk_hw *hwclk, in clk_pll_recalc_rate() argument
108 struct hb_clk *hbclk = to_hb_clk(hwclk); in clk_pll_recalc_rate()
[all …]
/linux-4.19.296/drivers/clk/socfpga/
Dclk-gate.c39 static u8 socfpga_clk_get_parent(struct clk_hw *hwclk) in socfpga_clk_get_parent() argument
44 if (streq(hwclk->init->name, SOCFPGA_L4_MP_CLK)) { in socfpga_clk_get_parent()
48 if (streq(hwclk->init->name, SOCFPGA_L4_SP_CLK)) { in socfpga_clk_get_parent()
54 if (streq(hwclk->init->name, SOCFPGA_MMC_CLK)) in socfpga_clk_get_parent()
56 if (streq(hwclk->init->name, SOCFPGA_NAND_CLK) || in socfpga_clk_get_parent()
57 streq(hwclk->init->name, SOCFPGA_NAND_X_CLK)) in socfpga_clk_get_parent()
65 static int socfpga_clk_set_parent(struct clk_hw *hwclk, u8 parent) in socfpga_clk_set_parent() argument
69 if (streq(hwclk->init->name, SOCFPGA_L4_MP_CLK)) { in socfpga_clk_set_parent()
74 } else if (streq(hwclk->init->name, SOCFPGA_L4_SP_CLK)) { in socfpga_clk_set_parent()
81 if (streq(hwclk->init->name, SOCFPGA_MMC_CLK)) { in socfpga_clk_set_parent()
[all …]
Dclk-pll-s10.c29 static unsigned long clk_pll_recalc_rate(struct clk_hw *hwclk, in clk_pll_recalc_rate() argument
32 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_pll_recalc_rate()
53 static unsigned long clk_boot_clk_recalc_rate(struct clk_hw *hwclk, in clk_boot_clk_recalc_rate() argument
56 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_boot_clk_recalc_rate()
67 static u8 clk_pll_get_parent(struct clk_hw *hwclk) in clk_pll_get_parent() argument
69 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_pll_get_parent()
77 static u8 clk_boot_get_parent(struct clk_hw *hwclk) in clk_boot_get_parent() argument
79 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_boot_get_parent()
87 static int clk_pll_prepare(struct clk_hw *hwclk) in clk_pll_prepare() argument
89 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_pll_prepare()
Dclk-periph-a10.c31 static unsigned long clk_periclk_recalc_rate(struct clk_hw *hwclk, in clk_periclk_recalc_rate() argument
34 struct socfpga_periph_clk *socfpgaclk = to_socfpga_periph_clk(hwclk); in clk_periclk_recalc_rate()
50 static u8 clk_periclk_get_parent(struct clk_hw *hwclk) in clk_periclk_get_parent() argument
52 struct socfpga_periph_clk *socfpgaclk = to_socfpga_periph_clk(hwclk); in clk_periclk_get_parent()
56 if (streq(hwclk->init->name, SOCFPGA_MPU_FREE_CLK) || in clk_periclk_get_parent()
57 streq(hwclk->init->name, SOCFPGA_NOC_FREE_CLK) || in clk_periclk_get_parent()
58 streq(hwclk->init->name, SOCFPGA_SDMMC_FREE_CLK)) in clk_periclk_get_parent()
Dclk-gate-s10.c13 static unsigned long socfpga_gate_clk_recalc_rate(struct clk_hw *hwclk, in socfpga_gate_clk_recalc_rate() argument
16 struct socfpga_gate_clk *socfpgaclk = to_socfpga_gate_clk(hwclk); in socfpga_gate_clk_recalc_rate()
29 static unsigned long socfpga_dbg_clk_recalc_rate(struct clk_hw *hwclk, in socfpga_dbg_clk_recalc_rate() argument
32 struct socfpga_gate_clk *socfpgaclk = to_socfpga_gate_clk(hwclk); in socfpga_dbg_clk_recalc_rate()
43 static u8 socfpga_gate_get_parent(struct clk_hw *hwclk) in socfpga_gate_get_parent() argument
45 struct socfpga_gate_clk *socfpgaclk = to_socfpga_gate_clk(hwclk); in socfpga_gate_get_parent()
Dclk-periph-s10.c17 static unsigned long clk_peri_c_clk_recalc_rate(struct clk_hw *hwclk, in clk_peri_c_clk_recalc_rate() argument
20 struct socfpga_periph_clk *socfpgaclk = to_periph_clk(hwclk); in clk_peri_c_clk_recalc_rate()
31 static unsigned long clk_peri_cnt_clk_recalc_rate(struct clk_hw *hwclk, in clk_peri_cnt_clk_recalc_rate() argument
34 struct socfpga_periph_clk *socfpgaclk = to_periph_clk(hwclk); in clk_peri_cnt_clk_recalc_rate()
47 static u8 clk_periclk_get_parent(struct clk_hw *hwclk) in clk_periclk_get_parent() argument
49 struct socfpga_periph_clk *socfpgaclk = to_periph_clk(hwclk); in clk_periclk_get_parent()
Dclk-pll-a10.c45 static unsigned long clk_pll_recalc_rate(struct clk_hw *hwclk, in clk_pll_recalc_rate() argument
48 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_pll_recalc_rate()
61 static u8 clk_pll_get_parent(struct clk_hw *hwclk) in clk_pll_get_parent() argument
63 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_pll_get_parent()
Dclk-pll.c48 static unsigned long clk_pll_recalc_rate(struct clk_hw *hwclk, in clk_pll_recalc_rate() argument
51 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_pll_recalc_rate()
68 static u8 clk_pll_get_parent(struct clk_hw *hwclk) in clk_pll_get_parent() argument
71 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_pll_get_parent()
Dclk-gate-a10.c32 static unsigned long socfpga_gate_clk_recalc_rate(struct clk_hw *hwclk, in socfpga_gate_clk_recalc_rate() argument
35 struct socfpga_gate_clk *socfpgaclk = to_socfpga_gate_clk(hwclk); in socfpga_gate_clk_recalc_rate()
49 static int socfpga_clk_prepare(struct clk_hw *hwclk) in socfpga_clk_prepare() argument
51 struct socfpga_gate_clk *socfpgaclk = to_socfpga_gate_clk(hwclk); in socfpga_clk_prepare()
Dclk-periph.c27 static unsigned long clk_periclk_recalc_rate(struct clk_hw *hwclk, in clk_periclk_recalc_rate() argument
30 struct socfpga_periph_clk *socfpgaclk = to_socfpga_periph_clk(hwclk); in clk_periclk_recalc_rate()
47 static u8 clk_periclk_get_parent(struct clk_hw *hwclk) in clk_periclk_get_parent() argument
/linux-4.19.296/drivers/clk/mvebu/
Dclk-cpu.c50 static unsigned long clk_cpu_recalc_rate(struct clk_hw *hwclk, in clk_cpu_recalc_rate() argument
53 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_recalc_rate()
61 static long clk_cpu_round_rate(struct clk_hw *hwclk, unsigned long rate, in clk_cpu_round_rate() argument
76 static int clk_cpu_off_set_rate(struct clk_hw *hwclk, unsigned long rate, in clk_cpu_off_set_rate() argument
80 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_off_set_rate()
110 static int clk_cpu_on_set_rate(struct clk_hw *hwclk, unsigned long rate, in clk_cpu_on_set_rate() argument
115 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_on_set_rate()
124 cur_rate = clk_hw_get_rate(hwclk); in clk_cpu_on_set_rate()
153 static int clk_cpu_set_rate(struct clk_hw *hwclk, unsigned long rate, in clk_cpu_set_rate() argument
156 if (__clk_is_enabled(hwclk->clk)) in clk_cpu_set_rate()
[all …]
Dclk-corediv.c80 static int clk_corediv_is_enabled(struct clk_hw *hwclk) in clk_corediv_is_enabled() argument
82 struct clk_corediv *corediv = to_corediv_clk(hwclk); in clk_corediv_is_enabled()
90 static int clk_corediv_enable(struct clk_hw *hwclk) in clk_corediv_enable() argument
92 struct clk_corediv *corediv = to_corediv_clk(hwclk); in clk_corediv_enable()
109 static void clk_corediv_disable(struct clk_hw *hwclk) in clk_corediv_disable() argument
111 struct clk_corediv *corediv = to_corediv_clk(hwclk); in clk_corediv_disable()
126 static unsigned long clk_corediv_recalc_rate(struct clk_hw *hwclk, in clk_corediv_recalc_rate() argument
129 struct clk_corediv *corediv = to_corediv_clk(hwclk); in clk_corediv_recalc_rate()
139 static long clk_corediv_round_rate(struct clk_hw *hwclk, unsigned long rate, in clk_corediv_round_rate() argument
154 static int clk_corediv_set_rate(struct clk_hw *hwclk, unsigned long rate, in clk_corediv_set_rate() argument
[all …]
/linux-4.19.296/drivers/cpufreq/
Dqoriq-cpufreq.c171 const struct clk_hw *hwclk; in qoriq_cpufreq_cpu_init() local
191 hwclk = __clk_get_hw(policy->clk); in qoriq_cpufreq_cpu_init()
192 count = clk_hw_get_num_parents(hwclk); in qoriq_cpufreq_cpu_init()
203 clk = clk_hw_get_parent_by_index(hwclk, i)->clk; in qoriq_cpufreq_cpu_init()