]> git.sur5r.net Git - u-boot/commitdiff
- Update NAND FLASH support.
authorstroese <stroese>
Tue, 24 Jun 2003 14:27:27 +0000 (14:27 +0000)
committerstroese <stroese>
Tue, 24 Jun 2003 14:27:27 +0000 (14:27 +0000)
board/esd/ash405/ash405.c

index 39810c7cad2524d668174ba3dd0a9f580cb4c73b..4cb5183232871aa0318a0447bc498075c6ee5185 100644 (file)
@@ -238,10 +238,15 @@ int testdram (void)
 /* ------------------------------------------------------------------------- */
 
 #if (CONFIG_COMMANDS & CFG_CMD_NAND)
-extern void nand_probe(ulong physadr);
+#include <linux/mtd/nand.h>
+extern struct nand_chip nand_dev_desc[CFG_MAX_NAND_DEVICE];
+
 void nand_init(void)
 {
-       printf("Probing at 0x%.8x\n", CFG_NAND_BASE);
        nand_probe(CFG_NAND_BASE);
+       if (nand_dev_desc[0].ChipID != NAND_ChipID_UNKNOWN) {
+               puts("NAND:  ");
+               print_size(nand_dev_desc[0].totlen, "\n");
+       }
 }
 #endif