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

* [U-Boot-Users] TRAB: Flash Am29LV320DB confusion
  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
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2005-01-25 12:01 UTC (permalink / raw)
  To: u-boot

Dear Trilok,

in message <41F626C8.5070906@emuzed.com> you wrote:
> 
> the datasheet : Eight 8 Kbytes sector and Sixty Three 64Kbytes sectors. 
> Then why this code has
> mentioned remaining sector size as 128Kbytes :

There are 2 flash chips in parallel to have a 2 x 16 =  32  bit  wide
bus, and 2 x 64 KiB = 128 KiB.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Roses are red
Violets are blue
Some poems rhyme

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

* [U-Boot-Users] TRAB: Flash Am29LV320DB confusion
  2005-01-25 12:01 ` Wolfgang Denk
@ 2005-01-26 13:48   ` Peter Asemann
  2005-01-26 14:30     ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Asemann @ 2005-01-26 13:48 UTC (permalink / raw)
  To: u-boot

Btw.: Will an AM29LV320D work with the cfi_flash generic driver? Does 
anybody know that?

Best regards,

Peter Asemann

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

* [U-Boot-Users] TRAB: Flash Am29LV320DB confusion
  2005-01-26 13:48   ` Peter Asemann
@ 2005-01-26 14:30     ` Wolfgang Denk
  0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2005-01-26 14:30 UTC (permalink / raw)
  To: u-boot

In message <41F79FC0.9000901@web.de> you wrote:
> Btw.: Will an AM29LV320D work with the cfi_flash generic driver? Does 
> anybody know that?

Yes. Yes.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
There are some things worth dying for.
	-- Kirk, "Errand of Mercy", stardate 3201.7

^ 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.