diff options
author | stroese <stroese> | 2003-09-12 08:43:46 +0000 |
---|---|---|
committer | stroese <stroese> | 2003-09-12 08:43:46 +0000 |
commit | 895af12a21dad40b8810921b7c2fbcfcd87dfdd3 (patch) | |
tree | 1d12930153e85ed1b7d41bd06e99c174b80c8515 /board/esd/ash405/ash405.c | |
parent | 9a2dd74032956aa85f50d10a878786494f9a1ffc (diff) | |
download | u-boot-imx-895af12a21dad40b8810921b7c2fbcfcd87dfdd3.zip u-boot-imx-895af12a21dad40b8810921b7c2fbcfcd87dfdd3.tar.gz u-boot-imx-895af12a21dad40b8810921b7c2fbcfcd87dfdd3.tar.bz2 |
ASH405 update.
Diffstat (limited to 'board/esd/ash405/ash405.c')
-rw-r--r-- | board/esd/ash405/ash405.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/board/esd/ash405/ash405.c b/board/esd/ash405/ash405.c index edca8b2..39b2dfc 100644 --- a/board/esd/ash405/ash405.c +++ b/board/esd/ash405/ash405.c @@ -239,11 +239,14 @@ 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) { - unsigned long totlen = nand_probe(CFG_NAND_BASE); - - printf ("%4lu MB\n", totlen >> 20); + nand_probe(CFG_NAND_BASE); + if (nand_dev_desc[0].ChipID != NAND_ChipID_UNKNOWN) { + print_size(nand_dev_desc[0].totlen, "\n"); + } } #endif |