net: stmmac: dwmac-loongson: Add phy_interface for Loongson GMAC
authorYanteng Si <siyanteng@loongson.cn>
Wed, 7 Aug 2024 13:48:03 +0000 (21:48 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 13 Aug 2024 07:48:00 +0000 (09:48 +0200)
commit849dc7341d1f48dacdeadb86eb09f6d7777b1e5e
tree721b6785713d8720ff75e46bc02eaae6d672d917
parentc70f3163681381c15686bdd2fe56bf4af9b8aaaa
net: stmmac: dwmac-loongson: Add phy_interface for Loongson GMAC

PHY-interface of the Loongson GMAC device is RGMII with no internal
delays added to the data lines signal. So to comply with that let's
pre-initialize the platform-data field with the respective enum
constant.

Signed-off-by: Feiyang Chen <chenfeiyang@loongson.cn>
Signed-off-by: Yinggang Gu <guyinggang@loongson.cn>
Reviewed-by: Serge Semin <fancer.lancer@gmail.com>
Acked-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Yanteng Si <siyanteng@loongson.cn>
Tested-by: Serge Semin <fancer.lancer@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c