]> git.dujemihanovic.xyz Git - u-boot.git/commit
fdt: Add a function to return PCI BDF triplet
authorThierry Reding <treding@nvidia.com>
Tue, 26 Aug 2014 15:33:54 +0000 (17:33 +0200)
committerSimon Glass <sjg@chromium.org>
Wed, 22 Oct 2014 22:56:41 +0000 (16:56 -0600)
commit9f85eee72a2a3918b2d5cd7b1bf88da69232dede
tree18ad49344920b3e9721550b4172f623f126412f9
parent56f42242f020254ea1c383694edb072e3a5ca6d6
fdt: Add a function to return PCI BDF triplet

The fdtdec_pci_get_bdf() function returns the bus, device, function
triplet of a PCI device by parsing the "reg" property according to the
PCI device tree binding.

Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
include/fdtdec.h
lib/fdtdec.c