Lines Matching refs:pdr0
73 static u32 get_arm_div(u32 pdr0, u32 *fi, u32 *fd) in get_arm_div() argument
76 if (pdr0 & MXC_CCM_PDR0_AUTO_CON) { in get_arm_div()
78 ((pdr0 & MXC_CCM_PDR0_CON_MUX_DIV_MASK) >> in get_arm_div()
82 ((pdr0 & MXC_CCM_PDR0_AUTO_MUX_DIV_MASK) >> in get_arm_div()
94 if (pdr0 & MXC_CCM_PDR0_AUTO_CON) { in get_arm_div()
105 static int get_ahb_div(u32 pdr0) in get_ahb_div() argument
110 ((pdr0 & MXC_CCM_PDR0_CON_MUX_DIV_MASK) >> in get_ahb_div()
140 arm_div = get_arm_div(readl(&ccm->pdr0), &fi, &fd); in get_mcu_main_clk()
150 u32 pdr0 = readl(&ccm->pdr0); in get_ipg_clk() local
152 return freq / (get_ahb_div(pdr0) * 2); in get_ipg_clk()
160 u32 pdr0 = readl(&ccm->pdr0); in get_ipg_per_clk() local
163 if (pdr0 & MXC_CCM_PDR0_PER_SEL) { in get_ipg_per_clk()
168 div = CCM_GET_DIVIDER(pdr0, in get_ipg_per_clk()
171 div *= get_ahb_div(pdr0); in get_ipg_per_clk()
200 u32 reg = readl(&ccm->pdr0); in mxc_get_main_clock()