diff options
author | Mason Huo <mason.huo@starfivetech.com> | 2023-02-01 06:20:45 +0300 |
---|---|---|
committer | Mason Huo <mason.huo@starfivetech.com> | 2023-02-22 12:54:41 +0300 |
commit | 73afdb850175bc365c786d9dbf027c9143f51c21 (patch) | |
tree | 3dab4b7a47a7bbf789a0eedb2c523070f2b9016d /drivers | |
parent | e1c27bd246965545d43850cf749c5b3e969dd9a0 (diff) | |
download | u-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.c | 3 |
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: |