net/e1000/base: add ADL device ID
authorGuinan Sun <guinanx.sun@intel.com>
Mon, 6 Jul 2020 08:12:18 +0000 (08:12 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 7 Jul 2020 21:38:27 +0000 (23:38 +0200)
Add new device ID for Alder Lake brand.

Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
Signed-off-by: Guinan Sun <guinanx.sun@intel.com>
Reviewed-by: Wei Zhao <wei.zhao1@intel.com>
drivers/net/e1000/base/e1000_api.c
drivers/net/e1000/base/e1000_hw.h

index a9a4493..352e319 100644 (file)
@@ -290,6 +290,12 @@ s32 e1000_set_mac_type(struct e1000_hw *hw)
        case E1000_DEV_ID_PCH_ICP_I219_V9:
                mac->type = e1000_pch_cnp;
                break;
+       case E1000_DEV_ID_PCH_ADL_I219_LM16:
+       case E1000_DEV_ID_PCH_ADL_I219_V16:
+       case E1000_DEV_ID_PCH_ADL_I219_LM17:
+       case E1000_DEV_ID_PCH_ADL_I219_V17:
+               mac->type = e1000_pch_adp;
+               break;
        case E1000_DEV_ID_82575EB_COPPER:
        case E1000_DEV_ID_82575EB_FIBER_SERDES:
        case E1000_DEV_ID_82575GB_QUAD_COPPER:
@@ -443,6 +449,7 @@ s32 e1000_setup_init_funcs(struct e1000_hw *hw, bool init_device)
        case e1000_pch_lpt:
        case e1000_pch_spt:
        case e1000_pch_cnp:
+       case e1000_pch_adp:
                e1000_init_function_pointers_ich8lan(hw);
                break;
        case e1000_82575:
index 11acec2..85d09fe 100644 (file)
@@ -124,6 +124,10 @@ struct e1000_hw;
 #define E1000_DEV_ID_PCH_ICP_I219_V8           0x15E0
 #define E1000_DEV_ID_PCH_ICP_I219_LM9          0x15E1
 #define E1000_DEV_ID_PCH_ICP_I219_V9           0x15E2
+#define E1000_DEV_ID_PCH_ADL_I219_LM16         0x1A1E
+#define E1000_DEV_ID_PCH_ADL_I219_V16          0x1A1F
+#define E1000_DEV_ID_PCH_ADL_I219_LM17         0x1A1C
+#define E1000_DEV_ID_PCH_ADL_I219_V17          0x1A1D
 #define E1000_DEV_ID_82576                     0x10C9
 #define E1000_DEV_ID_82576_FIBER               0x10E6
 #define E1000_DEV_ID_82576_SERDES              0x10E7