summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2008-06-12 13:20:16 -0500
committerScott Wood <scottwood@freescale.com>2008-08-12 11:31:28 -0500
commitdfbf617ff055e4216f78d358b0867c548916d14b (patch)
tree0a969584e781b37b8244ea516c596d90d3fcb53f /include
parent984e03cdf1431bb593aeaa1b74c445d616f955d3 (diff)
downloadu-boot-imx-dfbf617ff055e4216f78d358b0867c548916d14b.zip
u-boot-imx-dfbf617ff055e4216f78d358b0867c548916d14b.tar.gz
u-boot-imx-dfbf617ff055e4216f78d358b0867c548916d14b.tar.bz2
NAND read/write fix
Implement block-skipping read/write, based on a patch from Morten Ebbell Hestens <morten.hestnes@tandberg.com>. Signed-off-by: Morten Ebbell Hestnes <morten.hestnes@tandberg.com> Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/nand.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/nand.h b/include/nand.h
index 83d597d..d5af432 100644
--- a/include/nand.h
+++ b/include/nand.h
@@ -108,9 +108,10 @@ struct nand_erase_options {
typedef struct nand_erase_options nand_erase_options_t;
-int nand_write_opts(nand_info_t *mtd, loff_t to, mtd_oob_ops_t *ops);
-
-int nand_read_opts(nand_info_t *meminfo, const nand_read_options_t *opts);
+int nand_read_skip_bad(nand_info_t *nand, size_t offset, size_t *length,
+ u_char *buffer);
+int nand_write_skip_bad(nand_info_t *nand, size_t offset, size_t *length,
+ u_char *buffer);
int nand_erase_opts(nand_info_t *meminfo, const nand_erase_options_t *opts);
#define NAND_LOCK_STATUS_TIGHT 0x01