Home
last modified time | relevance | path

Searched refs:prescaler (Results 1 – 3 of 3) sorted by relevance

/arch/powerpc/sysdev/
Dfsl_gtm.c170 unsigned int prescaler; in gtm_set_ref_timer16() local
181 prescaler = gtm->clock / frequency; in gtm_set_ref_timer16()
187 if (prescaler > max_prescaler) in gtm_set_ref_timer16()
190 if (prescaler > max_prescaler / 16) { in gtm_set_ref_timer16()
192 prescaler /= 16; in gtm_set_ref_timer16()
195 if (prescaler <= 256) { in gtm_set_ref_timer16()
197 sps = prescaler - 1; in gtm_set_ref_timer16()
200 sps = prescaler / 256 - 1; in gtm_set_ref_timer16()
/arch/powerpc/kernel/
Dudbg_16550.c126 unsigned int dll, dlm, divisor, prescaler, speed; in udbg_probe_uart_speed() local
141 prescaler = 4; in udbg_probe_uart_speed()
143 prescaler = 1; in udbg_probe_uart_speed()
149 speed = (clock / prescaler) / (divisor * 16); in udbg_probe_uart_speed()
/arch/arm/mach-omap2/
Dvc.c477 u32 prescaler; in omap4_calc_volt_ramp() local
486 prescaler = 0; in omap4_calc_volt_ramp()
493 prescaler++; in omap4_calc_volt_ramp()
499 prescaler++; in omap4_calc_volt_ramp()
505 prescaler++; in omap4_calc_volt_ramp()
517 return (prescaler << OMAP4430_RAMP_UP_PRESCAL_SHIFT) | in omap4_calc_volt_ramp()