From mboxrd@z Thu Jan 1 00:00:00 1970 From: triloksoni Date: Tue, 25 Jan 2005 16:30:24 +0530 Subject: [U-Boot-Users] TRAB: Flash Am29LV320DB confusion Message-ID: <41F626C8.5070906@emuzed.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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