Skip to content

Commit fb776f5

Browse files
aneftinJeff Kirsher
authored andcommitted
e1000e: Add support for Tiger Lake
Add devices ID's for the next LOM generations that will be available on the next Intel Client platform (Tiger Lake) This patch provides the initial support for these devices Signed-off-by: Sasha Neftin <[email protected]> Tested-by: Aaron Brown <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 3fd8ed5 commit fb776f5

File tree

5 files changed

+26
-1
lines changed

5 files changed

+26
-1
lines changed

drivers/net/ethernet/intel/e1000e/ethtool.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,8 +894,9 @@ static int e1000_reg_test(struct e1000_adapter *adapter, u64 *data)
894894
case e1000_pch2lan:
895895
case e1000_pch_lpt:
896896
case e1000_pch_spt:
897-
/* fall through */
898897
case e1000_pch_cnp:
898+
/* fall through */
899+
case e1000_pch_tgp:
899900
mask |= BIT(18);
900901
break;
901902
default:
@@ -1559,6 +1560,7 @@ static void e1000_loopback_cleanup(struct e1000_adapter *adapter)
15591560
switch (hw->mac.type) {
15601561
case e1000_pch_spt:
15611562
case e1000_pch_cnp:
1563+
case e1000_pch_tgp:
15621564
fext_nvm11 = er32(FEXTNVM11);
15631565
fext_nvm11 &= ~E1000_FEXTNVM11_DISABLE_MULR_FIX;
15641566
ew32(FEXTNVM11, fext_nvm11);

drivers/net/ethernet/intel/e1000e/hw.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ struct e1000_hw;
9292
#define E1000_DEV_ID_PCH_CMP_I219_V11 0x0D4D
9393
#define E1000_DEV_ID_PCH_CMP_I219_LM12 0x0D53
9494
#define E1000_DEV_ID_PCH_CMP_I219_V12 0x0D55
95+
#define E1000_DEV_ID_PCH_TGP_I219_LM13 0x15FB
96+
#define E1000_DEV_ID_PCH_TGP_I219_V13 0x15FC
97+
#define E1000_DEV_ID_PCH_TGP_I219_LM14 0x15F9
98+
#define E1000_DEV_ID_PCH_TGP_I219_V14 0x15FA
99+
#define E1000_DEV_ID_PCH_TGP_I219_LM15 0x15F4
95100

96101
#define E1000_REVISION_4 4
97102

@@ -115,6 +120,7 @@ enum e1000_mac_type {
115120
e1000_pch_lpt,
116121
e1000_pch_spt,
117122
e1000_pch_cnp,
123+
e1000_pch_tgp,
118124
};
119125

120126
enum e1000_media_type {

drivers/net/ethernet/intel/e1000e/ich8lan.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ static s32 e1000_init_phy_workarounds_pchlan(struct e1000_hw *hw)
316316
case e1000_pch_lpt:
317317
case e1000_pch_spt:
318318
case e1000_pch_cnp:
319+
case e1000_pch_tgp:
319320
if (e1000_phy_is_accessible_pchlan(hw))
320321
break;
321322

@@ -458,6 +459,7 @@ static s32 e1000_init_phy_params_pchlan(struct e1000_hw *hw)
458459
case e1000_pch_lpt:
459460
case e1000_pch_spt:
460461
case e1000_pch_cnp:
462+
case e1000_pch_tgp:
461463
/* In case the PHY needs to be in mdio slow mode,
462464
* set slow mode and try to get the PHY id again.
463465
*/
@@ -700,6 +702,7 @@ static s32 e1000_init_mac_params_ich8lan(struct e1000_hw *hw)
700702
case e1000_pch_lpt:
701703
case e1000_pch_spt:
702704
case e1000_pch_cnp:
705+
case e1000_pch_tgp:
703706
case e1000_pchlan:
704707
/* check management mode */
705708
mac->ops.check_mng_mode = e1000_check_mng_mode_pchlan;
@@ -1638,6 +1641,7 @@ static s32 e1000_get_variants_ich8lan(struct e1000_adapter *adapter)
16381641
case e1000_pch_lpt:
16391642
case e1000_pch_spt:
16401643
case e1000_pch_cnp:
1644+
case e1000_pch_tgp:
16411645
rc = e1000_init_phy_params_pchlan(hw);
16421646
break;
16431647
default:
@@ -2090,6 +2094,7 @@ static s32 e1000_sw_lcd_config_ich8lan(struct e1000_hw *hw)
20902094
case e1000_pch_lpt:
20912095
case e1000_pch_spt:
20922096
case e1000_pch_cnp:
2097+
case e1000_pch_tgp:
20932098
sw_cfg_mask = E1000_FEXTNVM_SW_CONFIG_ICH8M;
20942099
break;
20952100
default:
@@ -3127,6 +3132,7 @@ static s32 e1000_valid_nvm_bank_detect_ich8lan(struct e1000_hw *hw, u32 *bank)
31273132
switch (hw->mac.type) {
31283133
case e1000_pch_spt:
31293134
case e1000_pch_cnp:
3135+
case e1000_pch_tgp:
31303136
bank1_offset = nvm->flash_bank_size;
31313137
act_offset = E1000_ICH_NVM_SIG_WORD;
31323138

@@ -4070,6 +4076,7 @@ static s32 e1000_validate_nvm_checksum_ich8lan(struct e1000_hw *hw)
40704076
case e1000_pch_lpt:
40714077
case e1000_pch_spt:
40724078
case e1000_pch_cnp:
4079+
case e1000_pch_tgp:
40734080
word = NVM_COMPAT;
40744081
valid_csum_mask = NVM_COMPAT_VALID_CSUM;
40754082
break;

drivers/net/ethernet/intel/e1000e/netdev.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3538,6 +3538,7 @@ s32 e1000e_get_base_timinca(struct e1000_adapter *adapter, u32 *timinca)
35383538
adapter->cc.shift = shift;
35393539
break;
35403540
case e1000_pch_cnp:
3541+
case e1000_pch_tgp:
35413542
if (er32(TSYNCRXCTL) & E1000_TSYNCRXCTL_SYSCFI) {
35423543
/* Stable 24MHz frequency */
35433544
incperiod = INCPERIOD_24MHZ;
@@ -4049,6 +4050,8 @@ void e1000e_reset(struct e1000_adapter *adapter)
40494050
case e1000_pch_lpt:
40504051
case e1000_pch_spt:
40514052
case e1000_pch_cnp:
4053+
/* fall-through */
4054+
case e1000_pch_tgp:
40524055
fc->refresh_time = 0xFFFF;
40534056
fc->pause_time = 0xFFFF;
40544057

@@ -7752,6 +7755,11 @@ static const struct pci_device_id e1000_pci_tbl[] = {
77527755
{ PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_CMP_I219_V11), board_pch_cnp },
77537756
{ PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_CMP_I219_LM12), board_pch_spt },
77547757
{ PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_CMP_I219_V12), board_pch_spt },
7758+
{ PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_TGP_I219_LM13), board_pch_cnp },
7759+
{ PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_TGP_I219_V13), board_pch_cnp },
7760+
{ PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_TGP_I219_LM14), board_pch_cnp },
7761+
{ PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_TGP_I219_V14), board_pch_cnp },
7762+
{ PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_TGP_I219_LM15), board_pch_cnp },
77557763

77567764
{ 0, 0, 0, 0, 0, 0, 0 } /* terminate list */
77577765
};

drivers/net/ethernet/intel/e1000e/ptp.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,8 @@ void e1000e_ptp_init(struct e1000_adapter *adapter)
295295
case e1000_pch_lpt:
296296
case e1000_pch_spt:
297297
case e1000_pch_cnp:
298+
/* fall-through */
299+
case e1000_pch_tgp:
298300
if ((hw->mac.type < e1000_pch_lpt) ||
299301
(er32(TSYNCRXCTL) & E1000_TSYNCRXCTL_SYSCFI)) {
300302
adapter->ptp_clock_info.max_adj = 24000000 - 1;

0 commit comments

Comments
 (0)