Migrate esd 405EP boards to new NAND subsystem
PATCH 1/3 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 <[email protected]>
---
commit aa6e97ca6365f942967f2d062dc6b3998348eb2c
tree ca98892406f65dc5b8dd2a3ee48bc76cdcd778e4
parent a42ff53a22ba9c42c45b4d987a956ab3339836dc
author Matthias Fuchs <[email protected]> Mon, 09 Jul 2007 09:47:27 +0200 committer Matthias Fuchs <[email protected]> Mon, 09 Jul 2007 09:47:27 +0200
board/esd/common/auto_update.c | 4 ++ board/esd/common/esd405ep_nand.c | 87 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+), 0 deletions(-)
board/esd/common/auto_update.c +4 -0
@@ -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 ) {
board/esd/common/esd405ep_nand.c new file +87 -0
87 lines not on this page · raw message
PATCH 1/3 Migrate esd 405EP boards to new NAND subsystem
Hi Matthias,
Quoted 2 lines · Matthias Fuchs
This patch prepares the migration from the legacy NAND driver to U-Boot's new NAND subsystem for esd boards.
All 3 patches applied to u-boot-nand-flash.
Thanks.
Best regards,
Stefan