]> git.baikalelectronics.ru Git - uboot.git/commit
pci: pci_mvebu: set local dev to number 1
authorMarek Behún <marek.behun@nic.cz>
Mon, 8 Feb 2021 22:01:41 +0000 (23:01 +0100)
committerStefan Roese <sr@denx.de>
Fri, 26 Feb 2021 09:22:29 +0000 (10:22 +0100)
commitcdfe6d417cfba417a28893e057dd8c6422b3b96c
treeaa5aae2ab94e5846c3d3e2152610cdc08291db42
parent7c5c3e20f4a16e3546878f87fef2cd067ad2699c
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>
drivers/pci/pci_mvebu.c