Lines Matching refs:clkctrl
41 uint32_t clkctrl, clkseq, div; in mxs_get_pclk() local
44 clkctrl = readl(&clkctrl_regs->hw_clkctrl_cpu); in mxs_get_pclk()
47 if (clkctrl & in mxs_get_pclk()
56 div = (clkctrl & CLKCTRL_CPU_DIV_XTAL_MASK) >> in mxs_get_pclk()
64 div = clkctrl & CLKCTRL_CPU_DIV_CPU_MASK; in mxs_get_pclk()
74 uint32_t clkctrl; in mxs_get_hclk() local
76 clkctrl = readl(&clkctrl_regs->hw_clkctrl_hbus); in mxs_get_hclk()
79 if (clkctrl & CLKCTRL_HBUS_DIV_FRAC_EN) in mxs_get_hclk()
82 div = clkctrl & CLKCTRL_HBUS_DIV_MASK; in mxs_get_hclk()
91 uint32_t clkctrl, clkseq, div; in mxs_get_emiclk() local
95 clkctrl = readl(&clkctrl_regs->hw_clkctrl_emi); in mxs_get_emiclk()
99 div = (clkctrl & CLKCTRL_EMI_DIV_XTAL_MASK) >> in mxs_get_emiclk()
107 div = clkctrl & CLKCTRL_EMI_DIV_EMI_MASK; in mxs_get_emiclk()
122 uint32_t clkctrl, clkseq, div; in mxs_get_gpmiclk() local
126 clkctrl = readl(&clkctrl_regs->hw_clkctrl_gpmi); in mxs_get_gpmiclk()
130 div = clkctrl & CLKCTRL_GPMI_DIV_MASK; in mxs_get_gpmiclk()
137 div = clkctrl & CLKCTRL_GPMI_DIV_MASK; in mxs_get_gpmiclk()