diff options
author | Wolfgang Denk <wd@denx.de> | 2010-10-23 21:59:42 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-10-23 21:59:42 +0200 |
commit | f2b382ea066d02d5ba44870024cc1295e85782ef (patch) | |
tree | 9891424412f40e0bbe3cb64d022597bffa301b50 /common | |
parent | 33a08c10c78baf67e41cd03d5732ddc338e8c2e9 (diff) | |
parent | bfe18815e8123f4456be8b5858b2b255d7881698 (diff) | |
download | u-boot-imx-f2b382ea066d02d5ba44870024cc1295e85782ef.zip u-boot-imx-f2b382ea066d02d5ba44870024cc1295e85782ef.tar.gz u-boot-imx-f2b382ea066d02d5ba44870024cc1295e85782ef.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_pci.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/common/cmd_pci.c b/common/cmd_pci.c index 4bde059..ccf5ada 100644 --- a/common/cmd_pci.c +++ b/common/cmd_pci.c @@ -497,6 +497,10 @@ int do_pci (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) if ((bdf = get_pci_dev(argv[2])) == -1) return 1; break; +#ifdef CONFIG_CMD_PCI_ENUM + case 'e': + break; +#endif default: /* scan bus */ value = 1; /* short listing */ bdf = 0; /* bus number */ @@ -518,6 +522,11 @@ int do_pci (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) return 0; case 'd': /* display */ return pci_cfg_display(bdf, addr, size, value); +#ifdef CONFIG_CMD_PCI_ENUM + case 'e': + pci_init(); + return 0; +#endif case 'n': /* next */ if (argc < 4) goto usage; @@ -545,6 +554,10 @@ U_BOOT_CMD( "list and access PCI Configuration Space", "[bus] [long]\n" " - short or long list of PCI devices on bus 'bus'\n" +#ifdef CONFIG_CMD_PCI_ENUM + "pci enum\n" + " - re-enumerate PCI buses\n" +#endif "pci header b.d.f\n" " - show header of PCI device 'bus.device.function'\n" "pci display[.b, .w, .l] b.d.f [address] [# of objects]\n" |