summaryrefslogtreecommitdiff
path: root/drivers/pci
diff options
context:
space:
mode:
authorMarek BehĂșn <marek.behun@nic.cz>2021-02-09 01:01:41 +0300
committerStefan Roese <sr@denx.de>2021-02-26 12:22:29 +0300
commit5ddfd3f4412750fa0c035d08d747b38b0aefb3fa (patch)
treeaa5aae2ab94e5846c3d3e2152610cdc08291db42 /drivers/pci
parent10eb2cc3442aa9a91c98f2fdda2a5b48de9bbc88 (diff)
downloadu-boot-5ddfd3f4412750fa0c035d08d747b38b0aefb3fa.tar.xz
pci: pci_mvebu: set local dev to number 1
Linux displays the real PCIe card connected to a mvebu PCIe slot as device 0, not 1. This is done by setting local dev number to 1, so that the local "Marvell Memory controller" device is on address 1. Let's do it also in U-Boot. With this commit the pci command in U-Boot prints something like: => pci Scanning PCI devices on bus 0 BusDevFun VendorId DeviceId Device Class Sub-Class _____________________________________________________________ 00.00.00 0x168c 0x003c Network controller 0x80 Signed-off-by: Marek BehĂșn <marek.behun@nic.cz> Cc: Stefan Roese <sr@denx.de> Cc: Phil Sutter <phil@nwl.cc> Cc: Mario Six <mario.six@gdsys.cc> Cc: Baruch Siach <baruch@tkos.co.il> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/pci_mvebu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci_mvebu.c b/drivers/pci/pci_mvebu.c
index 54f8e8b9ec..0c1d7cd770 100644
--- a/drivers/pci/pci_mvebu.c
+++ b/drivers/pci/pci_mvebu.c
@@ -289,7 +289,7 @@ static int mvebu_pcie_probe(struct udevice *dev)
mvebu_pcie_get_local_dev_nr(pcie));
pcie->first_busno = bus;
- pcie->local_dev = 0;
+ pcie->local_dev = 1;
mvebu_pcie_set_local_bus_nr(pcie, bus);
mvebu_pcie_set_local_dev_nr(pcie, pcie->local_dev);