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:
817f291
)
OneNAND: Mask the density
author
Kyungmin Park
<kyungmin.park@samsung.com>
Sat, 29 Aug 2009 03:00:03 +0000
(12:00 +0900)
committer
Kyungmin Park
<kyungmin.park@samsung.com>
Sat, 29 Aug 2009 03:00:03 +0000
(12:00 +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
0880de3
..
079b53f
100644
(file)
--- a/
onenand_ipl/onenand_read.c
+++ b/
onenand_ipl/onenand_read.c
@@
-105,6
+105,7
@@
static int onenand_generic_init(int *page_is_4KiB, int *page)
*page_is_4KiB = 1;
dev_id = onenand_readw(ONENAND_REG_DEVICE_ID);
density = dev_id >> ONENAND_DEVICE_DENSITY_SHIFT;
+ density &= ONENAND_DEVICE_DENSITY_MASK;
if (density >= ONENAND_DEVICE_DENSITY_4Gb &&
!(dev_id & ONENAND_DEVICE_IS_DDP))
*page_is_4KiB = 1;