igc: Add more SKUs for i225 device
authorSasha Neftin <sasha.neftin@intel.com>
Tue, 2 Jul 2019 11:39:55 +0000 (14:39 +0300)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 24 Jul 2019 20:55:09 +0000 (13:55 -0700)
Add support for more SKUs.

Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igc/igc_base.c
drivers/net/ethernet/intel/igc/igc_hw.h
drivers/net/ethernet/intel/igc/igc_main.c

index 46206b3dabfbf1c5e8f0a543d47bc01e9935bc72..db289bcce21d330edd305e4a7b3c6a7c5d60b6ae 100644 (file)
@@ -209,6 +209,9 @@ static s32 igc_get_invariants_base(struct igc_hw *hw)
        switch (hw->device_id) {
        case IGC_DEV_ID_I225_LM:
        case IGC_DEV_ID_I225_V:
+       case IGC_DEV_ID_I225_I:
+       case IGC_DEV_ID_I220_V:
+       case IGC_DEV_ID_I225_K:
                mac->type = igc_i225;
                break;
        default:
index 9a338fbf671c298e84b800edacd0b1e18b3d80a3..abb2d72911ff77836aa8e4d5b869a79cc922af9b 100644 (file)
@@ -18,6 +18,9 @@
 
 #define IGC_DEV_ID_I225_LM                     0x15F2
 #define IGC_DEV_ID_I225_V                      0x15F3
+#define IGC_DEV_ID_I225_I                      0x15F8
+#define IGC_DEV_ID_I220_V                      0x15F7
+#define IGC_DEV_ID_I225_K                      0x3100
 
 #define IGC_FUNC_0                             0
 
index 9ffe71424ecefd2e319c857f0ac1e288cc39963e..e5114bebd30b40aa4c7570ea366a4ff1398f46c4 100644 (file)
@@ -36,6 +36,9 @@ static const struct igc_info *igc_info_tbl[] = {
 static const struct pci_device_id igc_pci_tbl[] = {
        { PCI_VDEVICE(INTEL, IGC_DEV_ID_I225_LM), board_base },
        { PCI_VDEVICE(INTEL, IGC_DEV_ID_I225_V), board_base },
+       { PCI_VDEVICE(INTEL, IGC_DEV_ID_I225_I), board_base },
+       { PCI_VDEVICE(INTEL, IGC_DEV_ID_I220_V), board_base },
+       { PCI_VDEVICE(INTEL, IGC_DEV_ID_I225_K), board_base },
        /* required last entry */
        {0, }
 };