public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* CFI and driver code for AM29LV320D ..newbie query
@ 2002-10-10 11:13 vijay vijay
  2002-10-10 11:59 ` David Woodhouse
  0 siblings, 1 reply; 6+ messages in thread
From: vijay vijay @ 2002-10-10 11:13 UTC (permalink / raw)
  To: linux-mtd

Hi Friends,

Am a newbie to flash drivers / cfi.
Have a query. Can I get CFI and driver code for AM29LV320D anywhere?.
Going thru AMD site found some cfi code, but it didn't have reference
to this flash.
Do I need to start from scratch for writing the driver and adding CFI
compatibility?. How to find it device id?.

Would be great if you could give some pointers where to begin...

Thanks and Regards,
Vijay

_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com

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

* Re: CFI and driver code for AM29LV320D ..newbie query
  2002-10-10 11:13 vijay vijay
@ 2002-10-10 11:59 ` David Woodhouse
  0 siblings, 0 replies; 6+ messages in thread
From: David Woodhouse @ 2002-10-10 11:59 UTC (permalink / raw)
  To: vijay vijay; +Cc: linux-mtd

vijay_peshkar@hotmail.com said:
> Have a query. Can I get CFI and driver code for AM29LV320D anywhere?.
> Going thru AMD site found some cfi code, but it didn't have reference
> to this flash.

The whole point in CFI is that you don't _need_ to have a specific 
reference to the chip in question. The standard Linux drivers should drive 
it just fine.

With the exception that AMD managed to screw up the CFI table on some of 
the chips -- but we work around that.

--
dwmw2

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

* Re: CFI and driver code for AM29LV320D ..newbie query
@ 2002-10-10 12:29 vijay vijay
  2002-10-10 12:33 ` David Woodhouse
  0 siblings, 1 reply; 6+ messages in thread
From: vijay vijay @ 2002-10-10 12:29 UTC (permalink / raw)
  To: linux-mtd; +Cc: vijay.peshkar

David,

OK. So a 0x98 write to (0x55 + flash_baseptr) and then a read at 
flash_baseptr should give me all the CFI query related data. Right?.

Sorry for the dumb question. My second day at development on linux ;)
Where do I get the code for the standard linux driver for flash.

Thanks and Regards,
Vijay


> > Have a query. Can I get CFI and driver code for AM29LV320D anywhere?.
> > Going thru AMD site found some cfi code, but it didn't have reference
> > to this flash.
>
>The whole point in CFI is that you don't _need_ to have a specific
>reference to the chip in question. The standard Linux drivers should drive
>it just fine.
>
>With the exception that AMD managed to screw up the CFI table on some of
>the chips -- but we work around that.
>
>--
>dwmw2




_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx

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

* Re: CFI and driver code for AM29LV320D ..newbie query
  2002-10-10 12:29 vijay vijay
@ 2002-10-10 12:33 ` David Woodhouse
  0 siblings, 0 replies; 6+ messages in thread
From: David Woodhouse @ 2002-10-10 12:33 UTC (permalink / raw)
  To: vijay vijay; +Cc: linux-mtd, vijay.peshkar

vijay_peshkar@hotmail.com said:
>  OK. So a 0x98 write to (0x55 + flash_baseptr) and then a read at
> flash_baseptr should give me all the CFI query related data. Right?.

Er, I mean that calling the 'cfi_probe' function should return you a full
MTD driver for the appropriate chip. You don't need to know the details, 
except that you need to turn on the appropriate CFI probing and AMD command 
set code in your kernel.

> Sorry for the dumb question. My second day at development on linux ;)
> Where do I get the code for the standard linux driver for flash.

See drivers/mtd/maps/physmap.c and configure it with the appropriate 
parameters for how the flash is wired up on your boards.

--
dwmw2

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

* Re: CFI and driver code for AM29LV320D ..newbie query
@ 2002-10-10 13:29 vijay vijay
  2002-10-10 13:44 ` David Woodhouse
  0 siblings, 1 reply; 6+ messages in thread
From: vijay vijay @ 2002-10-10 13:29 UTC (permalink / raw)
  To: linux-mtd; +Cc: vijay.peshkar

David,

Thanks. Do we have a list of devices supported by the mtd code?. Searching 
thru the code,embeddedLinuxWorks.com/db.html and
linux-mtd.infradead.org, am still unable to locate any reference
(part number / device id?) to AM29LV320D while
the rest of the AMD family(and rest of the families) seems to be there!!!.

Please let me know what I am missing..

regards,
Vijay


>From: David Woodhouse <dwmw2@infradead.org>
>To: "vijay vijay" <vijay_peshkar@hotmail.com>
>CC: linux-mtd@lists.infradead.org, vijay.peshkar@wipro.com
>Subject: Re: CFI and driver code for AM29LV320D ..newbie query Date: Thu, 
>10 Oct 2002 13:33:08 +0100
>
>
>vijay_peshkar@hotmail.com said:
> >  OK. So a 0x98 write to (0x55 + flash_baseptr) and then a read at
> > flash_baseptr should give me all the CFI query related data. Right?.
>
>Er, I mean that calling the 'cfi_probe' function should return you a full
>MTD driver for the appropriate chip. You don't need to know the details,
>except that you need to turn on the appropriate CFI probing and AMD command
>set code in your kernel.
>
> > Sorry for the dumb question. My second day at development on linux ;)
> > Where do I get the code for the standard linux driver for flash.
>
>See drivers/mtd/maps/physmap.c and configure it with the appropriate
>parameters for how the flash is wired up on your boards.
>
>--
>dwmw2




_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx

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

* Re: CFI and driver code for AM29LV320D ..newbie query
  2002-10-10 13:29 CFI and driver code for AM29LV320D ..newbie query vijay vijay
@ 2002-10-10 13:44 ` David Woodhouse
  0 siblings, 0 replies; 6+ messages in thread
From: David Woodhouse @ 2002-10-10 13:44 UTC (permalink / raw)
  To: vijay vijay; +Cc: linux-mtd, vijay.peshkar

vijay_peshkar@hotmail.com said:
>  Thanks. Do we have a list of devices supported by the mtd code?.
> Searching  thru the code,embeddedLinuxWorks.com/db.html and
> linux-mtd.infradead.org, am still unable to locate any reference (part
> number / device id?) to AM29LV320D while the rest of the AMD
> family(and rest of the families) seems to be there!!!.

> Please let me know what I am missing..

The whole point of CFI is that devices no longer need to be explicitly 
listed. It should work fine if it's CFI-compliant unless it's a random new 
CFI command set -- which it isn't; it's the standard AMD command set.


--
dwmw2

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

end of thread, other threads:[~2002-10-10 13:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-10 13:29 CFI and driver code for AM29LV320D ..newbie query vijay vijay
2002-10-10 13:44 ` David Woodhouse
  -- strict thread matches above, loose matches on Subject: below --
2002-10-10 12:29 vijay vijay
2002-10-10 12:33 ` David Woodhouse
2002-10-10 11:13 vijay vijay
2002-10-10 11:59 ` David Woodhouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox