summaryrefslogtreecommitdiff
path: root/onenand_ipl/onenand_ipl.h
diff options
context:
space:
mode:
Diffstat (limited to 'onenand_ipl/onenand_ipl.h')
-rw-r--r--onenand_ipl/onenand_ipl.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/onenand_ipl/onenand_ipl.h b/onenand_ipl/onenand_ipl.h
index 412572a08..7ebb3e32d 100644
--- a/onenand_ipl/onenand_ipl.h
+++ b/onenand_ipl/onenand_ipl.h
@@ -28,8 +28,9 @@
#define THIS_ONENAND(a) (CONFIG_SYS_ONENAND_BASE + (a))
-#define READ_INTERRUPT() \
- onenand_readw(THIS_ONENAND(ONENAND_REG_INTERRUPT))
+#define READ_INTERRUPT() onenand_readw(ONENAND_REG_INTERRUPT)
+extern int (*onenand_read_page)(ulong block, ulong page,
+ u_char *buf, int pagesize);
extern int onenand_read_block(unsigned char *buf);
#endif