[U-Boot-Users] TRAB: Flash Am29LV320DB confusion
triloksoni
trilok.soni at emuzed.com
Tue Jan 25 12:00:24 CET 2005
Hi All,
I was just going through the "flash.c" code of TRAB board. Which is having
AM29LV320D (2M x 16bit) flash chip. We are also going to use the same chip
for our new board in 16bit mode.
Confusion is in flash_init(...) code. As per the sector architecture
mentioned in
the datasheet : Eight 8 Kbytes sector and Sixty Three 64Kbytes sectors.
Then why this code has
mentioned remaining sector size as 128Kbytes :
board/trab/flash.c:
--------------snip-------------------------
switch (info->flash_id & FLASH_TYPEMASK) {
case (FLASH_AM320B & FLASH_TYPEMASK):
case (FLASH_MXLV320B & FLASH_TYPEMASK):
/* Boot sector type: 8 x 8 + N x 128 kB */
/* Why N x 128 kB?? It should be N x 64
kB. */
flashbase += (j < 8) ? 0x4000 : 0x20000;
break;
--------------snip-------------------------
Am I missing something ???
---Trilok Soni
More information about the U-Boot
mailing list