From: Tim Harvey Date: Fri, 17 Jun 2016 13:20:25 +0000 (-0700) Subject: pci: allow disabling of pci init/enum via env X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=ec21aee653a32a72909450c2e66b26668d5f3242;p=u-boot.git pci: allow disabling of pci init/enum via env Signed-off-by: Tim Harvey --- diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 4b73a0ff9c..6b36c187b5 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(); }