diff options
| author | David S. Miller <davem@davemloft.net> | 2019-05-01 14:33:31 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2019-05-01 14:33:31 -0400 |
| commit | 2a369ae003881612ef5c2f03adcfc0ddc4ea817e (patch) | |
| tree | b8b355013ec19637c6f26d2686e6975b877c5942 /include/linux | |
| parent | ac97a359b72d340e1c04083451b1c6d2f41eb317 (diff) | |
| parent | 73f7375d3ed6ad372f1e9404007a0c866063d773 (diff) | |
Merge branch 'net-ll_temac-x86_64-support'
Esben Haabendal says:
====================
net: ll_temac: x86_64 support
This patch series adds support for use of ll_temac driver with
platform_data configuration and fixes endianess and 64-bit problems so
that it can be used on x86_64 platform.
A few bugfixes are also included.
Changes since v2:
- Fixed lp->indirect_mutex initialization regression for OF
platforms introduced in v2
Changes since v1:
- Make indirect_mutex specification mandatory when using platform_data
- Move header to include/linux/platform_data
- Enable COMPILE_TEST for XILINX_LL_TEMAC
- Rebased to v5.1-rc7
====================
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 | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/include/linux/platform_data/xilinx-ll-temac.h b/include/linux/platform_data/xilinx-ll-temac.h new file mode 100644 index 000000000000..368530f98176 --- /dev/null +++ b/include/linux/platform_data/xilinx-ll-temac.h | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
| 2 | #ifndef __LINUX_XILINX_LL_TEMAC_H | ||
| 3 | #define __LINUX_XILINX_LL_TEMAC_H | ||
| 4 | |||
| 5 | #include <linux/if_ether.h> | ||
| 6 | #include <linux/phy.h> | ||
| 7 | |||
| 8 | struct ll_temac_platform_data { | ||
| 9 | bool txcsum; /* Enable/disable TX checksum */ | ||
| 10 | bool rxcsum; /* Enable/disable RX checksum */ | ||
| 11 | u8 mac_addr[ETH_ALEN]; /* MAC address (6 bytes) */ | ||
| 12 | /* Clock frequency for input to MDIO clock generator */ | ||
| 13 | u32 mdio_clk_freq; | ||
| 14 | unsigned long long mdio_bus_id; /* Unique id for MDIO bus */ | ||
| 15 | int phy_addr; /* Address of the PHY to connect to */ | ||
| 16 | phy_interface_t phy_interface; /* PHY interface mode */ | ||
| 17 | bool reg_little_endian; /* Little endian TEMAC register access */ | ||
| 18 | bool dma_little_endian; /* Little endian DMA register access */ | ||
| 19 | /* Pre-initialized mutex to use for synchronizing indirect | ||
| 20 | * register access. When using both interfaces of a single | ||
| 21 | * TEMAC IP block, the same mutex should be passed here, as | ||
| 22 | * they share the same DCR bus bridge. | ||
| 23 | */ | ||
| 24 | struct mutex *indirect_mutex; | ||
| 25 | /* DMA channel control setup */ | ||
| 26 | u8 tx_irq_timeout; /* TX Interrupt Delay Time-out */ | ||
| 27 | u8 tx_irq_count; /* TX Interrupt Coalescing Threshold Count */ | ||
| 28 | u8 rx_irq_timeout; /* RX Interrupt Delay Time-out */ | ||
| 29 | u8 rx_irq_count; /* RX Interrupt Coalescing Threshold Count */ | ||
| 30 | }; | ||
| 31 | |||
| 32 | #endif /* __LINUX_XILINX_LL_TEMAC_H */ | ||
