summaryrefslogtreecommitdiff
path: root/drivers/pci
diff options
context:
space:
mode:
authorTim Harvey <tharvey@gateworks.com>2016-06-17 06:20:25 -0700
committerStefano Babic <sbabic@denx.de>2016-07-28 13:27:17 +0200
commitec21aee653a32a72909450c2e66b26668d5f3242 (patch)
treee1411afc32f182d36afd1f379352a1158aacf1ca /drivers/pci
parent5c34c2abb86a8e74234390300e4c852603b11621 (diff)
pci: allow disabling of pci init/enum via env
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/pci.c4
1 files changed, 4 insertions, 0 deletions
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();
}