mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 16:44:58 +02:00
e1000e: introduce new board type for Panther Lake PCH
Add new board type for Panther Lake devices for separating device-specific features and flows. Additionally, remove the deprecated device IDs 0x57B5 and 0x57B6, which are not used by any existing devices. Signed-off-by: Vitaly Lifshits <vitaly.lifshits@intel.com> Tested-by: Avigail Dahan <avigailx.dahan@intel.com> Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com> Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
This commit is contained in:
parent
feae40a6a1
commit
5b644464ee
|
|
@ -117,7 +117,8 @@ enum e1000_boards {
|
|||
board_pch_cnp,
|
||||
board_pch_tgp,
|
||||
board_pch_adp,
|
||||
board_pch_mtp
|
||||
board_pch_mtp,
|
||||
board_pch_ptp
|
||||
};
|
||||
|
||||
struct e1000_ps_page {
|
||||
|
|
@ -527,6 +528,7 @@ extern const struct e1000_info e1000_pch_cnp_info;
|
|||
extern const struct e1000_info e1000_pch_tgp_info;
|
||||
extern const struct e1000_info e1000_pch_adp_info;
|
||||
extern const struct e1000_info e1000_pch_mtp_info;
|
||||
extern const struct e1000_info e1000_pch_ptp_info;
|
||||
extern const struct e1000_info e1000_es2_info;
|
||||
|
||||
void e1000e_ptp_init(struct e1000_adapter *adapter);
|
||||
|
|
|
|||
|
|
@ -118,8 +118,6 @@ struct e1000_hw;
|
|||
#define E1000_DEV_ID_PCH_ARL_I219_V24 0x57A1
|
||||
#define E1000_DEV_ID_PCH_PTP_I219_LM25 0x57B3
|
||||
#define E1000_DEV_ID_PCH_PTP_I219_V25 0x57B4
|
||||
#define E1000_DEV_ID_PCH_PTP_I219_LM26 0x57B5
|
||||
#define E1000_DEV_ID_PCH_PTP_I219_V26 0x57B6
|
||||
#define E1000_DEV_ID_PCH_PTP_I219_LM27 0x57B7
|
||||
#define E1000_DEV_ID_PCH_PTP_I219_V27 0x57B8
|
||||
#define E1000_DEV_ID_PCH_NVL_I219_LM29 0x57B9
|
||||
|
|
|
|||
|
|
@ -528,7 +528,7 @@ static s32 e1000_init_phy_params_pchlan(struct e1000_hw *hw)
|
|||
|
||||
phy->id = e1000_phy_unknown;
|
||||
|
||||
if (hw->mac.type == e1000_pch_mtp) {
|
||||
if (hw->mac.type == e1000_pch_mtp || hw->mac.type == e1000_pch_ptp) {
|
||||
phy->retry_count = 2;
|
||||
e1000e_enable_phy_retry(hw);
|
||||
}
|
||||
|
|
@ -6208,3 +6208,23 @@ const struct e1000_info e1000_pch_mtp_info = {
|
|||
.phy_ops = &ich8_phy_ops,
|
||||
.nvm_ops = &spt_nvm_ops,
|
||||
};
|
||||
|
||||
const struct e1000_info e1000_pch_ptp_info = {
|
||||
.mac = e1000_pch_ptp,
|
||||
.flags = FLAG_IS_ICH
|
||||
| FLAG_HAS_WOL
|
||||
| FLAG_HAS_HW_TIMESTAMP
|
||||
| FLAG_HAS_CTRLEXT_ON_LOAD
|
||||
| FLAG_HAS_AMT
|
||||
| FLAG_HAS_FLASH
|
||||
| FLAG_HAS_JUMBO_FRAMES
|
||||
| FLAG_APME_IN_WUC,
|
||||
.flags2 = FLAG2_HAS_PHY_STATS
|
||||
| FLAG2_HAS_EEE,
|
||||
.pba = 26,
|
||||
.max_hw_frame_size = 9022,
|
||||
.get_variants = e1000_get_variants_ich8lan,
|
||||
.mac_ops = &ich8_mac_ops,
|
||||
.phy_ops = &ich8_phy_ops,
|
||||
.nvm_ops = &spt_nvm_ops,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -55,6 +55,7 @@ static const struct e1000_info *e1000_info_tbl[] = {
|
|||
[board_pch_tgp] = &e1000_pch_tgp_info,
|
||||
[board_pch_adp] = &e1000_pch_adp_info,
|
||||
[board_pch_mtp] = &e1000_pch_mtp_info,
|
||||
[board_pch_ptp] = &e1000_pch_ptp_info,
|
||||
};
|
||||
|
||||
struct e1000_reg_info {
|
||||
|
|
@ -7925,14 +7926,12 @@ static const struct pci_device_id e1000_pci_tbl[] = {
|
|||
{ PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_LNP_I219_V21), board_pch_mtp },
|
||||
{ PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_ARL_I219_LM24), board_pch_mtp },
|
||||
{ PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_ARL_I219_V24), board_pch_mtp },
|
||||
{ PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_PTP_I219_LM25), board_pch_mtp },
|
||||
{ PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_PTP_I219_V25), board_pch_mtp },
|
||||
{ PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_PTP_I219_LM26), board_pch_mtp },
|
||||
{ PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_PTP_I219_V26), board_pch_mtp },
|
||||
{ PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_PTP_I219_LM27), board_pch_mtp },
|
||||
{ PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_PTP_I219_V27), board_pch_mtp },
|
||||
{ PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_NVL_I219_LM29), board_pch_mtp },
|
||||
{ PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_NVL_I219_V29), board_pch_mtp },
|
||||
{ PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_PTP_I219_LM25), board_pch_ptp },
|
||||
{ PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_PTP_I219_V25), board_pch_ptp },
|
||||
{ PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_PTP_I219_LM27), board_pch_ptp },
|
||||
{ PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_PTP_I219_V27), board_pch_ptp },
|
||||
{ PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_NVL_I219_LM29), board_pch_ptp },
|
||||
{ PCI_VDEVICE(INTEL, E1000_DEV_ID_PCH_NVL_I219_V29), board_pch_ptp },
|
||||
|
||||
{ 0, 0, 0, 0, 0, 0, 0 } /* terminate list */
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user