net: ll_temac: Add support for non-native register endianness
authorEsben Haabendal <esben@geanix.com>
Tue, 30 Apr 2019 07:17:51 +0000 (09:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 May 2019 18:33:30 +0000 (14:33 -0400)
commita3246dc41aa3c9d799478ccc8dac5d19c509a923
treef6020f1def70bab7247d33f9d3ed034b042da50b
parentd84aec42151b489c4ca6e342ff5233c4789f5b90
net: ll_temac: Add support for non-native register endianness

Replace the powerpc specific MMIO register access functions with the
generic big-endian mmio access functions, and add support for
little-endian access depending on configuration.

Big-endian access is maintained as the default, but little-endian can
be configured in device-tree binding or in platform data.

The temac_ior()/temac_iow() functions are replaced with macro wrappers
to avoid modifying existing code more than necessary.

Signed-off-by: Esben Haabendal <esben@geanix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/ll_temac.h
drivers/net/ethernet/xilinx/ll_temac_main.c
include/linux/platform_data/xilinx-ll-temac.h