summaryrefslogtreecommitdiff
path: root/include/nand.h
diff options
context:
space:
mode:
authorSimon Schwarz <simonschwarzcor@googlemail.com>2011-09-14 15:30:16 -0400
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-09-30 22:00:54 +0200
commit12c2f1ee3c3e26950b39b779db4b6636759778ff (patch)
tree0d5ff19233dad1274a905c3ec5fd7bd662e3353e /include/nand.h
parentbb085b87e587b5ea98519d95c8b24f603d91360a (diff)
downloadu-boot-12c2f1ee3c3e26950b39b779db4b6636759778ff.tar.gz
spl: add NAND Library to new SPL
Adds NAND library to SPL. Signed-off-by: Simon Schwarz <simonschwarzcor@gmail.com> Acked-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
Diffstat (limited to 'include/nand.h')
-rw-r--r--include/nand.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/nand.h b/include/nand.h
index 3c5ef4e3c4..b4140794c5 100644
--- a/include/nand.h
+++ b/include/nand.h
@@ -132,9 +132,12 @@ int nand_lock( nand_info_t *meminfo, int tight );
int nand_unlock( nand_info_t *meminfo, ulong start, ulong length );
int nand_get_lock_status(nand_info_t *meminfo, loff_t offset);
-void nand_spl_load_image(loff_t offs, unsigned int size, uchar *dst);
+int nand_spl_load_image(uint32_t offs, unsigned int size, void *dst);
void nand_deselect(void);
+void nand_read_buf16(struct mtd_info *mtd, uint8_t *buf, int len);
+void nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len);
+
#ifdef CONFIG_SYS_NAND_SELECT_DEVICE
void board_nand_select_device(struct nand_chip *nand, int chip);
#endif