mirror of
https://gitee.com/open-loongarch/linux-6.12.git
synced 2026-10-28 05:57:12 +08:00
net: stmmac: loongson1: use PHY_INTF_SEL_x
Use PHY_INTF_SEL_x definitions for phy_intf_sel bitfield. Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: maoxiaochuan <maoxiaochuan@loongson.cn>
This commit is contained in:
committed by
maoxiaochuan
parent
98f42a04de
commit
d93eeb43ce
@@ -38,8 +38,8 @@
|
||||
#define GMAC_SHUT BIT(6)
|
||||
|
||||
#define PHY_INTF_SELI GENMASK(30, 28)
|
||||
#define PHY_INTF_MII FIELD_PREP(PHY_INTF_SELI, 0)
|
||||
#define PHY_INTF_RMII FIELD_PREP(PHY_INTF_SELI, 4)
|
||||
#define PHY_INTF_MII FIELD_PREP(PHY_INTF_SELI, PHY_INTF_SEL_GMII_MII)
|
||||
#define PHY_INTF_RMII FIELD_PREP(PHY_INTF_SELI, PHY_INTF_SEL_RMII)
|
||||
|
||||
struct ls1x_dwmac {
|
||||
struct plat_stmmacenet_data *plat_dat;
|
||||
|
||||
Reference in New Issue
Block a user