Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/serial/
H A Dserial_ar933x.c60 u32 tscale, baudrate; in ar933x_serial_get_scale_step() local
67 for (tscale = 0; tscale < AR933X_UART_CLK_SCALE_M; tscale++) { in ar933x_serial_get_scale_step()
71 tstep = baud * (tscale + 1); in ar933x_serial_get_scale_step()
78 baudrate = ar933x_serial_get_baud(clk, tscale, tstep); in ar933x_serial_get_scale_step()
82 *scale = tscale; in ar933x_serial_get_scale_step()
/openbmc/linux/drivers/tty/serial/
H A Dar933x_uart.c257 unsigned int tscale; in ar933x_uart_get_scale_step() local
264 for (tscale = 0; tscale < AR933X_UART_MAX_SCALE; tscale++) { in ar933x_uart_get_scale_step()
268 tstep = baud * (tscale + 1); in ar933x_uart_get_scale_step()
275 diff = abs(ar933x_uart_get_baud(clk, tscale, tstep) - baud); in ar933x_uart_get_scale_step()
278 *scale = tscale; in ar933x_uart_get_scale_step()