Skip to content

Commit 924c621

Browse files
Yaniv Rosnerdavem330
authored andcommitted
bnx2x: Add 84858 phy support
This adds support to a new copper phy. Signed-off-by: Yaniv Rosner <[email protected]> Signed-off-by: Yuval Mintz <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 4ad79e1 commit 924c621

File tree

3 files changed

+232
-73
lines changed

3 files changed

+232
-73
lines changed

drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,7 @@ struct port_hw_cfg { /* port 0: 0x12c port 1: 0x2bc */
731731
#define PORT_HW_CFG_XGXS_EXT_PHY2_TYPE_BCM8722 0x00000f00
732732
#define PORT_HW_CFG_XGXS_EXT_PHY2_TYPE_BCM54616 0x00001000
733733
#define PORT_HW_CFG_XGXS_EXT_PHY2_TYPE_BCM84834 0x00001100
734+
#define PORT_HW_CFG_XGXS_EXT_PHY2_TYPE_BCM84858 0x00001200
734735
#define PORT_HW_CFG_XGXS_EXT_PHY2_TYPE_FAILURE 0x0000fd00
735736
#define PORT_HW_CFG_XGXS_EXT_PHY2_TYPE_NOT_CONN 0x0000ff00
736737

@@ -788,6 +789,7 @@ struct port_hw_cfg { /* port 0: 0x12c port 1: 0x2bc */
788789
#define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM8722 0x00000f00
789790
#define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM54616 0x00001000
790791
#define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84834 0x00001100
792+
#define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84858 0x00001200
791793
#define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_DIRECT_WC 0x0000fc00
792794
#define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_FAILURE 0x0000fd00
793795
#define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_NOT_CONN 0x0000ff00
@@ -2253,6 +2255,7 @@ struct shmem2_region {
22532255
u32 reserved4; /* Offset 0x150 */
22542256
u32 link_attr_sync[PORT_MAX]; /* Offset 0x154 */
22552257
#define LINK_ATTR_SYNC_KR2_ENABLE 0x00000001
2258+
#define LINK_ATTR_84858 0x00000002
22562259
#define LINK_SFP_EEPROM_COMP_CODE_MASK 0x0000ff00
22572260
#define LINK_SFP_EEPROM_COMP_CODE_SHIFT 8
22582261
#define LINK_SFP_EEPROM_COMP_CODE_SR 0x00001000

0 commit comments

Comments
 (0)