net: dwc_eth_qos: add support of stm32mp2 platform
Add compatible "st,stm32mp25-dwmac" to manage STM32MP2 boards Signed-off-by: Christophe Roullier <christophe.roullier@foss.st.com> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com> Reviewed-by: Marek Vasut <marex@denx.de> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
This commit is contained in:

committed by
Patrice Chotard

parent
1fa9718047
commit
20afca89ed
@@ -1599,6 +1599,10 @@ static const struct udevice_id eqos_ids[] = {
|
|||||||
.compatible = "st,stm32mp1-dwmac",
|
.compatible = "st,stm32mp1-dwmac",
|
||||||
.data = (ulong)&eqos_stm32mp15_config
|
.data = (ulong)&eqos_stm32mp15_config
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
.compatible = "st,stm32mp25-dwmac",
|
||||||
|
.data = (ulong)&eqos_stm32mp25_config
|
||||||
|
},
|
||||||
#endif
|
#endif
|
||||||
#if IS_ENABLED(CONFIG_DWC_ETH_QOS_IMX)
|
#if IS_ENABLED(CONFIG_DWC_ETH_QOS_IMX)
|
||||||
{
|
{
|
||||||
|
@@ -301,5 +301,6 @@ extern struct eqos_config eqos_rockchip_config;
|
|||||||
extern struct eqos_config eqos_qcom_config;
|
extern struct eqos_config eqos_qcom_config;
|
||||||
extern struct eqos_config eqos_stm32mp13_config;
|
extern struct eqos_config eqos_stm32mp13_config;
|
||||||
extern struct eqos_config eqos_stm32mp15_config;
|
extern struct eqos_config eqos_stm32mp15_config;
|
||||||
|
extern struct eqos_config eqos_stm32mp25_config;
|
||||||
extern struct eqos_config eqos_jh7110_config;
|
extern struct eqos_config eqos_jh7110_config;
|
||||||
extern struct eqos_config eqos_adi_config;
|
extern struct eqos_config eqos_adi_config;
|
||||||
|
@@ -350,3 +350,14 @@ struct eqos_config __maybe_unused eqos_stm32mp15_config = {
|
|||||||
.interface = dev_read_phy_mode,
|
.interface = dev_read_phy_mode,
|
||||||
.ops = &eqos_stm32_ops
|
.ops = &eqos_stm32_ops
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct eqos_config __maybe_unused eqos_stm32mp25_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_64,
|
||||||
|
.interface = dev_read_phy_mode,
|
||||||
|
.ops = &eqos_stm32_ops
|
||||||
|
};
|
||||||
|
Reference in New Issue
Block a user