Lines Matching refs:prcm
101 const struct prcm_config *prcm; in omap2_select_table_rate() local
105 for (prcm = rate_table; prcm->mpu_speed; prcm++) { in omap2_select_table_rate()
106 if (!(prcm->flags & cpu_mask)) in omap2_select_table_rate()
109 if (prcm->xtal_speed != sys_ck_rate) in omap2_select_table_rate()
112 if (prcm->mpu_speed <= rate) { in omap2_select_table_rate()
113 found_speed = prcm->mpu_speed; in omap2_select_table_rate()
124 curr_prcm_set = prcm; in omap2_select_table_rate()
127 if (prcm->dpll_speed == cur_rate / 2) { in omap2_select_table_rate()
129 } else if (prcm->dpll_speed == cur_rate * 2) { in omap2_select_table_rate()
131 } else if (prcm->dpll_speed != cur_rate) { in omap2_select_table_rate()
134 if (prcm->dpll_speed == prcm->xtal_speed) in omap2_select_table_rate()
137 if ((prcm->cm_clksel2_pll & OMAP24XX_CORE_CLK_SRC_MASK) == in omap2_select_table_rate()
143 omap2xxx_cm_set_mod_dividers(prcm->cm_clksel_mpu, in omap2_select_table_rate()
144 prcm->cm_clksel_dsp, in omap2_select_table_rate()
145 prcm->cm_clksel_gfx, in omap2_select_table_rate()
146 prcm->cm_clksel1_core, in omap2_select_table_rate()
147 prcm->cm_clksel_mdm); in omap2_select_table_rate()
152 omap2_set_prcm(prcm->cm_clksel1_pll, prcm->base_sdrc_rfr, in omap2_select_table_rate()
174 const struct prcm_config *prcm = NULL; in omap2xxx_clkt_vps_check_bootloader_rates() local
178 for (prcm = rate_table; prcm->mpu_speed; prcm++) { in omap2xxx_clkt_vps_check_bootloader_rates()
179 if (!(prcm->flags & cpu_mask)) in omap2xxx_clkt_vps_check_bootloader_rates()
181 if (prcm->xtal_speed != sys_ck_rate) in omap2xxx_clkt_vps_check_bootloader_rates()
183 if (prcm->dpll_speed <= rate) in omap2xxx_clkt_vps_check_bootloader_rates()
186 curr_prcm_set = prcm; in omap2xxx_clkt_vps_check_bootloader_rates()