]> Pileus Git - ~andy/linux/blobdiff - include/asm-blackfin/mach-bf548/bfin_serial_5xx.h
[Blackfin] serial driver: fix bug - cache the bits of the LSR on systems where the...
[~andy/linux] / include / asm-blackfin / mach-bf548 / bfin_serial_5xx.h
index 3770aa38ee9f9f6b039316ca1714997e431933d3..8733d47747e561af71d8baecc54325fc9d7befd1 100644 (file)
@@ -32,6 +32,7 @@
 #define UART_PUT_DLH(uart,v)    bfin_write16(((uart)->port.membase + OFFSET_DLH),v)
 #define UART_PUT_LSR(uart,v)   bfin_write16(((uart)->port.membase + OFFSET_LSR),v)
 #define UART_PUT_LCR(uart,v)    bfin_write16(((uart)->port.membase + OFFSET_LCR),v)
+#define UART_CLEAR_LSR(uart)    bfin_write16(((uart)->port.membase + OFFSET_LSR), -1)
 #define UART_PUT_GCTL(uart,v)   bfin_write16(((uart)->port.membase + OFFSET_GCTL),v)
 
 #if defined(CONFIG_BFIN_UART0_CTSRTS) || defined(CONFIG_BFIN_UART1_CTSRTS)