Skip to contentSkip to conversation

No subject

DISCUSSION [email protected] 1 participant 1 message Jan 23, 2009

lore
Share & tools
lore
#0 lore raw

"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

Quoted 8 lines
Quoted 8 lines
drivers/mtd/nand/atmel_nand.c +0 -0
index ab8bbb3..bda117a 100644
@@ -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;
 
Quoted 9 lines

drivers/mtd/nand/atmel_nand.c static void at91_nand_hwcontrol(struct mtd_info *mtd, · line 258

Quoted 7 lines
drivers/mtd/nand/atmel_nand.c +5 -0
+		/*
+		 * 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

Quoted 2 lines

-Scott

I will resend it

Michael