Lines Matching refs:socfpgaclk
16 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
49 if (socfpgaclk->bypass_reg) { in socfpga_gate_get_parent()
50 mask = (0x1 << socfpgaclk->bypass_shift); in socfpga_gate_get_parent()
51 parent = ((readl(socfpgaclk->bypass_reg) & mask) >> in socfpga_gate_get_parent()
52 socfpgaclk->bypass_shift); in socfpga_gate_get_parent()