]> git.baikalelectronics.ru Git - uboot.git/commit
board_r: Introduce CONFIG_PCI_INIT_R Kconfig option
authorOvidiu Panait <ovidiu.panait@windriver.com>
Wed, 6 May 2020 17:38:44 +0000 (20:38 +0300)
committerTom Rini <trini@konsulko.com>
Fri, 15 May 2020 21:12:41 +0000 (17:12 -0400)
commit550854f70f94c8e438180e89063a64b21409d4e9
tree47f0c86b67073af3e2046154e59b7c18ef3b086d
parentf6cd132926c5a499cebe7bcb70d6f44968ff46da
board_r: Introduce CONFIG_PCI_INIT_R Kconfig option

With CONFIG_DM_PCI enabled, PCI buses are not enumerated at boot, as they
are without that config option enabled. However, there are cases such as DM
PCI-based Ethernet devices that need the PCI bus enumerated so that they
can be discovered by their drivers.

Currently, to solve this, some boards enumerate the pci bus using
"pci enum" preboot command, while others do it manually in board files
(in board_init/board_late_init/etc. functions).

In order to possibly make the pci enumeration process uniform across all
boards, introduce CONFIG_PCI_INIT_R Kconfig option.

This change also preserves the current behavior in the !DM_PCI case
(pci_init is run unconditionally at boot).

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
common/Kconfig
common/board_r.c