mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
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>
This commit is contained in:
parent
c343e8c0bf
commit
b9f6d0f7db
4 changed files with 23 additions and 18 deletions
|
@ -186,6 +186,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
|
||||
*
|
||||
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue