Re: [U-Boot] support for spansion s29gl-p flash?

2010-04-23 Thread txema lopez
Hi Aditya.

I found some problems with the Numonyx Flash and the U-Boot cfi driver
in a PowerPC big endian architecture.

See: http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/72598


Cheers,

Txema

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] support for spansion s29gl-p flash?

2010-04-23 Thread txema lopez

Hi Aditya,

 I see that you had submitted a potential patch, did it make it into the
 code-base? 

I can't understand what exactly your question is. The patch was not
formal and It was only tested in a MPC5200 based board. When I sent
the patch I did not receive any feedback from the cfi driver custodians.
So, I don't know if someone is working in a formal patch.

Cheers,
Txema.

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] support for spansion s29gl-p flash?

2010-04-23 Thread Stefan Roese
Hi Txema,

On Friday 23 April 2010 08:26:38 txema lopez wrote:
 I found some problems with the Numonyx Flash and the U-Boot cfi driver
 in a PowerPC big endian architecture.
 
 See: http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/72598

IIRC, then you problem was more related to using an 8bit wide chip (chip-
width) on an 16bit port-width, than being a specific Numonyx issue. Correct?

Cheers,
Stefan

--
DENX Software Engineering GmbH,  MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: off...@denx.de
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] support for spansion s29gl-p flash?

2010-04-23 Thread Stefan Roese

On Friday 23 April 2010 09:00:58 Aditya Ojha (adojha) wrote:
 Thanks Txema.  I might be hitting the same problem with the Numonyx
 flash.  I will check enabling debugs.
 I see that you had submitted a potential patch, did it make it into the
 code-base?

No. The patch was not in a state of being added to the mainline repository, 
I'm afraid.

But back to your question: Do you use 16bit or 8bit chip-width in your design? 
I suspect that you will have no problems when using 16bit.

Cheers,
Stefan

--
DENX Software Engineering GmbH,  MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: off...@denx.de
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] support for spansion s29gl-p flash?

2010-04-23 Thread txema lopez
Hi Stefan,

 IIRC, then you problem was more related to using an 8bit wide chip (chip-
 width) on an 16bit port-width, 

Yes, it is our board flash layout.

 than being a specific Numonyx issue. Correct?
 
But the same board with a Spansion S29GL flash is fully supported by
U-Boot, so, I think It is a Numonyx issue.

Txema.



___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] support for spansion s29gl-p flash?

2010-04-23 Thread Stefan Roese
Hi Txema,

On Friday 23 April 2010 10:36:24 txema lopez wrote:
  IIRC, then you problem was more related to using an 8bit wide chip (chip-
  width) on an 16bit port-width,
 
 Yes, it is our board flash layout.

OK. So you are using 2 chips interleaved on this 16bit bus (one on lower 8bits 
and one on higher 8bits), right?
 
  than being a specific Numonyx issue. Correct?
 
 But the same board with a Spansion S29GL flash is fully supported by
 U-Boot, so, I think It is a Numonyx issue.

I see. Did you check the Linux MTD drivers, if there is a Numonyx special 
handling here?

Thanks.

Cheers,
Stefan

--
DENX Software Engineering GmbH,  MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: off...@denx.de
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] support for spansion s29gl-p flash?

2010-04-23 Thread txema lopez
Hi Stefan,

 OK. So you are using 2 chips interleaved on this 16bit bus (one on lower 
 8bits 
 and one on higher 8bits), right?
  No, I misunderstood yor last e-mail.  Our layout is:
The flash chip is 16x/8x capable but is configured in 8x mode ( _BYTE
pin to GND). 
Only the low 8 data bits from the processor are connected to the flash
data bits. 
So, I think our layout is chip_width = 8 and port_width = 8. Is it
correct?

This is the flinfo report from U-Boot. It's from a Spansion flash board
but the Numonyx flash board has the same layout.

Bank # 1: CFI conformant FLASH (8 x 8)  Size: 16 MB in 128 Sectors
  AMD Standard command set, Manufacturer ID: 0x01, Device ID: 0x7E2101
  Erase timeout: 4096 ms, write timeout: 1 ms
  Buffer write timeout: 3 ms, buffer size: 64 bytes



NOTE: I think the layout you point out could be supported by U-Boot.

  
 
 I see. Did you check the Linux MTD drivers, if there is a Numonyx special 
 handling here?
 
We are working with a 2.4.25 kernel version and the Numonyx is not fully
supported (our layout I'm quite sure not). We did some changes to fix
it, if you are interested in it I could submit you a patch.


Txema


___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] support for spansion s29gl-p flash?

2010-04-22 Thread Stefan Roese
Hi Aditya,

On Friday 23 April 2010 03:35:59 Aditya Ojha (adojha) wrote:
 Does the latest u-boot include support for these flash families:
 - Spansion S29GL-P MirrorBit flash family or
 - Numonyx Axcell M29EW

The common CFI driver (drivers/mtd/cfi_flash.c) should be able to support all 
CFI compliant FLASH types. The Spansion ones are definitely supported. I 
suggest you take a look at the Numonyx datasheets to see if they are CFI 
compliant. If yes, this driver should support them as well.

Cheers,
Stefan

--
DENX Software Engineering GmbH,  MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: off...@denx.de
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot