Lines Matching refs:prcm
99 const struct prcm_config *prcm; in omap2_select_table_rate() local
103 for (prcm = rate_table; prcm->mpu_speed; prcm++) { in omap2_select_table_rate()
104 if (!(prcm->flags & cpu_mask)) in omap2_select_table_rate()
107 if (prcm->xtal_speed != sys_ck_rate) in omap2_select_table_rate()
110 if (prcm->mpu_speed <= rate) { in omap2_select_table_rate()
111 found_speed = prcm->mpu_speed; in omap2_select_table_rate()
122 curr_prcm_set = prcm; in omap2_select_table_rate()
125 if (prcm->dpll_speed == cur_rate / 2) { in omap2_select_table_rate()
127 } else if (prcm->dpll_speed == cur_rate * 2) { in omap2_select_table_rate()
129 } else if (prcm->dpll_speed != cur_rate) { in omap2_select_table_rate()
132 if (prcm->dpll_speed == prcm->xtal_speed) in omap2_select_table_rate()
135 if ((prcm->cm_clksel2_pll & OMAP24XX_CORE_CLK_SRC_MASK) == in omap2_select_table_rate()
141 omap2xxx_cm_set_mod_dividers(prcm->cm_clksel_mpu, in omap2_select_table_rate()
142 prcm->cm_clksel_dsp, in omap2_select_table_rate()
143 prcm->cm_clksel_gfx, in omap2_select_table_rate()
144 prcm->cm_clksel1_core, in omap2_select_table_rate()
145 prcm->cm_clksel_mdm); in omap2_select_table_rate()
150 omap2_set_prcm(prcm->cm_clksel1_pll, prcm->base_sdrc_rfr, in omap2_select_table_rate()
172 const struct prcm_config *prcm = NULL; in omap2xxx_clkt_vps_check_bootloader_rates() local
176 for (prcm = rate_table; prcm->mpu_speed; prcm++) { in omap2xxx_clkt_vps_check_bootloader_rates()
177 if (!(prcm->flags & cpu_mask)) in omap2xxx_clkt_vps_check_bootloader_rates()
179 if (prcm->xtal_speed != sys_ck_rate) in omap2xxx_clkt_vps_check_bootloader_rates()
181 if (prcm->dpll_speed <= rate) in omap2xxx_clkt_vps_check_bootloader_rates()
184 curr_prcm_set = prcm; in omap2xxx_clkt_vps_check_bootloader_rates()