aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/amba-pl011.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2015-11-16 17:40:41 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-12-13 19:59:48 -0800
commite4df9a8053f24b6f37cf11aca793a8deeca88caf (patch)
treeea8477bd66bf938ea354ec2f83092e664ec3ee9a /drivers/tty/serial/amba-pl011.h
parenttty: amba-pl011: add ST register offset table (diff)
downloadlinux-dev-e4df9a8053f24b6f37cf11aca793a8deeca88caf.tar.xz
linux-dev-e4df9a8053f24b6f37cf11aca793a8deeca88caf.zip
tty: amba-pl011: clean up LCR register offsets
As we can detect when the LCR register is split between TX and RX, we don't need three entries in the table to deal with this. Reduce this down to two entries by converting the REG_ST_LCRH_* entries to standard REG_LCRH_* and remove REG_LCRH. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Reviewed-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/amba-pl011.h')
-rw-r--r--drivers/tty/serial/amba-pl011.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/tty/serial/amba-pl011.h b/drivers/tty/serial/amba-pl011.h
index 0c6756dba2fe..411c60e1f9a4 100644
--- a/drivers/tty/serial/amba-pl011.h
+++ b/drivers/tty/serial/amba-pl011.h
@@ -6,11 +6,10 @@ enum {
REG_ST_DMAWM,
REG_ST_TIMEOUT,
REG_FR,
- REG_ST_LCRH_RX,
+ REG_LCRH_RX,
+ REG_LCRH_TX,
REG_IBRD,
REG_FBRD,
- REG_LCRH,
- REG_ST_LCRH_TX,
REG_CR,
REG_IFLS,
REG_IMSC,