projects
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ead211
)
Fix wrong nblocks calculation at OneNAND IPL
author
Kyungmin Park
<kyungmin.park@samsung.com>
Sat, 5 Jun 2010 02:20:24 +0000
(11:20 +0900)
committer
Kyungmin Park
<kyungmin.park@samsung.com>
Sat, 5 Jun 2010 02:20:24 +0000
(11:20 +0900)
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
onenand_ipl/onenand_read.c
patch
|
blob
|
history
diff --git
a/onenand_ipl/onenand_read.c
b/onenand_ipl/onenand_read.c
index
3b0f02b
..
6511bc7
100644
(file)
--- a/
onenand_ipl/onenand_read.c
+++ b/
onenand_ipl/onenand_read.c
@@
-147,7
+147,7
@@
int onenand_read_block(unsigned char *buf)
} while (0);
#endif
- nblocks =
ALIGN(CONFIG_SYS_MONITOR_LEN, (1 << erase_shift))
;
+ nblocks =
(CONFIG_SYS_MONITOR_LEN + (1 << erase_shift) - 1) >> erase_shift
;
/* NOTE: you must read page from page 1 of block 0 */
/* read the block page by page */