projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git://git.denx.de/u-boot-video
[oweals/u-boot.git]
/
onenand_ipl
/
onenand_ipl.h
diff --git
a/onenand_ipl/onenand_ipl.h
b/onenand_ipl/onenand_ipl.h
index 57e54f5cbcd0e1560fcead398901a307a716ea1b..7ebb3e32ddb9663e3e07c5919280477b19270601 100644
(file)
--- a/
onenand_ipl/onenand_ipl.h
+++ b/
onenand_ipl/onenand_ipl.h
@@
-23,15
+23,14
@@
#include <linux/mtd/onenand_regs.h>
#include <linux/mtd/onenand_regs.h>
-#define onenand_readw(a) readw(
a
)
-#define onenand_writew(v, a) writew(v,
a
)
+#define onenand_readw(a) readw(
THIS_ONENAND(a)
)
+#define onenand_writew(v, a) writew(v,
THIS_ONENAND(a)
)
#define THIS_ONENAND(a) (CONFIG_SYS_ONENAND_BASE + (a))
#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)
-#define ONENAND_PAGE_SIZE 2048
-
-extern int onenand_read_block
0
(unsigned char *buf);
+extern int (*onenand_read_page)(ulong block, ulong page,
+ u_char *buf, int pagesize);
+extern int onenand_read_block(unsigned char *buf);
#endif
#endif