net/fsl: modify xgmac_mdio for little endian SoCs
authorShaohui Xie <Shaohui.Xie@freescale.com>
Mon, 16 Mar 2015 10:56:29 +0000 (18:56 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Mar 2015 20:27:51 +0000 (16:27 -0400)
commit73ee5442978b2dd3159e0170b09ba907a197a62d
tree106c0c2d42807aea4d6847c4fdd4de80b08894b7
parent26eee0210ad72a29eb4a70b34320bda266f91a0d
net/fsl: modify xgmac_mdio for little endian SoCs

MDIO controller on little endian Socs, e.g. ls2085a is similar to the
controller on big endian Socs, but the MDIO access is little endian,
we use I/O accessor function to handle endianness, so the driver can
run on little endian Socs. A property "little-endian" is used
in DTS to indicate the MDIO is little endian, if driver probes the
property, driver will access MDIO in little endian, otherwise, driver
works in big endian by default.

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/xgmac_mdio.c
This page took 0.024509 seconds and 5 git commands to generate.