b53: fix mmap register read/writes > 32 bit
authorJonas Gorski <jogo@openwrt.org>
Fri, 27 Feb 2015 17:40:17 +0000 (17:40 +0000)
committerJonas Gorski <jogo@openwrt.org>
Fri, 27 Feb 2015 17:40:17 +0000 (17:40 +0000)
commit7c1da432d1feb0ec30088acb187bd9bc2b5606e2
treea5593f9bedc20d4b71279f3e1babbba599f83e16
parentc760216ff78345bb15134e61ff6053b501271f7b
b53: fix mmap register read/writes > 32 bit

For bcm63xx integrated switches, broadcom changed the data endianess
to match the system endianess. But this only applies to within one word,
which causes 48/64 bit values to be still split into their "litte endian"
groups.

E.g. 48 bit values (with 5 being the most significant byte) aligned

0x00 ..01  or   0123
0x04 2345       45..

will become

0x00 ..10 resp. 3210
0x04 5432       54..

Likewise for 64 bit values.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 44568
target/linux/generic/files/drivers/net/phy/b53/b53_mmap.c