diff options
Diffstat (limited to 'board/esd/ash405/ash405.c')
-rw-r--r-- | board/esd/ash405/ash405.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/board/esd/ash405/ash405.c b/board/esd/ash405/ash405.c index 50dbade..edca8b2 100644 --- a/board/esd/ash405/ash405.c +++ b/board/esd/ash405/ash405.c @@ -239,15 +239,11 @@ int testdram (void) /* ------------------------------------------------------------------------- */ #if (CONFIG_COMMANDS & CFG_CMD_NAND) -#include <linux/mtd/nand.h> -extern struct nand_chip nand_dev_desc[CFG_MAX_NAND_DEVICE]; void nand_init(void) { - nand_probe(CFG_NAND_BASE); - if (nand_dev_desc[0].ChipID != NAND_ChipID_UNKNOWN) { - puts("NAND: "); - print_size(nand_dev_desc[0].totlen, "\n"); - } + unsigned long totlen = nand_probe(CFG_NAND_BASE); + + printf ("%4lu MB\n", totlen >> 20); } #endif |