mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00: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>
This commit is contained in:
committed by
Jakub Kicinski
parent
9c577f0998
commit
5d88b24c1d
@@ -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