diff options
author | Matthias Fuchs <matthias.fuchs@esd-electronics.com> | 2007-07-09 10:10:04 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2007-07-09 10:55:39 +0200 |
commit | e09f7ab5749c345f924da272bea0521a73af5b11 (patch) | |
tree | 6db709a05951319036aa21f46508b7b4df46e5ba /board/esd/common/auto_update.c | |
parent | 10e038932f22ee80ebd53de312531e70e6590a2f (diff) |
Migrate esd 405EP boards to new NAND subsystem
This patch prepares the migration from the legacy NAND driver
to U-Boot's new NAND subsystem for esd boards.
Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
Diffstat (limited to 'board/esd/common/auto_update.c')
-rw-r--r-- | board/esd/common/auto_update.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/board/esd/common/auto_update.c b/board/esd/common/auto_update.c index 001fd68da4..b5f7722022 100644 --- a/board/esd/common/auto_update.c +++ b/board/esd/common/auto_update.c @@ -31,7 +31,9 @@ #include <command.h> #include <image.h> #include <asm/byteorder.h> +#if defined(CFG_NAND_LEGACY) #include <linux/mtd/nand_legacy.h> +#endif #include <fat.h> #include <part.h> @@ -294,6 +296,8 @@ int au_do_update(int i, long sz) rc = nand_legacy_rw(nand_dev_desc, NANDRW_WRITE | NANDRW_JFFS2, start, nbytes, (size_t *)&total, (uchar *)addr); debug ("nand_legacy_rw: ret=%x total=%d nbytes=%d\n", rc, total, nbytes); +#else + rc = -1; #endif } if (rc != 0) { |