Lines Matching refs:socfpgaclk
21 struct socfpga_periph_clk *socfpgaclk = to_periph_clk(hwclk); in n5x_clk_peri_c_clk_recalc_rate() local
23 unsigned long shift = socfpgaclk->shift; in n5x_clk_peri_c_clk_recalc_rate()
26 val = readl(socfpgaclk->hw.reg); in n5x_clk_peri_c_clk_recalc_rate()
36 struct socfpga_periph_clk *socfpgaclk = to_periph_clk(hwclk); in clk_peri_c_clk_recalc_rate() local
40 val = readl(socfpgaclk->hw.reg); in clk_peri_c_clk_recalc_rate()
50 struct socfpga_periph_clk *socfpgaclk = to_periph_clk(hwclk); in clk_peri_cnt_clk_recalc_rate() local
53 if (socfpgaclk->fixed_div) { in clk_peri_cnt_clk_recalc_rate()
54 div = socfpgaclk->fixed_div; in clk_peri_cnt_clk_recalc_rate()
56 if (socfpgaclk->hw.reg) in clk_peri_cnt_clk_recalc_rate()
57 div = ((readl(socfpgaclk->hw.reg) & 0x7ff) + 1); in clk_peri_cnt_clk_recalc_rate()
65 struct socfpga_periph_clk *socfpgaclk = to_periph_clk(hwclk); in clk_periclk_get_parent() local
70 if (socfpgaclk->bypass_reg) { in clk_periclk_get_parent()
71 mask = (0x1 << socfpgaclk->bypass_shift); in clk_periclk_get_parent()
72 parent = ((readl(socfpgaclk->bypass_reg) & mask) >> in clk_periclk_get_parent()
73 socfpgaclk->bypass_shift); in clk_periclk_get_parent()
78 if (socfpgaclk->hw.reg) { in clk_periclk_get_parent()
79 clk_src = readl(socfpgaclk->hw.reg); in clk_periclk_get_parent()