diff options
author | Kyungmin Park <kmpark@infradead.org> | 2009-09-22 09:05:00 +0900 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2009-09-28 14:17:56 -0500 |
commit | ca6189db484882798f2a35a476c07e618e21f6d3 (patch) | |
tree | 08c3b20f7afcc675fbb08bb5c8f4bd9927cea5e3 /onenand_ipl/onenand_ipl.h | |
parent | a05e3f9a084fc8951d87745b3a91df246432df7d (diff) | |
download | u-boot-imx-ca6189db484882798f2a35a476c07e618e21f6d3.zip u-boot-imx-ca6189db484882798f2a35a476c07e618e21f6d3.tar.gz u-boot-imx-ca6189db484882798f2a35a476c07e618e21f6d3.tar.bz2 |
Refactor OneNAND IPL code
Refactoring the OneNAND IPL code
and some minor fixed:
- Remove unnecessary header file
- Fix wrong access at read interrupt
- The recent OneNAND has 4KiB pagesize
Also Board can override OneNAND IPL image
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'onenand_ipl/onenand_ipl.h')
-rw-r--r-- | onenand_ipl/onenand_ipl.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/onenand_ipl/onenand_ipl.h b/onenand_ipl/onenand_ipl.h index 412572a..7ebb3e3 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 |