Lines Matching refs:socfpgaclk
20 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()
55 parent = ((readl(socfpgaclk->bypass_reg) & mask) >> in clk_periclk_get_parent()
56 socfpgaclk->bypass_shift); in clk_periclk_get_parent()
58 clk_src = readl(socfpgaclk->hw.reg); in clk_periclk_get_parent()