From ad10dd9aaf573fefe1cbd9d446a24f07f8b87428 Mon Sep 17 00:00:00 2001 From: stroese Date: Fri, 14 Feb 2003 11:21:23 +0000 Subject: Add "pcidelay" environment variable (in ms, enabled via CONFIG_PCI_BOOTDELAY). --- drivers/pci.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'drivers') diff --git a/drivers/pci.c b/drivers/pci.c index dc58abf..9eaaa15 100644 --- a/drivers/pci.c +++ b/drivers/pci.c @@ -505,4 +505,23 @@ int pci_hose_scan(struct pci_controller *hose) return pci_hose_scan_bus(hose, hose->first_busno); } +void pci_init(void) +{ +#if defined(CONFIG_PCI_BOOTDELAY) + char *s; + int i; + + /* wait "pcidelay" ms (if defined)... */ + s = getenv ("pcidelay"); + if (s) { + int val = simple_strtoul (s, NULL, 10); + for (i=0; i