No subject


Fri Jan 23 11:48:37 CET 2009


"CE connection depends on the NAND Flash. For standard NAND Flash devices, it must be connected to any free PIO line.
For “CE don’t care” NAND Flash devices, it can be connected to either NCS3/NANDCS or to any free PIO line."

Hope that is more clear now. Linux use an hook to do it and u-boot a #define

>> diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c
>> index ab8bbb3..bda117a 100644
>> --- a/drivers/mtd/nand/atmel_nand.c
>> +++ b/drivers/mtd/nand/atmel_nand.c
>> @@ -249,8 +249,13 @@ static void at91_nand_hwcontrol(struct mtd_info *mtd,
>>  		if (ctrl & NAND_ALE)
>>  			IO_ADDR_W |= CONFIG_SYS_NAND_MASK_ALE;
>>  
>> +		/*
>> +		 * Nand CS don't care doesn't need the enable pin
>> +		 */
>> +#ifdef CONFIG_SYS_NAND_ENABLE_PIN
>>  		at91_set_gpio_value(CONFIG_SYS_NAND_ENABLE_PIN,
>>  				    !(ctrl & NAND_NCE));
>> +#endif
> New CONFIG symbols need to be documented, and this particular one should
> probably be less generic.
There is not a new CONFIG symbol, I just skip that code that is not necessary
for this type of NAND
> -Scott
>
I will resend it

Michael



More information about the U-Boot mailing list