summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/msm_serial.h
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2014-06-30 21:54:01 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-10 23:10:42 (GMT)
commit68252424a7c757ce0a534696e22e1770408bc01d (patch)
tree9258881ca0da38a901e21f432a6e4f1685428c56 /drivers/tty/serial/msm_serial.h
parentdb3a1a43fbb3c0e2f993ce5e7305641075eeb1d6 (diff)
downloadlinux-68252424a7c757ce0a534696e22e1770408bc01d.tar.xz
tty: serial: msm: Support big-endian CPUs
To support big-endian CPUs use the string versions of the io read/write macros on the TX/RX fifos and the non-raw variants of the readl/writel macros throughout. This way we don't byteswap the characters coming from the fifos but we properly deal with the little-endian nature of the serial hardware while controlling it. Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/msm_serial.h')
-rw-r--r--drivers/tty/serial/msm_serial.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/serial/msm_serial.h b/drivers/tty/serial/msm_serial.h
index d98d45e..73d3abe 100644
--- a/drivers/tty/serial/msm_serial.h
+++ b/drivers/tty/serial/msm_serial.h
@@ -126,13 +126,13 @@
static inline
void msm_write(struct uart_port *port, unsigned int val, unsigned int off)
{
- __raw_writel(val, port->membase + off);
+ writel_relaxed(val, port->membase + off);
}
static inline
unsigned int msm_read(struct uart_port *port, unsigned int off)
{
- return __raw_readl(port->membase + off);
+ return readl_relaxed(port->membase + off);
}
/*