summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/amba-pl011.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2015-11-16 20:40:26 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-12-14 06:59:48 +0300
commitdebb7f64f9bab5cd0d06b7ce1695f15c5c9304d0 (patch)
tree01684112b96d40680cdbe337606e3f2831dafcdd /drivers/tty/serial/amba-pl011.h
parentb985e9e368f0db4fee940ad86197f413779d4b63 (diff)
downloadlinux-debb7f64f9bab5cd0d06b7ce1695f15c5c9304d0.tar.xz
tty: amba-pl011: add register lookup table
Add a register lookup table, which allows the register offsets to be adjusted on a per-port basis. 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.h53
1 files changed, 28 insertions, 25 deletions
diff --git a/drivers/tty/serial/amba-pl011.h b/drivers/tty/serial/amba-pl011.h
index b7eb1bc2fab9..0c6756dba2fe 100644
--- a/drivers/tty/serial/amba-pl011.h
+++ b/drivers/tty/serial/amba-pl011.h
@@ -2,31 +2,34 @@
#define AMBA_PL011_H
enum {
- REG_DR = UART01x_DR,
- REG_ST_DMAWM = ST_UART011_DMAWM,
- REG_ST_TIMEOUT = ST_UART011_TIMEOUT,
- REG_FR = UART01x_FR,
- REG_ST_LCRH_RX = ST_UART011_LCRH_RX,
- REG_IBRD = UART011_IBRD,
- REG_FBRD = UART011_FBRD,
- REG_LCRH = UART011_LCRH,
- REG_ST_LCRH_TX = ST_UART011_LCRH_TX,
- REG_CR = UART011_CR,
- REG_IFLS = UART011_IFLS,
- REG_IMSC = UART011_IMSC,
- REG_RIS = UART011_RIS,
- REG_MIS = UART011_MIS,
- REG_ICR = UART011_ICR,
- REG_DMACR = UART011_DMACR,
- REG_ST_XFCR = ST_UART011_XFCR,
- REG_ST_XON1 = ST_UART011_XON1,
- REG_ST_XON2 = ST_UART011_XON2,
- REG_ST_XOFF1 = ST_UART011_XOFF1,
- REG_ST_XOFF2 = ST_UART011_XOFF2,
- REG_ST_ITCR = ST_UART011_ITCR,
- REG_ST_ITIP = ST_UART011_ITIP,
- REG_ST_ABCR = ST_UART011_ABCR,
- REG_ST_ABIMSC = ST_UART011_ABIMSC,
+ REG_DR,
+ REG_ST_DMAWM,
+ REG_ST_TIMEOUT,
+ REG_FR,
+ REG_ST_LCRH_RX,
+ REG_IBRD,
+ REG_FBRD,
+ REG_LCRH,
+ REG_ST_LCRH_TX,
+ REG_CR,
+ REG_IFLS,
+ REG_IMSC,
+ REG_RIS,
+ REG_MIS,
+ REG_ICR,
+ REG_DMACR,
+ REG_ST_XFCR,
+ REG_ST_XON1,
+ REG_ST_XON2,
+ REG_ST_XOFF1,
+ REG_ST_XOFF2,
+ REG_ST_ITCR,
+ REG_ST_ITIP,
+ REG_ST_ABCR,
+ REG_ST_ABIMSC,
+
+ /* The size of the array - must be last */
+ REG_ARRAY_SIZE,
};
#endif