Home
last modified time | relevance | path

Searched refs:uartclk (Results 1 – 25 of 111) sorted by relevance

12345

/drivers/tty/serial/8250/
A D8250_ni.c71 u32 uartclk; member
332 uart->port.uartclk = info->uartclk; in ni16550_probe()
338 if (!uart->port.uartclk) { in ni16550_probe()
341 uart->port.uartclk = clk_get_rate(data->clk); in ni16550_probe()
344 if (!uart->port.uartclk) in ni16550_probe()
405 .uartclk = 33333333,
410 .uartclk = 1843200,
417 .uartclk = 22222222,
424 .uartclk = 29629629,
A D8250_acorn.c27 unsigned int uartclk; member
65 uart.port.uartclk = type->uartclk; in serial_card_probe()
96 .uartclk = 7372800,
103 .uartclk = 3686400,
A D8250_bcm2835aux.c89 unsigned int uartclk; in bcm2835aux_serial_probe() local
148 uartclk = clk_get_rate(data->clk); in bcm2835aux_serial_probe()
149 if (uartclk) in bcm2835aux_serial_probe()
150 up.port.uartclk = uartclk; in bcm2835aux_serial_probe()
157 up.port.uartclk *= 2; in bcm2835aux_serial_probe()
A D8250_rsa.c129 up->port.uartclk = SERIAL_RSA_BAUD_BASE * 16; in __rsa_enable()
142 if (up->port.uartclk != SERIAL_RSA_BAUD_BASE * 16) { in rsa_enable()
147 if (up->port.uartclk == SERIAL_RSA_BAUD_BASE * 16) in rsa_enable()
165 if (up->port.uartclk != SERIAL_RSA_BAUD_BASE * 16) in rsa_disable()
179 up->port.uartclk = SERIAL_RSA_BAUD_BASE_LO * 16; in rsa_disable()
A D8250_ingenic.c86 dev->port.uartclk = be32_to_cpup(prop); in ingenic_early_console_setup_clock()
107 divisor = DIV_ROUND_CLOSEST(port->uartclk, 16 * baud); in ingenic_earlycon_setup_tail()
147 if (dev->port.uartclk >= 16000000) in jz4750_early_console_setup()
148 dev->port.uartclk /= 2; in jz4750_early_console_setup()
298 uart.port.uartclk = clk_get_rate(data->clk_baud); in ingenic_uart_probe()
A D8250_hp300.c116 port.uartclk = HPAPCI_BAUD_BASE * 16; in hp300_setup_serial_console()
133 port.uartclk = HPDCA_BAUD_BASE * 16; in hp300_setup_serial_console()
175 uart.port.uartclk = HPDCA_BAUD_BASE * 16; in hpdca_init_one()
257 uart.port.uartclk = HPAPCI_BAUD_BASE * 16; in hp300_8250_init()
A D8250_of.c54 return DIV_ROUND_CLOSEST(port->uartclk, 16 * baud + 2) - 2; in npcm_get_divisor()
126 if (!port->uartclk) { in of_platform_serial_setup()
143 port->uartclk = clk_get_rate(info->clk); in of_platform_serial_setup()
147 port->custom_divisor = port->uartclk / (16 * spd); in of_platform_serial_setup()
A D8250_platform.c89 port->uartclk = old_serial_port[i].baud_base * 16; in __serial8250_isa_init_ports()
135 uart.port.uartclk = 1843200; in serial8250_probe_acpi()
169 uart.port.uartclk = p->uartclk; in serial8250_probe_platform()
A D8250_omap.c235 unsigned int uartclk = port->uartclk; in omap_8250_get_divisor() local
263 abs_d13 = abs(baud - uartclk / 13 / div_13); in omap_8250_get_divisor()
264 abs_d16 = abs(baud - uartclk / 16 / div_16); in omap_8250_get_divisor()
400 port->uartclk / 16 / UART_DIV_MAX, in omap_8250_set_termios()
401 port->uartclk / 13); in omap_8250_set_termios()
876 baud = port->uartclk / (16 * priv->quot); in omap8250_rs485_config()
878 baud = port->uartclk / (13 * priv->quot); in omap8250_rs485_config()
1488 if (!up.port.uartclk) { in omap8250_probe()
1496 up.port.uartclk = clk_get_rate(clk); in omap8250_probe()
1508 if (!up.port.uartclk) { in omap8250_probe()
[all …]
A D8250_mtk.c360 port->uartclk / 16 / UART_DIV_MAX, in mtk8250_set_termios()
361 port->uartclk); in mtk8250_set_termios()
368 quot = DIV_ROUND_UP(port->uartclk, 256 * baud); in mtk8250_set_termios()
392 tmp = (port->uartclk / (baud * quot)) - 1; in mtk8250_set_termios()
398 fraction = ((port->uartclk * 100) / baud / quot) % 100; in mtk8250_set_termios()
564 uart.port.uartclk = clk_get_rate(data->uart_clk); in mtk8250_probe()
A D8250_tegra.c88 if (!port->uartclk) { in tegra_uart_probe()
99 port->uartclk = clk_get_rate(uart->clk); in tegra_uart_probe()
A D8250_core.c554 p->uartclk = port->uartclk; in early_serial_setup()
621 port->uartclk = 921600*16; in serial8250_resume_port()
703 if (up->port.uartclk == 0) in serial8250_register_8250_port()
735 uart->port.uartclk = up->port.uartclk; in serial8250_register_8250_port()
/drivers/tty/serial/
A Dearlycon.c123 char *uartclk; in parse_options() local
126 uartclk = strchr(options, ','); in parse_options()
127 if (uartclk && kstrtouint(uartclk + 1, 0, &port->uartclk) < 0) in parse_options()
148 if (!port->uartclk) in register_earlycon()
149 port->uartclk = BASE_BAUD * 16; in register_earlycon()
333 port->uartclk = be32_to_cpu(*val); in of_setup_earlycon()
A Dxilinx_uartps.c206 struct clk *uartclk; member
655 port->uartclk = ndata->new_rate; in cdns_uart_clk_notifier_cb()
836 minbaud = port->uartclk / in cdns_uart_set_termios()
1340 if (port->uartclk && device->baud) { in cdns_early_console_setup()
1518 ret = clk_enable(cdns_uart->uartclk); in cdns_uart_resume()
1542 clk_disable(cdns_uart->uartclk); in cdns_uart_resume()
1562 clk_disable(cdns_uart->uartclk); in cdns_runtime_suspend()
1577 ret = clk_enable(cdns_uart->uartclk); in cdns_runtime_resume()
1716 rc = PTR_ERR(cdns_uart_data->uartclk); in cdns_uart_probe()
1720 if (IS_ERR(cdns_uart_data->uartclk)) { in cdns_uart_probe()
[all …]
A Dmpc52xx_uart.c298 port->uartclk / 32); in mpc5200_psc_set_baudrate()
318 port->uartclk / 4); in mpc5200b_psc_set_baudrate()
557 port->uartclk / 16); in mpc512x_psc_set_baudrate()
895 port->uartclk / 16); in mpc5125_psc_set_baudrate()
1569 unsigned int uartclk; in mpc52xx_console_setup() local
1602 if (uartclk == 0) { in mpc52xx_console_setup()
1610 port->uartclk = uartclk; in mpc52xx_console_setup()
1621 port->irq, port->uartclk); in mpc52xx_console_setup()
1701 unsigned int uartclk; in mpc52xx_uart_of_probe() local
1719 if (uartclk == 0) { in mpc52xx_uart_of_probe()
[all …]
A Dsccnxp.c311 div_std = DIV_ROUND_CLOSEST(port->uartclk, 2 * 16 * baud); in sccnxp_set_baud()
313 bestbaud = DIV_ROUND_CLOSEST(port->uartclk, 2 * 16 * div_std); in sccnxp_set_baud()
327 tmp_baud = DIV_ROUND_CLOSEST(port->uartclk, div_std); in sccnxp_set_baud()
888 int i, ret, uartclk; in sccnxp_probe() local
924 uartclk = 0; in sccnxp_probe()
926 uartclk = clk_get_rate(clk); in sccnxp_probe()
929 if (!uartclk) { in sccnxp_probe()
931 uartclk = s->chip->freq_std; in sccnxp_probe()
935 if ((uartclk < s->chip->freq_min) || (uartclk > s->chip->freq_max)) { in sccnxp_probe()
990 s->port[i].uartclk = uartclk; in sccnxp_probe()
A D21285.c244 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); in serial21285_set_termios()
246 b = port->uartclk / (16 * quot); in serial21285_set_termios()
347 if (ser->baud_base != port->uartclk / 16) in serial21285_verify_port()
381 serial21285_port.uartclk = mem_fclk_21285 / 4; in serial21285_setup_ports()
431 *baud = port->uartclk / (16 * (tmp + 1)); in serial21285_get_options()
A Dmax310x.c517 div = port->uartclk / baud; in max310x_set_baud()
536 frac = (16*(port->uartclk % F)) / F; in max310x_set_baud()
545 return (16*port->uartclk) / (c*(16*div + frac)); in max310x_set_baud()
994 port->uartclk / 16 / 0xffff, in max310x_set_termios()
995 port->uartclk / 4); in max310x_set_termios()
1262 s32 uartclk = 0; in max310x_probe() local
1292 freq = uartclk; in max310x_probe()
1349 uartclk = max310x_set_ref_clk(dev, s, freq, xtal); in max310x_probe()
1350 if (uartclk < 0) { in max310x_probe()
1351 ret = uartclk; in max310x_probe()
[all …]
A Dlpc32xx_hs.c207 static unsigned int __serial_get_clock_div(unsigned long uartclk, in __serial_get_clock_div() argument
214 div = uartclk / rate; in __serial_get_clock_div()
224 comprate = uartclk / ((hsu_rate + 1) * 14); in __serial_get_clock_div()
485 port->uartclk / 14); in serial_lpc32xx_set_termios()
487 quot = __serial_get_clock_div(port->uartclk, baud); in serial_lpc32xx_set_termios()
636 p->port.uartclk = LPC32XX_MAIN_OSC_FREQ; in serial_hs_lpc32xx_probe()
A Dsunsu.c182 up->port.uartclk = SERIAL_RSA_BAUD_BASE * 16; in __enable_rsa()
190 if (up->port.uartclk != SERIAL_RSA_BAUD_BASE * 16) { in enable_rsa()
195 if (up->port.uartclk == SERIAL_RSA_BAUD_BASE * 16) in enable_rsa()
212 up->port.uartclk == SERIAL_RSA_BAUD_BASE * 16) { in disable_rsa()
225 up->port.uartclk = SERIAL_RSA_BAUD_BASE_LO * 16; in disable_rsa()
469 quot = up->port.uartclk / (16 * new_baud); in sunsu_change_mouse_baud()
790 if ((up->port.uartclk / quot) < (2400 * 16)) in sunsu_change_speed()
811 uart_update_timeout(port, cflag, (port->uartclk / (16 * quot))); in sunsu_change_speed()
883 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); in sunsu_set_termios()
1177 quot = up->port.uartclk / (16 * baud); in sunsu_kbd_ms_init()
[all …]
A Daltera_uart.c183 baudclk = port->uartclk / baud; in altera_uart_set_termios()
498 unsigned int baudclk = port->uartclk / dev->baud; in altera_uart_earlycon_setup()
566 port->uartclk = platp->uartclk; in altera_uart_probe()
569 &port->uartclk); in altera_uart_probe()
A Dst-asc.c479 port->uartclk = clk_get_rate(ascport->clk); in asc_set_termios()
481 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); in asc_set_termios()
532 asc_out(port, ASC_BAUDRATE, (port->uartclk / (16 * baud))); in asc_set_termios()
545 do_div(dividend, port->uartclk / 16); in asc_set_termios()
717 ascport->port.uartclk = clk_get_rate(ascport->clk); in asc_init_port()
718 WARN_ON(ascport->port.uartclk == 0); in asc_init_port()
A Dserial_txx9.c618 baud = uart_get_baud_rate(up, termios, old, 0, up->uartclk/16/2); in serial_txx9_set_termios()
985 uart->uartclk = port->uartclk; in serial_txx9_register_port()
1032 for (i = 0; p && p->uartclk != 0; p++, i++) { in serial_txx9_probe()
1036 port.uartclk = p->uartclk; in serial_txx9_probe()
1129 port.uartclk = 66670000; in pciserial_txx9_init_one()
A Dapbuart.c212 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 16); in apbuart_set_termios()
214 panic("invalid baudrate %i\n", port->uartclk / 16); in apbuart_set_termios()
441 *baud = port->uartclk / (16 * (quot + 1)); in apbuart_console_get_options()
600 port->uartclk = *freq_hz; in grlib_apbuart_configure()
/drivers/mmc/core/
A Dsdio_uart.c74 unsigned int uartclk; member
265 if (baud <= port->uartclk) in sdio_uart_change_speed()
278 quot = (2 * port->uartclk + baud) / (2 * baud); in sdio_uart_change_speed()
1060 port->uartclk = tpl->data[7] * 115200; in sdio_uart_probe()
1061 if (port->uartclk == 0) in sdio_uart_probe()
1062 port->uartclk = 115200; in sdio_uart_probe()
1064 sdio_func_id(func), port->uartclk, in sdio_uart_probe()

Completed in 61 milliseconds

12345