Lines Matching full:scale
41 * baudrate = (clk / (scale + 1)) * (step * (1 / 2^17))
43 static u32 ar933x_serial_get_baud(u32 clk, u32 scale, u32 step) in ar933x_serial_get_baud() argument
48 div = (2 << 16) * (scale + 1); in ar933x_serial_get_baud()
58 u32 *scale, u32 *step) in ar933x_serial_get_scale_step() argument
63 *scale = 0; in ar933x_serial_get_scale_step()
82 *scale = tscale; in ar933x_serial_get_scale_step()
91 u32 val, scale, step; in ar933x_serial_setbrg() local
94 ar933x_serial_get_scale_step(val, baudrate, &scale, &step); in ar933x_serial_setbrg()
96 val = (scale & AR933X_UART_CLK_SCALE_M) in ar933x_serial_setbrg()
201 u32 val, scale, step; in _debug_uart_init() local
217 CONFIG_BAUDRATE, &scale, &step); in _debug_uart_init()
219 val = (scale & AR933X_UART_CLK_SCALE_M) in _debug_uart_init()