mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 05:10:51 +07:00
63a14ce449
Broadcom 50610M parts changed the default definitions of the RGMII mode shadow register. The 5785 needs the RGMII mode selection bits [4:3] cleared. The default value of the remaining bits in this register are zero. Rather than unnecessarily burn an extra bit in the dev_flags member in an attempt to enumerate all possible combinations, this patch take a more course grained approach and labels the option as "clear all bits". Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Reviewed-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
13 lines
540 B
C
13 lines
540 B
C
#define PHY_BCM_FLAGS_MODE_COPPER 0x00000001
|
|
#define PHY_BCM_FLAGS_MODE_1000BX 0x00000002
|
|
#define PHY_BCM_FLAGS_INTF_SGMII 0x00000010
|
|
#define PHY_BCM_FLAGS_INTF_XAUI 0x00000020
|
|
#define PHY_BRCM_WIRESPEED_ENABLE 0x00000100
|
|
#define PHY_BRCM_AUTO_PWRDWN_ENABLE 0x00000200
|
|
#define PHY_BRCM_APD_CLK125_ENABLE 0x00000400
|
|
#define PHY_BRCM_STD_IBND_DISABLE 0x00000800
|
|
#define PHY_BRCM_EXT_IBND_RX_ENABLE 0x00001000
|
|
#define PHY_BRCM_EXT_IBND_TX_ENABLE 0x00002000
|
|
#define PHY_BRCM_CLEAR_RGMII_MODE 0x00004000
|
|
#define PHY_BCM_FLAGS_VALID 0x80000000
|