diff options
author | Joseph Wong <joseph.wong@broadcom.com> | 2024-01-18 21:53:44 -0800 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2024-01-19 22:08:48 +0000 |
commit | de8a0821c7bc737e724fa3dfb6d89dc36f591d7a (patch) | |
tree | 4d0aa94eb8f66530799d720f517082f03d7d233d /src/drivers/net | |
parent | 2eea04c02ca902f8068b6ad0dd522e6e9a81691c (diff) | |
download | ipxe-de8a0821c7bc737e724fa3dfb6d89dc36f591d7a.zip ipxe-de8a0821c7bc737e724fa3dfb6d89dc36f591d7a.tar.gz ipxe-de8a0821c7bc737e724fa3dfb6d89dc36f591d7a.tar.bz2 |
[bnxt] Add support for additional chip IDs
Add additional chip IDs that can be recognized as part of the thor
family.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/net')
-rw-r--r-- | src/drivers/net/bnxt/bnxt.c | 4 | ||||
-rw-r--r-- | src/drivers/net/bnxt/bnxt.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/drivers/net/bnxt/bnxt.c b/src/drivers/net/bnxt/bnxt.c index 605aea3..5dd2179 100644 --- a/src/drivers/net/bnxt/bnxt.c +++ b/src/drivers/net/bnxt/bnxt.c @@ -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; diff --git a/src/drivers/net/bnxt/bnxt.h b/src/drivers/net/bnxt/bnxt.h index 2cbaec5..cf2dea8 100644 --- a/src/drivers/net/bnxt/bnxt.h +++ b/src/drivers/net/bnxt/bnxt.h @@ -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 |