bnxt_en: Support all variants of the 5750X chip family.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 29 Jul 2019 10:10:32 +0000 (06:10 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Jul 2019 21:19:09 +0000 (14:19 -0700)
Define the 57508, 57504, and 57502 chip IDs that are all part of the
BNXT_CHIP_P5 family of chips.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.h

index c61af57596c4b3199baa56d863a60f3bec6d5fe4..e3262089b751d58257fa8d80cb54c67a5091e785 100644 (file)
@@ -1362,7 +1362,9 @@ struct bnxt {
 
 #define CHIP_NUM_5745X         0xd730
 
-#define CHIP_NUM_57500         0x1750
+#define CHIP_NUM_57508         0x1750
+#define CHIP_NUM_57504         0x1751
+#define CHIP_NUM_57502         0x1752
 
 #define CHIP_NUM_58802         0xd802
 #define CHIP_NUM_58804         0xd804
@@ -1464,7 +1466,9 @@ struct bnxt {
 
 /* Chip class phase 5 */
 #define BNXT_CHIP_P5(bp)                       \
-       ((bp)->chip_num == CHIP_NUM_57500)
+       ((bp)->chip_num == CHIP_NUM_57508 ||    \
+        (bp)->chip_num == CHIP_NUM_57504 ||    \
+        (bp)->chip_num == CHIP_NUM_57502)
 
 /* Chip class phase 4.x */
 #define BNXT_CHIP_P4(bp)                       \