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-Tag: v2016.09-rc2~174^2~22 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ec21aee653a32a72909450c2e66b26668d5f3242;p=u-boot 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(); }