[PATCH] cfi_flash_intel: support 1024b buffer write

Sascha Hauer s.hauer at pengutronix.de
Wed Aug 4 04:00:51 EDT 2010


On Wed, Aug 04, 2010 at 09:48:48AM +0200, Eric Bénard wrote:
> Hi Sascha,
>
> Le 04/08/2010 09:42, Sascha Hauer a écrit :
>> On Fri, Jul 30, 2010 at 11:49:55AM +0200, Eric Bénard wrote:
>>> newer Numonyx Strataflash P3x have 1024b buffer, thus, it's possible
>>> to write a buffer size of 0x200 which the actual flash_write_cmd
>>> doesn't permit as it's limited to a uchar parameter.
>>
>> So I guess these chips have 16 data lines?
>>
> actual flash_write_cmd is also used on chips with 16 data lines (like  
> P30 or P33 Numonyx).

Yes. I meant that 8 wouldn't be enough because the command gets
wider than 8bit.

>
>>
> >Unfortunately this won't work when two of these are parallel. You'd have
>> to duplicate the command for the upper 16 bit.
>>
> Does actual flash_write_cmd works when 2 chips are parallel ?

At least it's supposed to ;)

See flash_make_cmd, it iterates over all bytes in info->portwidth and
writes cmd or 0 into the buffer depending on info->chipwidth.

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list