
7 Jun
2011
7 Jun
'11
2:33 p.m.
+#ifdef CONFIG_SYS_NDFC_16BIT /* Shift the offset from byte addressing to word addressing. */
- if (this->options & NAND_BUSWIDTH_16)
offs >>= 1;
- offs >>= 1;
+#endif
This is not an NDFC-specific file.
Oh, yeah, I see. This should not have been swapped to a preprocessor condition. Could we make a general define for 16 bit NAND not just limited to the NDFC? Or would you rather just have the extra if condition despite the extra code space it takes up?
Regards, Alex
--
Alex Waterman
Computer Engineer
Phone: 215-896-4920
Email: awaterman@dawning.com