NAND Flash Framework for review

Rafal Jaworowski raj at semihalf.com
Wed Mar 17 14:36:57 UTC 2010


On 2010-03-16, at 12:59, Grzegorz Bernacki wrote:

> Andrew Turner wrote:
>> On Mon, 15 Mar 2010 12:14:31 +0100
>> Grzegorz Bernacki <gjb at semihalf.com> wrote:
>>>>> Chip drivers:
>>>>> - lnand and snand have magic numbers to figure out which drive to
>>>>> use. We should move these to a flag in the chip parameters.
>>>> We just need to add the chip size in nand_params and based on that
>>>> we can calculate the number of address cycles (see below) and the
>>>> type of chip (if chip >= 128MB and pagesize > 512 then you have a
>>>> large page device).
>>>> 
>>> Yes, I was thinking about adding size of page and column address to
>>> parameters of nfc_send_address.
>> Why not just send each address byte separately like when the command is
>> sent? This will then push the requirement to know how many address
>> bytes to the chip driver.
> 
> I choose to send whole address in one call to make implementation of mpc8572
> driver easier. This controller requires to divide address into block number and
> page & column number and write them into corresponding registers. It would be
> complicated (however, not impossible) to combine full address from bytes sending
> via consecutive nfc_send_address calls. On the other hand sending whole address
> in one call should not complicated drivers for controllers which just send address
> byte after byte.

For Andrewa nad Luiz reference I have submitted the existing MPC85XX NAND back-end driver to the P4 branch.

Rafal



More information about the freebsd-embedded mailing list