Home
last modified time | relevance | path

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

/openbmc/linux/drivers/tty/serial/
H A Dlpc32xx_hs.c214 u32 div, goodrate, hsu_rate, l_hsu_rate, comprate; in __serial_get_clock_div() local
219 goodrate = hsu_rate = (div / 14) - 1; in __serial_get_clock_div()
220 if (hsu_rate != 0) in __serial_get_clock_div()
221 hsu_rate--; in __serial_get_clock_div()
224 l_hsu_rate = hsu_rate + 3; in __serial_get_clock_div()
227 while (hsu_rate < l_hsu_rate) { in __serial_get_clock_div()
228 comprate = uartclk / ((hsu_rate + 1) * 14); in __serial_get_clock_div()
230 goodrate = hsu_rate; in __serial_get_clock_div()
234 hsu_rate++; in __serial_get_clock_div()
236 if (hsu_rate > 0xFF) in __serial_get_clock_div()
[all …]