[U-Boot] [U-boot] use of CONFIG_SYS_EARLY_PCI_INIT with DM PCI

Suneel Garapati suneelglinux at gmail.com
Tue Apr 25 23:25:45 UTC 2017


Hi Simon,

Request your inputs on below query -

Boards I work on have most of the devices on PCI bus, driver model
support enabled, would like to use CONFIG_SYS_EARLY_PCI_INIT to call
pci_init but the below snippet would hinder.

 #ifdef CONFIG_PCI
 static int initr_pci(void)
 {
-#ifndef CONFIG_DM_PCI
        pci_init();
-#endif
....

Is this change valid or should create another config item for driver
model based early pci init?

Regards,
Suneel


More information about the U-Boot mailing list