summaryrefslogtreecommitdiff
path: root/drivers/net/dwc_eth_qos_stm32.c
diff options
context:
space:
mode:
authorChristophe Roullier <christophe.roullier@st.com>2024-03-26 13:07:31 +0100
committerPatrice Chotard <patrice.chotard@foss.st.com>2024-04-19 11:30:51 +0200
commit882b2287a654cb1c86bde24175385220ffeb0cc8 (patch)
tree6db44a436fba150ea0c1f6962547d6605c7362a7 /drivers/net/dwc_eth_qos_stm32.c
parenta440d19c6c91938190b329be65e0986e01007304 (diff)
net: dwc_eth_qos: Add support of STM32MP13xx platform
Add compatible "st,stm32mp13-dwmac" to manage STM32MP13 boards. Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com> Signed-off-by: Christophe Roullier <christophe.roullier@st.com> Signed-off-by: Marek Vasut <marex@denx.de> # Rebase, reshuffle, squash code Reviewed-by: Christophe ROULLIER <christophe.roullier@foss.st.com>
Diffstat (limited to 'drivers/net/dwc_eth_qos_stm32.c')
-rw-r--r--drivers/net/dwc_eth_qos_stm32.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/dwc_eth_qos_stm32.c b/drivers/net/dwc_eth_qos_stm32.c
index 5a20fe5bea2..435473f99a6 100644
--- a/drivers/net/dwc_eth_qos_stm32.c
+++ b/drivers/net/dwc_eth_qos_stm32.c
@@ -279,6 +279,17 @@ static struct eqos_ops eqos_stm32_ops = {
.eqos_get_tick_clk_rate = eqos_get_tick_clk_rate_stm32
};
+struct eqos_config __maybe_unused eqos_stm32mp13_config = {
+ .reg_access_always_ok = false,
+ .mdio_wait = 10000,
+ .swr_wait = 50,
+ .config_mac = EQOS_MAC_RXQ_CTRL0_RXQ0EN_ENABLED_DCB,
+ .config_mac_mdio = EQOS_MAC_MDIO_ADDRESS_CR_250_300,
+ .axi_bus_width = EQOS_AXI_WIDTH_32,
+ .interface = dev_read_phy_mode,
+ .ops = &eqos_stm32_ops
+};
+
struct eqos_config __maybe_unused eqos_stm32mp15_config = {
.reg_access_always_ok = false,
.mdio_wait = 10000,