summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.(none)>2005-11-02 14:29:12 +0100
committerWolfgang Denk <wd@pollux.(none)>2005-11-02 14:29:12 +0100
commit8e9655f863246db60c51140153186acc2afdc855 (patch)
tree5bf681d78aaac91aac3ddaeef4972752cba33816 /include
parentac7eb8a315e25863637a8d2c02af18815458b63f (diff)
downloadu-boot-imx-8e9655f863246db60c51140153186acc2afdc855.zip
u-boot-imx-8e9655f863246db60c51140153186acc2afdc855.tar.gz
u-boot-imx-8e9655f863246db60c51140153186acc2afdc855.tar.bz2
* Add hook to NAND erase and implement nand_wait function.
Patch by Mike Rapoport, 01 Nov 2005 Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Diffstat (limited to 'include')
-rw-r--r--include/nand.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/nand.h b/include/nand.h
index 6dbaa42..3490347 100644
--- a/include/nand.h
+++ b/include/nand.h
@@ -50,7 +50,14 @@ static inline int nand_block_isbad(nand_info_t *info, ulong ofs)
static inline int nand_erase(nand_info_t *info, ulong off, ulong size)
{
- return 0; /* FIXME */
+ struct erase_info instr;
+
+ instr.mtd = info;
+ instr.addr = off;
+ instr.len = size;
+ instr.callback = 0;
+
+ return info->erase(info, &instr);
}
#endif