]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
DM9000:Add a byte swap macro for dm9000 io operation.
authorJason Jin <Jason.jin@freescale.com>
Thu, 25 Aug 2011 07:46:43 +0000 (15:46 +0800)
committerWolfgang Denk <wd@denx.de>
Mon, 17 Oct 2011 20:25:33 +0000 (22:25 +0200)
commit5c1d082b145527ac7c10bfe794cd72643e045d8d
treed06f32a4c1cef8ba07fe5c7285747888206788e9
parente5afdf584c1e217b19579ba88e415ff8eb657fd8
DM9000:Add a byte swap macro for dm9000 io operation.

commit a45dde2293c816138e53c26eca6fd0322583f9a6 changed the dm9000
direct register access to standard IO. This should work
on the ColdFire platform as there are corresponding macros for
the LE devices. But the hardware settings on some ColdFire boards had
swapped the byte order which make the original macros such as out_le16
cannot work. To avoid changing the common io access code on ColdFire
platform, the DM9000_BYTE_SWAPPED define was added to make the dm9000 use
__raw* IO access on some ColdFire boards.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
drivers/net/dm9000x.c