summaryrefslogtreecommitdiff
path: root/include/asm-arm/hardware
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2005-11-19 11:10:35 (GMT)
committerRussell King <rmk+kernel@arm.linux.org.uk>2005-11-19 11:10:35 (GMT)
commitb63d4f0fb80918ab37b6c0ee1adcd49e05c9994c (patch)
tree33af84cc60a0ad29c01632f24cba42eeb498be1a /include/asm-arm/hardware
parent811803c5572b296e0031e0099203de90d77c7bcf (diff)
downloadlinux-b63d4f0fb80918ab37b6c0ee1adcd49e05c9994c.tar.xz
[SERIAL] Fix status reporting with PL011 serial driver
The receiver status register reports latched error conditions, which must be cleared by writing to it. However, the data register reports unlatched conditions which are associated with the current character. Use the data register to interpret error status rather than the RSR. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm/hardware')
-rw-r--r--include/asm-arm/hardware/amba_serial.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-arm/hardware/amba_serial.h b/include/asm-arm/hardware/amba_serial.h
index 71770aa..dc726ff 100644
--- a/include/asm-arm/hardware/amba_serial.h
+++ b/include/asm-arm/hardware/amba_serial.h
@@ -50,6 +50,11 @@
#define UART011_ICR 0x44 /* Interrupt clear register. */
#define UART011_DMACR 0x48 /* DMA control register. */
+#define UART011_DR_OE (1 << 11)
+#define UART011_DR_BE (1 << 10)
+#define UART011_DR_PE (1 << 9)
+#define UART011_DR_FE (1 << 8)
+
#define UART01x_RSR_OE 0x08
#define UART01x_RSR_BE 0x04
#define UART01x_RSR_PE 0x02