/* clear all unread data in rx fifo and unsent data in tx fifo  */
static void bcm_uart_flush(struct uart_port *port)
/* clear all unread data in rx fifo and unsent data in tx fifo  */
static void bcm_uart_flush(struct uart_port *port)
{
	unsigned int val;
	val = bcm_uart_readl(port, UART_CTL_REG);
	val |= UART_CTL_RSTRXFIFO_MASK | UART_CTL_RSTTXFIFO_MASK;
	bcm_uart_writel(port, val, UART_CTL_REG);
	(void)bcm_uart_readl(port, UART_FIFO_REG);
}