Lines Matching refs:socfpgaclk
21 struct socfpga_periph_clk *socfpgaclk = to_periph_clk(hwclk); in clk_peri_c_clk_recalc_rate() local
25 val = readl(socfpgaclk->hw.reg); in clk_peri_c_clk_recalc_rate()
35 struct socfpga_periph_clk *socfpgaclk = to_periph_clk(hwclk); in clk_peri_cnt_clk_recalc_rate() local
38 if (socfpgaclk->fixed_div) { in clk_peri_cnt_clk_recalc_rate()
39 div = socfpgaclk->fixed_div; in clk_peri_cnt_clk_recalc_rate()
41 if (socfpgaclk->hw.reg) in clk_peri_cnt_clk_recalc_rate()
42 div = ((readl(socfpgaclk->hw.reg) & 0x7ff) + 1); in clk_peri_cnt_clk_recalc_rate()
50 struct socfpga_periph_clk *socfpgaclk = to_periph_clk(hwclk); in clk_periclk_get_parent() local
54 if (socfpgaclk->bypass_reg) { in clk_periclk_get_parent()
55 mask = (0x1 << socfpgaclk->bypass_shift); in clk_periclk_get_parent()
56 parent = ((readl(socfpgaclk->bypass_reg) & mask) >> in clk_periclk_get_parent()
57 socfpgaclk->bypass_shift); in clk_periclk_get_parent()
59 clk_src = readl(socfpgaclk->hw.reg); in clk_periclk_get_parent()