]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
pci: allow disabling of pci init/enum via env
authorTim Harvey <tharvey@gateworks.com>
Fri, 17 Jun 2016 13:20:25 +0000 (06:20 -0700)
committerStefano Babic <sbabic@denx.de>
Thu, 28 Jul 2016 11:27:17 +0000 (13:27 +0200)
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
drivers/pci/pci.c

index 4b73a0ff9cb273cd3f01d7aeaff1bfc8b537bfca..6b36c187b522740e75efb7366330a974b2acf1fc 100644 (file)
@@ -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();
 }