[U-Boot] [PATCH 1/2] pci: allow disabling of pci init/enum via env
Stefano Babic
sbabic at denx.de
Thu Jul 28 12:31:01 CEST 2016
On 17/06/2016 15:20, Tim Harvey wrote:
> Signed-off-by: Tim Harvey <tharvey at gateworks.com>
> ---
> drivers/pci/pci.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
> index 4b73a0f..6b36c18 100644
> --- a/drivers/pci/pci.c
> +++ b/drivers/pci/pci.c
> @@ -458,6 +458,10 @@ void pci_init(void)
> {
> hose_head = NULL;
>
> + /* allow env to disable pci init/enum */
> + if (getenv("pcidisable") != NULL)
> + return;
> +
> /* now call board specific pci_init()... */
> pci_init_board();
> }
>
Applied to u-boot-imx, thanks !
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
More information about the U-Boot
mailing list