summaryrefslogtreecommitdiffstats
path: root/board/netvia
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-09-11 19:48:06 +0000
committerwdenk <wdenk>2003-09-11 19:48:06 +0000
commita43278a43d522fba7fea0ed3045b718a9c8d22ac (patch)
treec21920a271992ce76e5e679c3e3e8bb11054d356 /board/netvia
parent7205e4075d8b50e4dd89fe39ed03860b23cbb704 (diff)
downloadu-boot-a43278a43d522fba7fea0ed3045b718a9c8d22ac.tar.gz
u-boot-a43278a43d522fba7fea0ed3045b718a9c8d22ac.tar.xz
u-boot-a43278a43d522fba7fea0ed3045b718a9c8d22ac.zip
* Patch by Gary Jennejohn, 11 Sep 2003:
- allow for longer timeouts for USB mass storage devices * Patch by Denis Peter, 11 Sep 2003: - fix USB data pointer assignment for bulk only transfer. - prevent to display erased directories in FAT filesystem. * Change output format for NAND flash - make it look like for other memory, too
Diffstat (limited to 'board/netvia')
-rw-r--r--board/netvia/netvia.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/board/netvia/netvia.c b/board/netvia/netvia.c
index 9dd732b3c2..db36b228b4 100644
--- a/board/netvia/netvia.c
+++ b/board/netvia/netvia.c
@@ -420,16 +420,13 @@ int board_pre_init(void)
#include <linux/mtd/nand.h>
-extern void nand_probe(ulong physadr);
+extern ulong nand_probe(ulong physadr);
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) {
- nand_dev_desc[0].name = "NetVia NAND flash";
- 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