Searched refs:clk_div_reg (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/tty/serial/
H A Dsirfsoc_uart.c706 unsigned int clk_div_reg = 0; sirfsoc_uart_set_termios() local
799 clk_div_reg = baudrate_to_regv[ic].reg_val; sirfsoc_uart_set_termios()
803 if (unlikely(clk_div_reg == 0)) sirfsoc_uart_set_termios()
804 clk_div_reg = sirfsoc_uart_calc_sample_div(baud_rate, sirfsoc_uart_set_termios()
806 wr_regl(port, ureg->sirfsoc_divisor, clk_div_reg); sirfsoc_uart_set_termios()
808 clk_div_reg = sirfsoc_usp_calc_sample_div(baud_rate, sirfsoc_uart_set_termios()
811 set_baud = ((ioclk_rate / (clk_div_reg+1) - 1) / sirfsoc_uart_set_termios()
816 len_val |= ((clk_div_reg & SIRFSOC_USP_MODE2_CLK_DIVISOR_MASK) sirfsoc_uart_set_termios()
838 len_val |= (((clk_div_reg & 0xc00) >> 10) << sirfsoc_uart_set_termios()
847 len_val |= (((clk_div_reg & 0xf000) >> 12) << sirfsoc_uart_set_termios()

Completed in 69 milliseconds