mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
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>
This commit is contained in:
parent
984e03cdf1
commit
dfbf617ff0
3 changed files with 194 additions and 611 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue