From cb772e54a3bdd95da1e86750baacbb92275bbbda Mon Sep 17 00:00:00 2001 From: Raihow Shi Date: Wed, 23 Mar 2022 11:24:33 +0800 Subject: [PATCH] drivers/net/r8168: Add support for Realtek RTL8111K The Realtek RT8168 and RTL8111K have a similar programming interface, therefore add the PCI device ID for the RTL8111K into driver for support. BUG=b:226253265 TEST=emerge-brask coreboot chromeos-bootimage. Signed-off-by: Raihow Shi Change-Id: I5ad8f14483393d6f25026847cc0d4229d362bba0 Reviewed-on: https://review.coreboot.org/c/coreboot/+/63013 Tested-by: build bot (Jenkins) Reviewed-by: Zhuohao Lee --- src/drivers/net/r8168.c | 1 + src/include/device/pci_ids.h | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/drivers/net/r8168.c b/src/drivers/net/r8168.c index b4ef40e426..32e02759c1 100644 --- a/src/drivers/net/r8168.c +++ b/src/drivers/net/r8168.c @@ -427,6 +427,7 @@ static struct device_operations r8168_ops = { static const unsigned short pci_device_ids[] = { PCI_DID_REALTEK_8168, PCI_DID_REALTEK_8125, + PCI_DID_REALTEK_8111, 0 }; diff --git a/src/include/device/pci_ids.h b/src/include/device/pci_ids.h index ff7d69ad0a..7c460f9052 100644 --- a/src/include/device/pci_ids.h +++ b/src/include/device/pci_ids.h @@ -1298,12 +1298,13 @@ #define PCI_VID_REALTEK 0x10ec #define PCI_DID_REALTEK_5261 0x5261 #define PCI_DID_REALTEK_8029 0x8029 -#define PCI_DID_REALTEK_8125 0x8125 +#define PCI_DID_REALTEK_8111 0x8111 +#define PCI_DID_REALTEK_8125 0x8125 #define PCI_DID_REALTEK_8129 0x8129 #define PCI_DID_REALTEK_8139 0x8139 -#define PCI_DID_REALTEK_8168 0x8168 +#define PCI_DID_REALTEK_8168 0x8168 -#define PCI_VID_TYAN 0x10f1 +#define PCI_VID_TYAN 0x10f1 #define PCI_VID_XILINX 0x10ee #define PCI_DID_TURBOPAM 0x4020