
Legacy NAND is marked for feature removal after April 2009 (i.e. this upcoming release). There are still several boards that reference it (though many do so only for disk-on-chip support which has been silently disabled for a while now). These boards will now fail to build with
The plan is to remove the code outright in the next release, along with any board code that refers to it (such as board/esd/common/auto_update.c).
Signed-off-by: Scott Wood scottwood@freescale.com --- Applied to u-boot-nand-flash.
common/cmd_doc.c | 4 ++++ drivers/mtd/nand_legacy/nand_legacy.c | 3 +++ 2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/common/cmd_doc.c b/common/cmd_doc.c index e2d4a42..cd221fc 100644 --- a/common/cmd_doc.c +++ b/common/cmd_doc.c @@ -14,6 +14,10 @@ #include <linux/mtd/nftl.h> #include <linux/mtd/doc2000.h>
+#error This code is broken and will be removed outright in the next release. +#error If you need diskonchip support, please update +#error drivers/mtd/nand/diskonchip.c to work with u-boot. + /* * ! BROKEN ! * diff --git a/drivers/mtd/nand_legacy/nand_legacy.c b/drivers/mtd/nand_legacy/nand_legacy.c index 441780a..d9ae9c7 100644 --- a/drivers/mtd/nand_legacy/nand_legacy.c +++ b/drivers/mtd/nand_legacy/nand_legacy.c @@ -18,6 +18,9 @@ #include <linux/mtd/nand_ids.h> #include <jffs2/jffs2.h>
+#error Legacy NAND is deprecated. Please convert to the current NAND interface. +#error This code will be removed outright in the next release. + #ifdef CONFIG_OMAP1510 void archflashwp(void *archdata, int wp); #endif