diff options
author | Esben Haabendal <esben@geanix.com> | 2019-04-30 10:17:51 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-01 21:33:30 +0300 |
commit | a3246dc41aa3c9d799478ccc8dac5d19c509a923 (patch) | |
tree | f6020f1def70bab7247d33f9d3ed034b042da50b /include/linux | |
parent | d84aec42151b489c4ca6e342ff5233c4789f5b90 (diff) | |
download | linux-a3246dc41aa3c9d799478ccc8dac5d19c509a923.tar.xz |
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>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/platform_data/xilinx-ll-temac.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/platform_data/xilinx-ll-temac.h b/include/linux/platform_data/xilinx-ll-temac.h index 82e2f80648b0..af87927abab3 100644 --- a/include/linux/platform_data/xilinx-ll-temac.h +++ b/include/linux/platform_data/xilinx-ll-temac.h @@ -14,6 +14,8 @@ struct ll_temac_platform_data { unsigned long long mdio_bus_id; /* Unique id for MDIO bus */ int phy_addr; /* Address of the PHY to connect to */ phy_interface_t phy_interface; /* PHY interface mode */ + bool reg_little_endian; /* Little endian TEMAC register access */ + bool dma_little_endian; /* Little endian DMA register access */ }; #endif /* __LINUX_XILINX_LL_TEMAC_H */ |