ARM: debug: fix big endian operation for 8250 word mode
authorBen Dooks <ben.dooks@codethink.co.uk>
Wed, 25 Mar 2015 11:27:46 +0000 (11:27 +0000)
committerDinh Nguyen <dinguyen@opensource.altera.com>
Mon, 11 May 2015 18:59:23 +0000 (13:59 -0500)
commit6ef4e47926b2008c6a1736fe4e3b2817e3b95463
tree1c4f816d531cd9d844ee1ae95ef346dd7e4c0f39
parent5ebe6afaf0057ac3eaeb98defd5456894b446d22
ARM: debug: fix big endian operation for 8250 word mode

If the 8250 debug code is used in word mode on an big endian
host then the writes need to be change into little endian for
the bus.

Note, we have to re-convert the value back as the debug code
will inspect the value after writing it to see if a newline
has been written.

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
arch/arm/include/debug/8250.S