summaryrefslogtreecommitdiff
path: root/common/cmd_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/cmd_pci.c')
-rw-r--r--common/cmd_pci.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/common/cmd_pci.c b/common/cmd_pci.c
index 4a9317f16c..ef57533f5c 100644
--- a/common/cmd_pci.c
+++ b/common/cmd_pci.c
@@ -37,6 +37,10 @@
unsigned char ShortPCIListing = 1;
+#ifdef CONFIG_FASTBOOT
+int pci_init_skipped;
+#endif
+
/*
* Follows routines for the output of infos about devices on PCI bus.
*/
@@ -477,6 +481,13 @@ int do_pci (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
pci_dev_t bdf = 0;
char cmd = 's';
+#ifdef CONFIG_FASTBOOT
+ if (pci_init_skipped) {
+ pci_init_skipped = 0;
+ pci_init();
+ }
+#endif
+
if (argc > 1)
cmd = argv[1][0];