/* serial core request to check if uart tx fifo is empty  */
static unsigned int bcm_uart_tx_empty(struct uart_port *port)
/* serial core request to check if uart tx fifo is empty  */
static unsigned int bcm_uart_tx_empty(struct uart_port *port)
{
	unsigned int val;
	val = bcm_uart_readl(port, UART_IR_REG);
	return (val & UART_IR_STAT(UART_IR_TXEMPTY)) ? 1 : 0;
}