Lines Matching refs:imx_uart_writel
273 static inline void imx_uart_writel(struct imx_port *sport, u32 val, u32 offset) in imx_uart_writel() function
310 imx_uart_writel(sport, ucr->ucr1, UCR1); in imx_uart_ucrs_restore()
311 imx_uart_writel(sport, ucr->ucr2, UCR2); in imx_uart_ucrs_restore()
312 imx_uart_writel(sport, ucr->ucr3, UCR3); in imx_uart_ucrs_restore()
360 imx_uart_writel(sport, ucr2 & ~UCR2_SRST, UCR2); in imx_uart_soft_reset()
366 imx_uart_writel(sport, ubir, UBIR); in imx_uart_soft_reset()
367 imx_uart_writel(sport, ubmr, UBMR); in imx_uart_soft_reset()
368 imx_uart_writel(sport, uts, IMX21_UTS); in imx_uart_soft_reset()
380 imx_uart_writel(sport, uts, imx_uart_uts_reg(sport)); in imx_uart_disable_loopback_rs485()
402 imx_uart_writel(sport, ucr2, UCR2); in imx_uart_start_rx()
403 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_start_rx()
424 imx_uart_writel(sport, ucr1 & ~UCR1_TRDYEN, UCR1); in imx_uart_stop_tx()
434 imx_uart_writel(sport, ucr4, UCR4); in imx_uart_stop_tx()
461 imx_uart_writel(sport, ucr2, UCR2); in imx_uart_stop_tx()
489 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_stop_rx_with_loopback_ctrl()
490 imx_uart_writel(sport, ucr4, UCR4); in imx_uart_stop_rx_with_loopback_ctrl()
498 imx_uart_writel(sport, uts, imx_uart_uts_reg(sport)); in imx_uart_stop_rx_with_loopback_ctrl()
504 imx_uart_writel(sport, ucr2, UCR2); in imx_uart_stop_rx_with_loopback_ctrl()
537 imx_uart_writel(sport, sport->port.x_char, URTX0); in imx_uart_transmit_buffer()
559 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_transmit_buffer()
561 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_transmit_buffer()
570 imx_uart_writel(sport, c, URTX0); in imx_uart_transmit_buffer()
593 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_dma_tx_callback()
610 imx_uart_writel(sport, ucr4, UCR4); in imx_uart_dma_tx_callback()
632 imx_uart_writel(sport, ucr4, UCR4); in imx_uart_dma_tx()
659 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_dma_tx()
691 imx_uart_writel(sport, ucr2, UCR2); in imx_uart_start_tx()
726 imx_uart_writel(sport, ucr4, UCR4); in imx_uart_start_tx()
737 imx_uart_writel(sport, ucr1 | UCR1_TRDYEN, UCR1); in imx_uart_start_tx()
747 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_start_tx()
763 imx_uart_writel(sport, USR1_RTSD, USR1); in __imx_uart_rtsint()
848 imx_uart_writel(sport, USR2_WAKE, USR2); in imx_uart_check_flood()
1022 imx_uart_writel(sport, USR1_AGTIM, USR1); in imx_uart_int()
1034 imx_uart_writel(sport, USR1_DTRD, USR1); in imx_uart_int()
1047 imx_uart_writel(sport, USR1_AWAKE, USR1); in imx_uart_int()
1053 imx_uart_writel(sport, USR2_ORE, USR2); in imx_uart_int()
1115 imx_uart_writel(sport, ucr2, UCR2); in imx_uart_set_mctrl()
1121 imx_uart_writel(sport, ucr3, UCR3); in imx_uart_set_mctrl()
1126 imx_uart_writel(sport, uts, imx_uart_uts_reg(sport)); in imx_uart_set_mctrl()
1147 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_break_ctl()
1305 imx_uart_writel(sport, USR2_BRCD, USR2); in imx_uart_clear_rx_errors()
1313 imx_uart_writel(sport, USR1_FRAMERR, USR1); in imx_uart_clear_rx_errors()
1316 imx_uart_writel(sport, USR1_PARITYERR, USR1); in imx_uart_clear_rx_errors()
1322 imx_uart_writel(sport, USR2_ORE, USR2); in imx_uart_clear_rx_errors()
1342 imx_uart_writel(sport, val, UFCR); in imx_uart_setup_ufcr()
1434 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_enable_dma()
1446 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_disable_dma()
1484 imx_uart_writel(sport, ucr4 & ~UCR4_DREN, UCR4); in imx_uart_startup()
1500 imx_uart_writel(sport, USR1_RTSD | USR1_DTRD, USR1); in imx_uart_startup()
1501 imx_uart_writel(sport, USR2_ORE, USR2); in imx_uart_startup()
1508 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_startup()
1515 imx_uart_writel(sport, ucr4, UCR4); in imx_uart_startup()
1531 imx_uart_writel(sport, ucr3, UCR3); in imx_uart_startup()
1543 imx_uart_writel(sport, ucr2, UCR2); in imx_uart_startup()
1556 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_startup()
1560 imx_uart_writel(sport, ucr2, UCR2); in imx_uart_startup()
1604 imx_uart_writel(sport, ucr2, UCR2); in imx_uart_shutdown()
1627 imx_uart_writel(sport, uts, imx_uart_uts_reg(sport)); in imx_uart_shutdown()
1632 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_shutdown()
1636 imx_uart_writel(sport, ucr4, UCR4); in imx_uart_shutdown()
1683 imx_uart_writel(sport, ucr2, UCR2); in imx_uart_shutdown()
1712 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_flush_buffer()
1852 imx_uart_writel(sport, ufcr, UFCR); in imx_uart_set_termios()
1866 imx_uart_writel(sport, num, UBIR); in imx_uart_set_termios()
1867 imx_uart_writel(sport, denom, UBMR); in imx_uart_set_termios()
1871 imx_uart_writel(sport, sport->port.uartclk / div / 1000, in imx_uart_set_termios()
1874 imx_uart_writel(sport, ucr2, UCR2); in imx_uart_set_termios()
1962 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_poll_init()
1963 imx_uart_writel(sport, ucr2, UCR2); in imx_uart_poll_init()
1966 imx_uart_writel(sport, ucr1 | UCR1_RRDYEN, UCR1); in imx_uart_poll_init()
1967 imx_uart_writel(sport, ucr2 | UCR2_ATEN, UCR2); in imx_uart_poll_init()
1994 imx_uart_writel(sport, c, URTX0); in imx_uart_poll_put_char()
2022 imx_uart_writel(sport, ucr2, UCR2); in imx_uart_rs485_config()
2071 imx_uart_writel(sport, ch, URTX0); in imx_uart_console_putchar()
2104 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_console_write()
2106 imx_uart_writel(sport, old_ucr.ucr2 | UCR2_TXEN, UCR2); in imx_uart_console_write()
2430 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_probe()
2435 imx_uart_writel(sport, ucr2, UCR2); in imx_uart_probe()
2451 imx_uart_writel(sport, uts, imx_uart_uts_reg(sport)); in imx_uart_probe()
2455 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_probe()
2459 imx_uart_writel(sport, ucr2, UCR2); in imx_uart_probe()
2471 imx_uart_writel(sport, ufcr | UFCR_DCEDTE, UFCR); in imx_uart_probe()
2478 imx_uart_writel(sport, in imx_uart_probe()
2486 imx_uart_writel(sport, ufcr & ~UFCR_DCEDTE, UFCR); in imx_uart_probe()
2490 imx_uart_writel(sport, ucr3, UCR3); in imx_uart_probe()
2564 imx_uart_writel(sport, sport->saved_reg[4], UFCR); in imx_uart_restore_context()
2565 imx_uart_writel(sport, sport->saved_reg[5], UESC); in imx_uart_restore_context()
2566 imx_uart_writel(sport, sport->saved_reg[6], UTIM); in imx_uart_restore_context()
2567 imx_uart_writel(sport, sport->saved_reg[7], UBIR); in imx_uart_restore_context()
2568 imx_uart_writel(sport, sport->saved_reg[8], UBMR); in imx_uart_restore_context()
2569 imx_uart_writel(sport, sport->saved_reg[9], IMX21_UTS); in imx_uart_restore_context()
2570 imx_uart_writel(sport, sport->saved_reg[0], UCR1); in imx_uart_restore_context()
2571 imx_uart_writel(sport, sport->saved_reg[1] | UCR2_SRST, UCR2); in imx_uart_restore_context()
2572 imx_uart_writel(sport, sport->saved_reg[2], UCR3); in imx_uart_restore_context()
2573 imx_uart_writel(sport, sport->saved_reg[3], UCR4); in imx_uart_restore_context()
2604 imx_uart_writel(sport, USR1_AWAKE, USR1); in imx_uart_enable_wakeup()
2609 imx_uart_writel(sport, ucr3, UCR3); in imx_uart_enable_wakeup()
2614 imx_uart_writel(sport, USR1_RTSD, USR1); in imx_uart_enable_wakeup()
2619 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_enable_wakeup()