From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 15 May 2020 21:45:49 -0400 Subject: [PATCH 3/6] board_r: Introduce CONFIG_PCI_INIT_R Kconfig option In-Reply-To: <20200506173847.35635-3-ovidiu.panait@windriver.com> References: <20200506173847.35635-1-ovidiu.panait@windriver.com> <20200506173847.35635-3-ovidiu.panait@windriver.com> Message-ID: <20200516014549.GP4794@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, May 06, 2020 at 08:38:44PM +0300, Ovidiu Panait wrote: > 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 Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: