summaryrefslogtreecommitdiffstats
path: root/drivers/pci_endpoint
diff options
context:
space:
mode:
authorXiaowei Bao <xiaowei.bao@nxp.com>2020-07-09 23:31:34 +0800
committerPriyanka Jain <priyanka.jain@nxp.com>2020-07-27 14:24:15 +0530
commitfd00c53fb399708a210e365d768b35e8692a46b8 (patch)
treefe81d59ce3d1e890e67bf3b4314782dc45fe962d /drivers/pci_endpoint
parent118e58e26eba4129737880b1ba39ca7c0181e1bd (diff)
downloadu-boot-fd00c53fb399708a210e365d768b35e8692a46b8.tar.gz
u-boot-fd00c53fb399708a210e365d768b35e8692a46b8.tar.xz
u-boot-fd00c53fb399708a210e365d768b35e8692a46b8.zip
pci_ep: Add the init function
Some EP deivces need to initialize before RC scan it, e.g. NXP layerscape platform, so add the init function in pci_ep uclass. Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com> Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'drivers/pci_endpoint')
-rw-r--r--drivers/pci_endpoint/pci_ep-uclass.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/pci_endpoint/pci_ep-uclass.c b/drivers/pci_endpoint/pci_ep-uclass.c
index 9f53a9a9b9..38a5f08376 100644
--- a/drivers/pci_endpoint/pci_ep-uclass.c
+++ b/drivers/pci_endpoint/pci_ep-uclass.c
@@ -209,3 +209,14 @@ UCLASS_DRIVER(pci_ep) = {
.name = "pci_ep",
.flags = DM_UC_FLAG_SEQ_ALIAS,
};
+
+void pci_ep_init(void)
+{
+ struct udevice *dev;
+
+ for (uclass_first_device_check(UCLASS_PCI_EP, &dev);
+ dev;
+ uclass_next_device_check(&dev)) {
+ ;
+ }
+}