From: stroese Date: Tue, 24 Jun 2003 14:27:27 +0000 (+0000) Subject: - Update NAND FLASH support. X-Git-Tag: LABEL_2006_03_12_0025~837 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e118e233a89ac021ffc69e8995638cc27feec99d;p=oweals%2Fu-boot.git - Update NAND FLASH support. --- diff --git a/board/esd/ash405/ash405.c b/board/esd/ash405/ash405.c index 39810c7cad..4cb5183232 100644 --- a/board/esd/ash405/ash405.c +++ b/board/esd/ash405/ash405.c @@ -238,10 +238,15 @@ int testdram (void) /* ------------------------------------------------------------------------- */ #if (CONFIG_COMMANDS & CFG_CMD_NAND) -extern void nand_probe(ulong physadr); +#include +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