Home
last modified time | relevance | path

Searched refs:socfpgaclk (Results 1 – 9 of 9) sorted by relevance

/linux-4.19.296/drivers/clk/socfpga/
Dclk-gate-s10.c16 struct socfpga_gate_clk *socfpgaclk = to_socfpga_gate_clk(hwclk); in socfpga_gate_clk_recalc_rate() local
19 if (socfpgaclk->fixed_div) { in socfpga_gate_clk_recalc_rate()
20 div = socfpgaclk->fixed_div; in socfpga_gate_clk_recalc_rate()
21 } else if (socfpgaclk->div_reg) { in socfpga_gate_clk_recalc_rate()
22 val = readl(socfpgaclk->div_reg) >> socfpgaclk->shift; in socfpga_gate_clk_recalc_rate()
23 val &= GENMASK(socfpgaclk->width - 1, 0); in socfpga_gate_clk_recalc_rate()
32 struct socfpga_gate_clk *socfpgaclk = to_socfpga_gate_clk(hwclk); in socfpga_dbg_clk_recalc_rate() local
35 val = readl(socfpgaclk->div_reg) >> socfpgaclk->shift; in socfpga_dbg_clk_recalc_rate()
36 val &= GENMASK(socfpgaclk->width - 1, 0); in socfpga_dbg_clk_recalc_rate()
45 struct socfpga_gate_clk *socfpgaclk = to_socfpga_gate_clk(hwclk); in socfpga_gate_get_parent() local
[all …]
Dclk-periph-s10.c20 struct socfpga_periph_clk *socfpgaclk = to_periph_clk(hwclk); in clk_peri_c_clk_recalc_rate() local
24 val = readl(socfpgaclk->hw.reg); in clk_peri_c_clk_recalc_rate()
34 struct socfpga_periph_clk *socfpgaclk = to_periph_clk(hwclk); in clk_peri_cnt_clk_recalc_rate() local
37 if (socfpgaclk->fixed_div) { in clk_peri_cnt_clk_recalc_rate()
38 div = socfpgaclk->fixed_div; in clk_peri_cnt_clk_recalc_rate()
40 if (socfpgaclk->hw.reg) in clk_peri_cnt_clk_recalc_rate()
41 div = ((readl(socfpgaclk->hw.reg) & 0x7ff) + 1); in clk_peri_cnt_clk_recalc_rate()
49 struct socfpga_periph_clk *socfpgaclk = to_periph_clk(hwclk); in clk_periclk_get_parent() local
53 if (socfpgaclk->bypass_reg) { in clk_periclk_get_parent()
54 mask = (0x1 << socfpgaclk->bypass_shift); in clk_periclk_get_parent()
[all …]
Dclk-gate-a10.c35 struct socfpga_gate_clk *socfpgaclk = to_socfpga_gate_clk(hwclk); in socfpga_gate_clk_recalc_rate() local
38 if (socfpgaclk->fixed_div) in socfpga_gate_clk_recalc_rate()
39 div = socfpgaclk->fixed_div; in socfpga_gate_clk_recalc_rate()
40 else if (socfpgaclk->div_reg) { in socfpga_gate_clk_recalc_rate()
41 val = readl(socfpgaclk->div_reg) >> socfpgaclk->shift; in socfpga_gate_clk_recalc_rate()
42 val &= GENMASK(socfpgaclk->width - 1, 0); in socfpga_gate_clk_recalc_rate()
51 struct socfpga_gate_clk *socfpgaclk = to_socfpga_gate_clk(hwclk); in socfpga_clk_prepare() local
56 if (socfpgaclk->clk_phase[0] || socfpgaclk->clk_phase[1]) { in socfpga_clk_prepare()
58 switch (socfpgaclk->clk_phase[i]) { in socfpga_clk_prepare()
90 if (!IS_ERR(socfpgaclk->sys_mgr_base_addr)) in socfpga_clk_prepare()
[all …]
Dclk-pll-s10.c32 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_pll_recalc_rate() local
39 reg = readl(socfpgaclk->hw.reg); in clk_pll_recalc_rate()
46 reg = readl(socfpgaclk->hw.reg + 0x4); in clk_pll_recalc_rate()
56 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_boot_clk_recalc_rate() local
59 div = ((readl(socfpgaclk->hw.reg) & in clk_boot_clk_recalc_rate()
69 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_pll_get_parent() local
72 pll_src = readl(socfpgaclk->hw.reg); in clk_pll_get_parent()
79 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_boot_get_parent() local
82 pll_src = readl(socfpgaclk->hw.reg); in clk_boot_get_parent()
89 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_pll_prepare() local
[all …]
Dclk-periph-a10.c34 struct socfpga_periph_clk *socfpgaclk = to_socfpga_periph_clk(hwclk); in clk_periclk_recalc_rate() local
37 if (socfpgaclk->fixed_div) { in clk_periclk_recalc_rate()
38 div = socfpgaclk->fixed_div; in clk_periclk_recalc_rate()
39 } else if (socfpgaclk->div_reg) { in clk_periclk_recalc_rate()
40 div = readl(socfpgaclk->div_reg) >> socfpgaclk->shift; in clk_periclk_recalc_rate()
41 div &= GENMASK(socfpgaclk->width - 1, 0); in clk_periclk_recalc_rate()
44 div = ((readl(socfpgaclk->hw.reg) & 0x7ff) + 1); in clk_periclk_recalc_rate()
52 struct socfpga_periph_clk *socfpgaclk = to_socfpga_periph_clk(hwclk); in clk_periclk_get_parent() local
55 clk_src = readl(socfpgaclk->hw.reg); in clk_periclk_get_parent()
Dclk-periph.c30 struct socfpga_periph_clk *socfpgaclk = to_socfpga_periph_clk(hwclk); in clk_periclk_recalc_rate() local
33 if (socfpgaclk->fixed_div) { in clk_periclk_recalc_rate()
34 div = socfpgaclk->fixed_div; in clk_periclk_recalc_rate()
36 if (socfpgaclk->div_reg) { in clk_periclk_recalc_rate()
37 val = readl(socfpgaclk->div_reg) >> socfpgaclk->shift; in clk_periclk_recalc_rate()
38 val &= GENMASK(socfpgaclk->width - 1, 0); in clk_periclk_recalc_rate()
41 div = ((readl(socfpgaclk->hw.reg) & 0x1ff) + 1); in clk_periclk_recalc_rate()
Dclk-gate.c101 struct socfpga_gate_clk *socfpgaclk = to_socfpga_gate_clk(hwclk); in socfpga_clk_recalc_rate() local
104 if (socfpgaclk->fixed_div) in socfpga_clk_recalc_rate()
105 div = socfpgaclk->fixed_div; in socfpga_clk_recalc_rate()
106 else if (socfpgaclk->div_reg) { in socfpga_clk_recalc_rate()
107 val = readl(socfpgaclk->div_reg) >> socfpgaclk->shift; in socfpga_clk_recalc_rate()
108 val &= GENMASK(socfpgaclk->width - 1, 0); in socfpga_clk_recalc_rate()
110 if ((uintptr_t) socfpgaclk->div_reg & SOCFPGA_GPIO_DB_CLK_OFFSET) in socfpga_clk_recalc_rate()
121 struct socfpga_gate_clk *socfpgaclk = to_socfpga_gate_clk(hwclk); in socfpga_clk_prepare() local
127 if (socfpgaclk->clk_phase[0] || socfpgaclk->clk_phase[1]) { in socfpga_clk_prepare()
135 switch (socfpgaclk->clk_phase[i]) { in socfpga_clk_prepare()
Dclk-pll-a10.c48 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_pll_recalc_rate() local
53 reg = readl(socfpgaclk->hw.reg + 0x4); in clk_pll_recalc_rate()
63 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_pll_get_parent() local
66 pll_src = readl(socfpgaclk->hw.reg); in clk_pll_get_parent()
Dclk-pll.c51 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_pll_recalc_rate() local
56 reg = readl(socfpgaclk->hw.reg); in clk_pll_recalc_rate()
71 struct socfpga_pll *socfpgaclk = to_socfpga_clk(hwclk); in clk_pll_get_parent() local
73 pll_src = readl(socfpgaclk->hw.reg); in clk_pll_get_parent()