]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
serial/serial_arc: switch from {read|write}l to {read|write}b accessors
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>
Sat, 8 Feb 2014 06:10:02 +0000 (10:10 +0400)
committerTom Rini <trini@ti.com>
Fri, 21 Feb 2014 12:54:05 +0000 (07:54 -0500)
commit94b5400e76f6a5100e2af88de274b0a6881bf94d
tree47df35ebafc74a344237b143f9db82e964824ea0
parent1d568c7666e81fa920de38a3c83895764ea8cf0f
serial/serial_arc: switch from {read|write}l to {read|write}b accessors

This is required for proper functionality on big-endian targets.
Memory-mapped registres of ARC UART are not 32-bit words but 8-bit bytes
so on little-endian target either acessor (_l or _b) works fine.
On big-endian only _b accessors works as expected.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Vineet Gupta <vgupta@synopsys.com>
Cc: Noam Camus <noamc@ezchip.com>
Cc: Tom Rini <trini@ti.com>
drivers/serial/serial_arc.c