summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas Gleixner <[email protected]>2016-07-12 20:28:10 +0200
committerTom Rini <[email protected]>2016-07-22 09:52:59 -0400
commite1a89e9358b8cedd98ad346cccd08e1bca669072 (patch)
treebf805385c03db88536c2de4531ae63c9e8126f33 /include
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 <[email protected]> Signed-off-by: Ladislav Michl <[email protected]> Acked-by: Scott Wood <[email protected]> Reviewed-by: Tom Rini <[email protected]> Reviewed-by: Heiko Schocher <[email protected]>
Diffstat (limited to 'include')
-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