Home
last modified time | relevance | path

Searched full:uartclk (Results 1 – 25 of 186) sorted by relevance

12345678

/linux/arch/arm64/boot/dts/arm/
H A Dcorstone1000.dtsi86 uartclk: clock-50000000 { label
91 clock-output-names = "uartclk";
125 clocks = <&uartclk>, <&refclk100mhz>;
126 clock-names = "uartclk", "apb_pclk";
133 clocks = <&uartclk>, <&refclk100mhz>;
134 clock-names = "uartclk", "apb_pclk";
H A Drtsm_ve-motherboard.dtsi174 clock-names = "uartclk", "apb_pclk";
182 clock-names = "uartclk", "apb_pclk";
190 clock-names = "uartclk", "apb_pclk";
198 clock-names = "uartclk", "apb_pclk";
H A Dfoundation-v8.dtsi205 clock-names = "uartclk", "apb_pclk";
213 clock-names = "uartclk", "apb_pclk";
221 clock-names = "uartclk", "apb_pclk";
229 clock-names = "uartclk", "apb_pclk";
/linux/drivers/tty/serial/8250/
H A D8250_acorn.c27 unsigned int uartclk; member
65 uart.port.uartclk = type->uartclk; in serial_card_probe()
96 .uartclk = 7372800,
103 .uartclk = 3686400,
H A D8250_bcm2835aux.c39 * @clk: clock producer of the port's uartclk
89 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()
H 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()
H 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()
H A D8250_mtk.c334 * no higher than (uartclk / 16) so the baud will be clamped if it in mtk8250_set_termios()
360 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()
H A D8250_lpc18xx.c52 baud_clk = port->uartclk / up->dl_read(up); in lpc18xx_rs485_config()
114 data->clk_uart = devm_clk_get(&pdev->dev, "uartclk"); in lpc18xx_serial_probe()
146 uart.port.uartclk = clk_get_rate(data->clk_uart); in lpc18xx_serial_probe()
/linux/arch/arm/mach-omap1/
H A Dserial.c73 .uartclk = OMAP16XX_BASE_BAUD * 16,
81 .uartclk = OMAP16XX_BASE_BAUD * 16,
89 .uartclk = OMAP16XX_BASE_BAUD * 16,
112 serial_platform_data[0].uartclk = OMAP1510_BASE_BAUD * 16; in omap_serial_init()
113 serial_platform_data[1].uartclk = OMAP1510_BASE_BAUD * 16; in omap_serial_init()
114 serial_platform_data[2].uartclk = OMAP1510_BASE_BAUD * 16; in omap_serial_init()
/linux/arch/arm/boot/dts/arm/
H A Darm-realview-eb.dtsi56 xtal24mhz: mclk: kmiclk: sspclk: uartclk: wdogclk: clock-24000000 {
333 clocks = <&uartclk>, <&pclk>;
334 clock-names = "uartclk", "apb_pclk";
340 clocks = <&uartclk>, <&pclk>;
341 clock-names = "uartclk", "apb_pclk";
347 clocks = <&uartclk>, <&pclk>;
348 clock-names = "uartclk", "apb_pclk";
354 clocks = <&uartclk>, <&pclk>;
355 clock-names = "uartclk", "apb_pclk";
H A Darm-realview-pb1176.dts66 xtal24mhz: mclk: kmiclk: sspclk: uartclk: clock-24000000 {
389 clocks = <&uartclk>, <&pclk>;
390 clock-names = "uartclk", "apb_pclk";
398 clocks = <&uartclk>, <&pclk>;
399 clock-names = "uartclk", "apb_pclk";
407 clocks = <&uartclk>, <&pclk>;
408 clock-names = "uartclk", "apb_pclk";
416 clocks = <&uartclk>, <&pclk>;
417 clock-names = "uartclk", "apb_pclk";
525 clocks = <&uartclk>, <&pclk>;
[all …]
H A Dintegratorcp.dts73 uartclk: clock-14745600 { label
249 clocks = <&uartclk>, <&pclk>;
250 clock-names = "uartclk", "apb_pclk";
255 clocks = <&uartclk>, <&pclk>;
256 clock-names = "uartclk", "apb_pclk";
279 clocks = <&uartclk>, <&pclk>;
H A Darm-realview-pbx.dtsi65 xtal24mhz: mclk: kmiclk: sspclk: uartclk: wdogclk: clock-24000000 {
331 clocks = <&uartclk>, <&pclk>;
332 clock-names = "uartclk", "apb_pclk";
338 clocks = <&uartclk>, <&pclk>;
339 clock-names = "uartclk", "apb_pclk";
345 clocks = <&uartclk>, <&pclk>;
346 clock-names = "uartclk", "apb_pclk";
524 clocks = <&uartclk>, <&pclk>;
525 clock-names = "uartclk", "apb_pclk";
H A Darm-realview-pb11mp.dts166 xtal24mhz: mclk: kmiclk: sspclk: uartclk: wdogclk: clock-24000000 {
481 clocks = <&uartclk>, <&pclk>;
482 clock-names = "uartclk", "apb_pclk";
490 clocks = <&uartclk>, <&pclk>;
491 clock-names = "uartclk", "apb_pclk";
499 clocks = <&uartclk>, <&pclk>;
500 clock-names = "uartclk", "apb_pclk";
508 clocks = <&uartclk>, <&pclk>;
509 clock-names = "uartclk", "apb_pclk";
H A Dintegratorap.dts67 uartclk: clock-14745600 { label
216 clocks = <&uartclk>, <&pclk>;
217 clock-names = "uartclk", "apb_pclk";
223 clocks = <&uartclk>, <&pclk>;
224 clock-names = "uartclk", "apb_pclk";
/linux/arch/arm/boot/dts/hisilicon/
H A Dhi3519.dtsi56 clock-names = "uartclk", "apb_pclk";
65 clock-names = "uartclk", "apb_pclk";
74 clock-names = "uartclk", "apb_pclk";
83 clock-names = "uartclk", "apb_pclk";
92 clock-names = "uartclk", "apb_pclk";
/linux/drivers/tty/serial/
H A Dmpc52xx_uart.c295 /* The 5200 has a fixed /32 prescaler, uartclk contains the ipb freq */ in mpc5200_psc_set_baudrate()
297 port->uartclk / (32 * 0xffff) + 1, in mpc5200_psc_set_baudrate()
298 port->uartclk / 32); in mpc5200_psc_set_baudrate()
299 divisor = (port->uartclk + 16 * baud) / (32 * baud); in mpc5200_psc_set_baudrate()
314 /* The 5200B has a selectable /4 or /32 prescaler, uartclk contains the in mpc5200b_psc_set_baudrate()
317 port->uartclk / (32 * 0xffff) + 1, in mpc5200b_psc_set_baudrate()
318 port->uartclk / 4); in mpc5200b_psc_set_baudrate()
319 divisor = (port->uartclk + 2 * baud) / (4 * baud); in mpc5200b_psc_set_baudrate()
554 /* uartclk contains the ips freq */ in mpc512x_psc_set_baudrate()
556 port->uartclk / (16 * 0xffff) + 1, in mpc512x_psc_set_baudrate()
[all …]
H A Dxilinx_uartps.c192 * @uartclk: Reference clock
206 struct clk *uartclk; member
580 calc_baud = cdns_uart_calc_baud_divs(port->uartclk, baud, &bdiv, &cd, in cdns_uart_set_baud_rate()
655 port->uartclk = ndata->new_rate; in cdns_uart_clk_notifier_cb()
833 * min and max baud should be calculated here based on port->uartclk. in cdns_uart_set_termios()
836 minbaud = port->uartclk / in cdns_uart_set_termios()
838 maxbaud = port->uartclk / (CDNS_UART_BDIV_MIN + 1); in cdns_uart_set_termios()
1340 if (port->uartclk && device->baud) { in cdns_early_console_setup()
1345 cdns_uart_calc_baud_divs(port->uartclk, device->baud, in cdns_early_console_setup()
1520 ret = clk_enable(cdns_uart->uartclk); in cdns_uart_resume()
[all …]
H 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()
H 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()
/linux/Documentation/devicetree/bindings/serial/
H A Dpl011.yaml56 the clock named UARTCLK on the IP block, i.e. the clock
65 - const: uartclk
124 clock-names = "uartclk", "apb_pclk";
/linux/arch/mips/ath25/
H A Ddevices.c74 void __init ath25_serial_setup(u32 mapbase, int irq, unsigned int uartclk) in ath25_serial_setup() argument
86 s.uartclk = uartclk; in ath25_serial_setup()
/linux/Documentation/ABI/testing/
H A Dsysfs-tty21 What: /sys/class/tty/ttyS<x>/uartclk
25 Shows the current uartclk value associated with the
27 uartclk = 16 * baud_base
/linux/arch/mips/alchemy/common/
H A Dplatform.c103 long uartclk; in alchemy_setup_uarts() local
115 uartclk = clk_get_rate(clk); in alchemy_setup_uarts()
126 /* Fill up uartclk. */ in alchemy_setup_uarts()
128 ports[s].uartclk = uartclk; in alchemy_setup_uarts()

12345678