
On Sunday 05 July 2009 22:34:39 Wolfgang Denk wrote:
i dont mind creating a dedicated command like "fl" that would act like "sf" in terms of reading/writing/erasing, but it still must be able to leverage the CFI code which means using the weak GPIO accessor functions.
Sounds like a plan.
I kind of like the idea to create a new set of commands for accessing such board specific NOR FLASH (can be used on "normal" NOR FLASH as well). Perhaps we could make it "generic" in a way that it can be used for all kind of "MTD devices". How about this "mtd" commandset:
Select MTD NOR device #1 (2nd NOR device): => mtd device nor 1
Or via mtdparts/mtdids: => mtd device nor0
After this selection the "mtd" commands could be used to access the FLASH device:
=> mtd erase => mtd read => mtd write
This way all these commands would be FLASH type independent. We could perhaps consolidate all those multiple commandsets (nand, onenand etc) into this one over time.
Best regards, Stefan
===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office@denx.de =====================================================================