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:
d339302
)
OneNAND: Add CONFIG_ONENAND_START_PAGE
author
Kyungmin Park
<kyungmin.park@samsung.com>
Thu, 23 Jul 2009 04:39:24 +0000
(13:39 +0900)
committer
Kyungmin Park
<kyungmin.park@samsung.com>
Thu, 23 Jul 2009 04:39:24 +0000
(13:39 +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
07de8c4
..
ab654d0
100644
(file)
--- a/
onenand_ipl/onenand_read.c
+++ b/
onenand_ipl/onenand_read.c
@@
-107,8
+107,8
@@
static inline int onenand_read_page(ulong block, ulong page,
}
#endif
-#ifndef ONENAND_START_PAGE
-#define
ONENAND_START_PAGE
1
+#ifndef
CONFIG_
ONENAND_START_PAGE
+#define
CONFIG_ONENAND_START_PAGE
1
#endif
#define ONENAND_PAGES_PER_BLOCK 64
@@
-120,7
+120,7
@@
static inline int onenand_read_page(ulong block, ulong page,
int onenand_read_block(unsigned char *buf)
{
int block;
- int page = ONENAND_START_PAGE, offset = 0;
+ int page =
CONFIG_
ONENAND_START_PAGE, offset = 0;
int pagesize = 0, erase_shift = 0;
int erasesize = 0, nblocks = 0;