• Home
  • Raw
  • Download

Lines Matching refs:dpll_regs

17 static void setup_post_dividers(const struct dpll_regs *dpll_regs,  in setup_post_dividers()  argument
22 writel(params->m2, dpll_regs->cm_div_m2_dpll); in setup_post_dividers()
24 writel(params->m3, dpll_regs->cm_div_m3_dpll); in setup_post_dividers()
26 writel(params->m4, dpll_regs->cm_div_m4_dpll); in setup_post_dividers()
28 writel(params->m5, dpll_regs->cm_div_m5_dpll); in setup_post_dividers()
30 writel(params->m6, dpll_regs->cm_div_m6_dpll); in setup_post_dividers()
33 static inline void do_lock_dpll(const struct dpll_regs *dpll_regs) in do_lock_dpll() argument
35 clrsetbits_le32(dpll_regs->cm_clkmode_dpll, in do_lock_dpll()
40 static inline void wait_for_lock(const struct dpll_regs *dpll_regs) in wait_for_lock() argument
43 (void *)dpll_regs->cm_idlest_dpll, LDELAY)) { in wait_for_lock()
45 dpll_regs->cm_clkmode_dpll); in wait_for_lock()
50 static inline void do_bypass_dpll(const struct dpll_regs *dpll_regs) in do_bypass_dpll() argument
52 clrsetbits_le32(dpll_regs->cm_clkmode_dpll, in do_bypass_dpll()
57 static inline void wait_for_bypass(const struct dpll_regs *dpll_regs) in wait_for_bypass() argument
60 (void *)dpll_regs->cm_idlest_dpll, LDELAY)) { in wait_for_bypass()
62 dpll_regs->cm_clkmode_dpll); in wait_for_bypass()
66 static void bypass_dpll(const struct dpll_regs *dpll_regs) in bypass_dpll() argument
68 do_bypass_dpll(dpll_regs); in bypass_dpll()
69 wait_for_bypass(dpll_regs); in bypass_dpll()
72 void do_setup_dpll(const struct dpll_regs *dpll_regs, in do_setup_dpll() argument
80 temp = readl(dpll_regs->cm_clksel_dpll); in do_setup_dpll()
82 bypass_dpll(dpll_regs); in do_setup_dpll()
91 writel(temp, dpll_regs->cm_clksel_dpll); in do_setup_dpll()
93 setup_post_dividers(dpll_regs, params); in do_setup_dpll()
96 do_lock_dpll(dpll_regs); in do_setup_dpll()
97 wait_for_lock(dpll_regs); in do_setup_dpll()