]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ppc4xx: use CONFIG_PCI_BOOTDELAY instead of private implementation
authorMatthias Fuchs <matthias.fuchs@esd.eu>
Thu, 13 Oct 2011 13:12:22 +0000 (15:12 +0200)
committerStefan Roese <sr@denx.de>
Thu, 1 Dec 2011 08:10:28 +0000 (09:10 +0100)
This patch switches PMC440 board code to the CONFIG_PCI_BOOTDELAY option
instead of using a private implemention. This relies on Anatolji's patch
that moves the pcidelay handling behind pci_target_init.

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu>
Signed-off-by: Stefan Roese <sr@denx.de>
board/esd/pmc440/pmc440.c
include/configs/PMC440.h

index 5236f44468f9d494ad6edd9dada2c9dadbd79102..0d560649eadcd7215f0636059e99b0f5aaa8f38a 100644 (file)
@@ -617,21 +617,6 @@ void pci_master_init(struct pci_controller *hose)
 
 static void wait_for_pci_ready(void)
 {
-       int i;
-       char *s = getenv("pcidelay");
-       /*
-        * We have our own handling of the pcidelay variable.
-        * Using CONFIG_PCI_BOOTDELAY enables pausing for host
-        * and adapter devices. For adapter devices we do not
-        * want this.
-        */
-       if (s) {
-               int ms = simple_strtoul(s, NULL, 10);
-               printf("PCI:   Waiting for %d ms\n", ms);
-               for (i=0; i<ms; i++)
-                       udelay(1000);
-       }
-
        if (!(in_be32((void*)GPIO1_IR) & GPIO1_PPC_EREADY)) {
                printf("PCI:   Waiting for EREADY (CTRL-C to skip) ... ");
                while (1) {
index bee74aa53d0b864eb97108a1abb98fc18bdf95cc..ed47a87820f0a461b84a334547ffac95dd449f69 100644 (file)
 #define CONFIG_SYS_PCI_MASTER_INIT
 #define CONFIG_SYS_PCI_BOARD_FIXUP_IRQ
 
+#define CONFIG_PCI_BOOTDELAY 0
+
 /* PCI identification */
 #define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x12FE  /* PCI Vendor ID: esd gmbh      */
 #define CONFIG_SYS_PCI_SUBSYS_ID_NONMONARCH 0x0441     /* PCI Device ID: Non-Monarch */