]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[bnxt] Add support for additional chip IDs 1128/head
authorJoseph Wong <joseph.wong@broadcom.com>
Fri, 19 Jan 2024 05:53:44 +0000 (21:53 -0800)
committerMichael Brown <mcb30@ipxe.org>
Fri, 19 Jan 2024 22:08:48 +0000 (22:08 +0000)
Add additional chip IDs that can be recognized as part of the thor
family.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/bnxt/bnxt.c
src/drivers/net/bnxt/bnxt.h

index 605aea3284f6e648a8a489d56c3fcc8c1aebab2c..5dd217971996d98e29f9468aedfcddfce2669cd3 100644 (file)
@@ -722,7 +722,9 @@ static int bnxt_hwrm_ver_get ( struct bnxt *bp )
                 ( resp->dev_caps_cfg & SHORT_CMD_REQUIRED ) )
                FLAG_SET ( bp->flags, BNXT_FLAG_HWRM_SHORT_CMD_SUPP );
        bp->hwrm_max_ext_req_len = resp->max_ext_req_len;
-       if ( bp->chip_num == CHIP_NUM_57500 )
+       if ( ( bp->chip_num == CHIP_NUM_57508 ) ||
+            ( bp->chip_num == CHIP_NUM_57504 ) ||
+            ( bp->chip_num == CHIP_NUM_57502 ) )
                bp->thor = 1;
        dbg_fw_ver ( resp, bp->hwrm_cmd_timeout );
        return STATUS_SUCCESS;
index 2cbaec5e55cb13875890cfe7712a8464648bc33f..cf2dea8bc7e20d70613a614a17b53290a82fdf40 100644 (file)
@@ -868,4 +868,6 @@ struct bnxt {
        FUNC_VF_CFG_REQ_ENABLES_ASYNC_EVENT_CR | \
        FUNC_VF_CFG_REQ_ENABLES_DFLT_MAC_ADDR)
 
-#define CHIP_NUM_57500       0x1750
+#define CHIP_NUM_57508       0x1750
+#define CHIP_NUM_57504       0x1751
+#define CHIP_NUM_57502       0x1752