Testing pci_mvebu.c with Kirkwood SoCs

Marek Behún marek.behun at nic.cz
Tue Nov 9 00:04:29 CET 2021


On Mon, 8 Nov 2021 14:48:03 -0800
Tony Dinh <mibodhi at gmail.com> wrote:

> > So to avoid calling 'pci enum' manually, you need to put pci_init();
> > function call into your board board_early_init_r() function.  
> 
> Thanks! will do that.

Don't do that.

Instead enable CONFIG_PCI_INIT_R and CONFIG_SYS_EARLY_PCI_INIT, and the
code in common/board_r.c will do it itself.

Look at:

https://source.denx.de/u-boot/u-boot/-/blob/f8ed9059001d803b0eae4b49178789aa0e29edec/common/board_r.c#L675

Marek


More information about the U-Boot mailing list