summaryrefslogtreecommitdiff
path: root/board/esd/ash405
diff options
context:
space:
mode:
authorstroese <stroese>2003-06-24 14:27:27 +0000
committerstroese <stroese>2003-06-24 14:27:27 +0000
commite118e233a89ac021ffc69e8995638cc27feec99d (patch)
tree03a5208eba614180589bd6ec1a2c3ec346cbb39b /board/esd/ash405
parent95aeb34580cea482b2069a03743961e28860ce9c (diff)
downloadu-boot-imx-e118e233a89ac021ffc69e8995638cc27feec99d.zip
u-boot-imx-e118e233a89ac021ffc69e8995638cc27feec99d.tar.gz
u-boot-imx-e118e233a89ac021ffc69e8995638cc27feec99d.tar.bz2
- Update NAND FLASH support.
Diffstat (limited to 'board/esd/ash405')
-rw-r--r--board/esd/ash405/ash405.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/board/esd/ash405/ash405.c b/board/esd/ash405/ash405.c
index 39810c7..4cb5183 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 <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