summaryrefslogtreecommitdiff
path: root/include/nand.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2016-07-12 20:28:10 +0200
committerTom Rini <trini@konsulko.com>2016-07-22 09:52:59 -0400
commite1a89e9358b8cedd98ad346cccd08e1bca669072 (patch)
treebf805385c03db88536c2de4531ae63c9e8126f33 /include/nand.h
parent05fc5ef161779ed1b0b479e8d085026d6994731a (diff)
nand_spl_simple: Add a simple NAND read function
To support UBI in SPL we need a simple NAND read function. Add one to nand_spl_simple and keep it as simple as it goes. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ladislav Michl <ladis@linux-mips.org> Acked-by: Scott Wood <oss@buserror.net> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'include/nand.h')
-rw-r--r--include/nand.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/nand.h b/include/nand.h
index a4f0f9253d8..627b21769b7 100644
--- a/include/nand.h
+++ b/include/nand.h
@@ -122,6 +122,7 @@ int nand_unlock(struct mtd_info *mtd, loff_t start, size_t length,
int nand_get_lock_status(struct mtd_info *mtd, loff_t offset);
int nand_spl_load_image(uint32_t offs, unsigned int size, void *dst);
+int nand_spl_read_block(int block, int offset, int len, void *dst);
void nand_deselect(void);
#ifdef CONFIG_SYS_NAND_SELECT_DEVICE