Lines Matching refs:pdr0
68 static u32 get_arm_div(u32 pdr0, u32 *fi, u32 *fd) in get_arm_div() argument
71 if (pdr0 & MXC_CCM_PDR0_AUTO_CON) { in get_arm_div()
73 ((pdr0 & MXC_CCM_PDR0_CON_MUX_DIV_MASK) >> in get_arm_div()
77 ((pdr0 & MXC_CCM_PDR0_AUTO_MUX_DIV_MASK) >> in get_arm_div()
89 if (pdr0 & MXC_CCM_PDR0_AUTO_CON) { in get_arm_div()
100 static int get_ahb_div(u32 pdr0) in get_ahb_div() argument
105 ((pdr0 & MXC_CCM_PDR0_CON_MUX_DIV_MASK) >> in get_ahb_div()
135 arm_div = get_arm_div(readl(&ccm->pdr0), &fi, &fd); in get_mcu_main_clk()
145 u32 pdr0 = readl(&ccm->pdr0); in get_ipg_clk() local
147 return freq / (get_ahb_div(pdr0) * 2); in get_ipg_clk()
155 u32 pdr0 = readl(&ccm->pdr0); in get_ipg_per_clk() local
158 if (pdr0 & MXC_CCM_PDR0_PER_SEL) { in get_ipg_per_clk()
163 div = CCM_GET_DIVIDER(pdr0, in get_ipg_per_clk()
166 div *= get_ahb_div(pdr0); in get_ipg_per_clk()
195 u32 reg = readl(&ccm->pdr0); in mxc_get_main_clock()