[ECOS] IO_Flash & DataFlash
Savin Zlobec
savin@elatec.si
Wed Sep 29 14:24:00 GMT 2004
Andrew Lunn wrote:
>On Tue, Aug 31, 2004 at 12:06:20PM +0200, Savin Zlobec wrote:
>
>
>>Hi,
>>
>>I'am writing a DataFlash driver and I would like to use it also through
>>the io_flash API,
>>but it seems that the io_flash only supports 2^n block sizes (judging by
>>the calculation
>>and usage of block_mask). DataFlash memory array is divided into 3
>>levels - sectors,
>>blocks and pages of wich none has 2^n size.
>>
>>Supporting this in io_flash is probably just a matter of some ifdefs in
>>read/program/erase
>>functions - is this correct ? But does anything else (RedBoot, jffs2,
>>...) also depend on
>>2^n block sizes ?
>>
>>
>
>Hi Savin
>
>I just committed these patches which means the the flash_v2 code
>should not support arbitary size blocks. Please let me know if this
>works for the DataFlash, i've only been able to test with a synthetic
>flash driver.
>
>
Running some tests I've come across a problem with block alignment when
flash
start address in not a multiple of its block size, the attached patch
solves that by
calculating the block offset from relative position (to the flash start)
not the absolute.
Included are also a couple of typo fixes.
savin
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: flash_v2.diff
URL: <http://sourceware.org/pipermail/ecos-patches/attachments/20040929/d1e1753e/attachment.ksh>
More information about the Ecos-patches
mailing list