[U-Boot] [PATCH 1/2] pci: allow disabling of pci init/enum via env

Tim Harvey tharvey at gateworks.com
Fri Jun 17 15:20:25 CEST 2016


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();
 }
-- 
1.9.1



More information about the U-Boot mailing list