summaryrefslogtreecommitdiff
path: root/src/mainboard/asrock/b75m-itx/devicetree.cb
diff options
context:
space:
mode:
authorKevin Keijzer <kevin@quietlife.nl>2023-03-06 23:35:19 +0100
committerFelix Held <felix-coreboot@felixheld.de>2023-03-08 12:05:34 +0000
commit1a591d0c4460c896487ee429036754f315b92130 (patch)
treedbf7aa3cb41bed47c732181fef113317259c6c25 /src/mainboard/asrock/b75m-itx/devicetree.cb
parent21a5ecd5d55fd3aa2b9b3946cb5592271b9209bd (diff)
mb/asrock/b75m-itx: Make NIC a child device below PCIe port 4
The Realtek RTL8111E NIC is currently not defined as a child device, resulting in the on_board flag not being set to 1. This means that Linux / udev will call the device enp3s0 rather than eno0, as is appropriate for on-board ethernet devices. Additionally, the comment in devicetree.cb stating that PCIe port 6 is the ethernet controller is incorrect. It's actually port 4. This patch moves the comment to the right port, and defines the NIC as a child device of said port, so that it's properly defined as an on-board device. Link: https://mail.coreboot.org/hyperkitty/list/coreboot@coreboot.org/thread/TFWNW3Y7IWTFD4KIBVNQYW3DODJ6SSC2/ Change-Id: Ie1e3a757a6bd6c7dd1702ced177d13711978dcc4 Signed-off-by: Kevin Keijzer <kevin@quietlife.nl> Reviewed-on: https://review.coreboot.org/c/coreboot/+/73516 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Fabian Groffen <grobian@gentoo.org> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/asrock/b75m-itx/devicetree.cb')
-rw-r--r--src/mainboard/asrock/b75m-itx/devicetree.cb8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mainboard/asrock/b75m-itx/devicetree.cb b/src/mainboard/asrock/b75m-itx/devicetree.cb
index 9fdad959b1..5b3387ac68 100644
--- a/src/mainboard/asrock/b75m-itx/devicetree.cb
+++ b/src/mainboard/asrock/b75m-itx/devicetree.cb
@@ -50,11 +50,13 @@ chip northbridge/intel/sandybridge
end
device pci 1c.1 off end # PCIe Port #2
device pci 1c.2 off end # PCIe Port #3
- device pci 1c.3 on # PCIe Port #4
- subsystemid 0x1849 0x1e16
+ device pci 1c.3 on # PCIe Port #4, Realtek PCIe GbE Controller
+ device pci 00.0 on # PCI 10ec:8168
+ subsystemid 0x1849 0x1e16
+ end
end
device pci 1c.4 off end # PCIe Port #5
- device pci 1c.5 on # PCIe Port #6, Realtek PCIe GbE Controller
+ device pci 1c.5 on # PCIe Port #6
subsystemid 0x1849 0x1e1a
end
device pci 1c.6 off end # PCIe Port #7