]> git.dujemihanovic.xyz Git - u-boot.git/commit
pci: Add pci_get_devfn() to extract devfn from the fdt_pci_addr
authorStefan Roese <sr@denx.de>
Fri, 25 Jan 2019 10:52:42 +0000 (11:52 +0100)
committerStefan Roese <sr@denx.de>
Tue, 5 Feb 2019 13:22:24 +0000 (14:22 +0100)
commitb52142004fbdfd6db0091ba7ae33c91e3b459034
tree82a451e32969f8ee4d49448b82f751ecdb816f41
parente5fd39c886485e3dec77f4438a6e364c2987cf5f
pci: Add pci_get_devfn() to extract devfn from the fdt_pci_addr

This function will be used by the Marvell Armada XP/38x PCIe driver,
which is moved to DM right now. So let's extract the functionality
from pci_uclass_child_post_bind() to make it available.

Signed-off-by: Stefan Roese <sr@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/pci/pci-uclass.c
include/pci.h