]> git.baikalelectronics.ru Git - uboot.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)
commita0a89306f030879b5c2c85b866e9f96a364175d7
tree82a451e32969f8ee4d49448b82f751ecdb816f41
parent60c3aca6a4c967a5540fb90e78a357087779077b
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