diff options
author | Tim Harvey <tharvey@gateworks.com> | 2016-06-17 13:20:25 (GMT) |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2016-07-28 11:27:17 (GMT) |
commit | ec21aee653a32a72909450c2e66b26668d5f3242 (patch) | |
tree | e1411afc32f182d36afd1f379352a1158aacf1ca | |
parent | 5c34c2abb86a8e74234390300e4c852603b11621 (diff) | |
download | u-boot-fsl-qoriq-ec21aee653a32a72909450c2e66b26668d5f3242.tar.xz |
pci: allow disabling of pci init/enum via env
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
-rw-r--r-- | drivers/pci/pci.c | 4 |
1 files changed, 4 insertions, 0 deletions
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(); } |