All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] TRAB: Flash Am29LV320DB confusion
@ 2005-01-25 11:00 triloksoni
  2005-01-25 12:01 ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: triloksoni @ 2005-01-25 11:00 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [U-Boot-Users] TRAB: Flash Am29LV320DB confusion
@ 2005-01-25 11:14 Bharath
  0 siblings, 0 replies; 5+ messages in thread
From: Bharath @ 2005-01-25 11:14 UTC (permalink / raw)
  To: u-boot

Hi Trilok,

>the datasheet : Eight 8 Kbytes sector and Sixty Three 64Kbytes sectors. 
>Then why this code hasmentioned remaining sector size as 128Kbytes :

	I guess he is using 2 Flash Devices on his board, 2 * 16bit devices
,so he would have a total sector size of one chip * 2,

Hope this helps,

Cheers,

.Bharath.

PS : I havent used this device or neither have i read its datasheet, this is
just my interpretation from the flash functions.



"The best accelerator available for a Windows PC is one that causes it to go
at 9.81 m/s2." 
DISCLAIMER 
This message and any attachment(s) contained here are information that is confidential, proprietary to HCL Technologies 
and its customers. Contents may be privileged or otherwise protected by law. The information is solely intended for the 
individual or the entity it is addressed to. If you are not the intended recipient of this message, you are not authorized to 
read, forward, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, 
please notify the sender immediately by return e-mail and delete it from your computer

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-01-26 14:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-25 11:00 [U-Boot-Users] TRAB: Flash Am29LV320DB confusion triloksoni
2005-01-25 12:01 ` Wolfgang Denk
2005-01-26 13:48   ` Peter Asemann
2005-01-26 14:30     ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2005-01-25 11:14 Bharath

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.