aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/dwc_eth_qos.h
Commit message (Collapse)AuthorAgeFilesLines
* net: dwc_eth_qos: Add glue driver for GMAC on Rockchip RK3568Jonas Karlman2023-10-071-0/+2
| | | | | | | | | | | | Add a new glue driver for Rockchip SoCs, i.e RK3568, with a GMAC based on Synopsys DWC Ethernet QoS IP. rk_gmac_ops was ported from linux commit: 3bb3d6b1c195 ("net: stmmac: Add RK3566/RK3568 SoC support") Signed-off-by: Jonas Karlman <jonas@kwiboo.se> Reviewed-by: Kever Yang <kever.yang@rock-chips.com> Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
* net: dwc_eth_qos: Drop unused rx_pkt from eqos_privJonas Karlman2023-10-071-1/+0
| | | | | | | | rx_pkt is allocated and not used for anything, remove it. Signed-off-by: Jonas Karlman <jonas@kwiboo.se> Reviewed-by: Kever Yang <kever.yang@rock-chips.com> Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
* net: dwc_eth_qos: Add StarFive ethernet driver glue layerYanhong Wang2023-07-121-0/+1
| | | | | | | | The StarFive ETHQOS hardware has its own clock and reset,so add a corresponding glue driver to configure them. Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com> Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
* net: dwc_eth_qos: Add Qcom ethernet driver glue layerSumit Garg2023-02-101-0/+3
| | | | | | | | | | | | | The Qualcom ETHQOS hardware supports an RGMII macro which needs to be configured according to following link speeds: - SPEED_1000 - SPEED_100 - SPEED_10 So add a corresponding glue driver to configure RGMII macro. Signed-off-by: Sumit Garg <sumit.garg@linaro.org> Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
* net: dwc_eth_qos: Allow platform to override tx/rx_fifo_szSumit Garg2023-02-101-0/+1
| | | | | | | | | | The GMAC controller on QCS404 SoC (support added by upcoming patch) fails to work with maximum tx/rx_fifo_sz supported by the hardware (16K). So allow platforms to override FIFO size using corresponding DT node properties. Signed-off-by: Sumit Garg <sumit.garg@linaro.org> Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
* net: dwc_eth_qos: Add support for bulk RX descriptor cleaningMarek Vasut2022-11-281-0/+2
| | | | | | | | | | | | | | | | | | | | | Add new desc_per_cacheline property which lets a platform run RX descriptor cleanup after every power-of-2 - 1 received packets instead of every packet. This is useful on platforms where (axi_bus_width EQOS_AXI_WIDTH_n * DMA DSL inter-descriptor word skip count + DMA descriptor size) is less than cache line size, which necessitates packing multiple DMA descriptors into single cache line. In case of TX descriptors, this is not a problem, since the driver always does synchronous TX, i.e. the TX descriptor is always written, flushed and polled for completion in eqos_send(). In case of RX descriptors, it is necessary to update their status in bulk, i.e. after the entire cache line worth of RX descriptors has been used up to receive data. Signed-off-by: Marek Vasut <marex@denx.de> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com> Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
* net: dwc_eth_qos: Split TX and RX DMA ringsMarek Vasut2022-11-281-1/+2
| | | | | | | | | Separate TX and RX DMA rings to make their handling slightly clearer. This is a preparatory patch for bulk RX descriptor flushing. Signed-off-by: Marek Vasut <marex@denx.de> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com> Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
* net: dwc_eth_qos: introduce eqos hook eqos_get_enetaddrPeng Fan2022-07-261-0/+1
| | | | | | | i.MX has specific hook to get MAC address, so introduce a hook and move i.MX code to its own driver Signed-off-by: Peng Fan <peng.fan@nxp.com>
* net: eqos: add function to get phy node and addressYe Li2022-07-261-0/+1
| | | | | | | | | | Since new atheros PHY driver needs to access its PHY node through phy device, we have to assign the phy node in ethernet controller driver. Otherwise the PHY driver will fail to get some nodes and properties. Signed-off-by: Ye Li <ye.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
* net: dwc_eth_qos: move i.MX code outPeng Fan2022-07-261-0/+2
| | | | | | | | Move i.MX code to a standalone file to make it easy for adding new platform support Reviewed-by: Ramon Fried <rfried.dev@gmail.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
* net: dwc_eth_qos: public some functionsPeng Fan2022-07-261-0/+280
Move macros and structures to header file and make some functions public, so that could used by other files, this is to prepare split platform specific config to one file. Signed-off-by: Peng Fan <peng.fan@nxp.com>