summaryrefslogtreecommitdiff
path: root/include/init.h
diff options
context:
space:
mode:
authorOvidiu Panait <ovidiu.panait@windriver.com>2020-11-28 11:43:12 +0300
committerTom Rini <trini@konsulko.com>2021-01-15 22:36:12 +0300
commitb9f6d0f7db9ef57f77ec3bd23a50a160534efbd8 (patch)
tree3471bcdd2358e3ea1653d04cf8c7c9a9d039f080 /include/init.h
parentc343e8c0bfe5be18d766c25d9d1de3d843793109 (diff)
downloadu-boot-b9f6d0f7db9ef57f77ec3bd23a50a160534efbd8.tar.xz
common: board_r: Drop initr_pci wrapper
Add a return value to pci_init and use it directly in the post-relocation init sequence, rather than using a wrapper stub. Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/init.h')
-rw-r--r--include/init.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/init.h b/include/init.h
index c6c5f34b55..dded1cb871 100644
--- a/include/init.h
+++ b/include/init.h
@@ -187,6 +187,18 @@ int cpu_secondary_init_r(void);
int pci_ep_init(void);
/**
+ * pci_init() - Enumerate pci devices
+ *
+ * It is called during the generic post-relocation init sequence to enumerate
+ * pci buses. This is needed, for instance, in the case of DM PCI-based
+ * Ethernet devices, which will not be detected without having the enumeration
+ * performed earlier.
+ *
+ * Return: 0 if OK
+ */
+int pci_init(void);
+
+/**
* init_cache_f_r() - Turn on the cache in preparation for relocation
*
* Return: 0 if OK, -ve on error
@@ -257,7 +269,6 @@ int mac_read_from_eeprom(void);
int set_cpu_clk_info(void);
int update_flash_size(int flash_size);
int arch_early_init_r(void);
-void pci_init(void);
int misc_init_r(void);
#if defined(CONFIG_VID)
int init_func_vid(void);