]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/cmd_pcmcia.c
* Add support for 16 MB flash configuration of TRAB board
[karo-tx-uboot.git] / common / cmd_pcmcia.c
index 8a3491ede7940523249d733cc88ffc341e26056c..31abbaf72cd137c0e7b96f27a7b82857d8f30db1 100644 (file)
@@ -268,6 +268,7 @@ static int pcmcia_off (void)
 #define        MAX_TUPEL_SZ    512
 #define MAX_FEATURES   4
 
+int ide_devices_found;
 static int check_ide_device (int slot)
 {
        volatile uchar *ident = NULL;
@@ -282,7 +283,7 @@ static int check_ide_device (int slot)
 
        addr = (volatile uchar *)(CFG_PCMCIA_MEM_ADDR +
                                  CFG_PCMCIA_MEM_SIZE * (slot * 4));
-       debug ("PCMCIA MEM: %08X\n", addr);
+       debug ("PCMCIA MEM: %08lX\n", (ulong)addr);
 
        start = p = (volatile uchar *) addr;
 
@@ -347,6 +348,8 @@ static int check_ide_device (int slot)
                return (1);
        }
 
+       ide_devices_found |= (1 << slot);
+
        /* set I/O area in config reg -> only valid for ARGOSY D5!!! */
        *((uchar *)(addr + config_base)) = 1;