summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMason Huo <mason.huo@starfivetech.com>2023-02-01 06:20:45 +0300
committerMason Huo <mason.huo@starfivetech.com>2023-02-22 12:54:41 +0300
commit73afdb850175bc365c786d9dbf027c9143f51c21 (patch)
tree3dab4b7a47a7bbf789a0eedb2c523070f2b9016d /drivers
parente1c27bd246965545d43850cf749c5b3e969dd9a0 (diff)
downloadu-boot-73afdb850175bc365c786d9dbf027c9143f51c21.tar.xz
net: rtl8169: Add one more device ID
Add the NIC device ID and adjust the bar regions. Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/rtl8169.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/rtl8169.c b/drivers/net/rtl8169.c
index da2cfb7f55..3896760b5f 100644
--- a/drivers/net/rtl8169.c
+++ b/drivers/net/rtl8169.c
@@ -350,6 +350,7 @@ static struct pci_device_id supported[] = {
{ PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x8167) },
{ PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x8168) },
{ PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x8169) },
+ { PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x8161) },
{}
};
@@ -1139,6 +1140,7 @@ int rtl8169_initialize(struct bd_info *bis)
pci_read_config_word(devno, PCI_DEVICE_ID, &device);
switch (device) {
case 0x8168:
+ case 0x8161:
region = 2;
break;
@@ -1197,6 +1199,7 @@ static int rtl8169_eth_probe(struct udevice *dev)
debug("rtl8169: REALTEK RTL8169 @0x%x\n", iobase);
switch (pplat->device) {
case 0x8168:
+ case 0x8161:
region = 2;
break;
default: