Lines Matching +full:run +full:- +full:control
2 * Support for Serial I/O using STMicroelectronics' on-chip ASC.
7 * SPDX-License-Identifier: GPL-2.0
19 #define RUN 0x00000080 macro
32 u32 control; member
54 * ASCBaudRate = ----------------
59 * ASCBaudRate = ------------------------
71 struct sti_asc_uart *const uart = priv->regs; in sti_asc_pending()
74 status = readl(&uart->status); in sti_asc_pending()
109 val = readl(&uart->control); in _sti_asc_serial_setbrg()
110 writel(val & ~RUN, &uart->control); in _sti_asc_serial_setbrg()
113 writel(t, &uart->baudrate); in _sti_asc_serial_setbrg()
115 writel(1, &uart->txreset); in _sti_asc_serial_setbrg()
116 writel(1, &uart->rxreset); in _sti_asc_serial_setbrg()
123 writel(val, &uart->control); in _sti_asc_serial_setbrg()
128 /* called to adjust baud-rate */
132 struct sti_asc_uart *const uart = priv->regs; in sti_asc_serial_setbrg()
141 struct sti_asc_uart *const uart = priv->regs; in sti_asc_serial_getc()
145 return -EAGAIN; in sti_asc_serial_getc()
147 return readl(&uart->rxbuf); in sti_asc_serial_getc()
154 struct sti_asc_uart *const uart = priv->regs; in sti_asc_serial_putc()
158 return -EAGAIN; in sti_asc_serial_putc()
161 writel(c, &uart->txbuf); in sti_asc_serial_putc()
175 return -EINVAL; in sti_asc_serial_probe()
177 priv->regs = (struct sti_asc_uart *)base; in sti_asc_serial_probe()
178 sti_asc_serial_setbrg(dev, gd->baudrate); in sti_asc_serial_probe()
181 * build up the value to be written to CONTROL in sti_asc_serial_probe()
184 val = RXENABLE | RUN | MODE_8BIT | STOP_1BIT | PARITYODD; in sti_asc_serial_probe()
185 writel(val, &priv->regs->control); in sti_asc_serial_probe()