From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlev Zundel Date: Fri, 29 Jun 2007 13:56:08 +0200 Subject: [U-Boot-Users] U-boot ColdFire development In-Reply-To: <4791E710007FEB4BBF83775D787F462F047A3F6C@az33exm22.fsl.freescale.net> (Liew Tsi Chung-r5aahp's message of "Tue\, 26 Jun 2007 23\:55\:46 -0700") References: <4791E710007FEB4BBF83775D787F462F04749339@az33exm22.fsl.freescale.net> <200706141057.32860.sr@denx.de> <4791E710007FEB4BBF83775D787F462F047A37B4@az33exm22.fsl.freescale.net> <200706220746.50091.sr@denx.de> <4791E710007FEB4BBF83775D787F462F047A3F6C@az33exm22.fsl.freescale.net> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Liew, >> Are you sure that you need this board specific flash driver? >> Can't you use the common CFI flash driver? What FLASH chips >> are used on the board? > > There is no speed performance in erasing and reading between common CFI > flash driver and board specific flash driver, except programming. CFI > flash driver needs ~80s to program 1MB data compare to board specific > flash driver needs only ~14s. User has a choice to select them either by > define or undef CFG_FLASH_CFI in configuration file. If there is a 8MB > flash, it would take about 640s compare to 112s. Big different. I might > have missed a define for common flash driver in configuration file that > might caused slow programming in flash, if I do please let me know. I think Stefans intention of the question was a little bit different. For the maintainability of U-Boot we should strive to share as many code as possible between different boards, so for quite sometime now we generally(*) encourage people to use the CFI driver in order to achieve this goal. I am not at all convinced that even a factor of two in programming times can compensate for the added complexity of Yet Another Custom Flash Driver. What would really be interesting is to find out why the CFI driver is slower. I think fixing this will be a much more worthwhile contribution to U-Boot as a whole. Thanks Detlev (*) Wolfgang happily allows exceptions for resource limited setups. -- A statistician can have his head in an oven and his feet in ice, and he will say that on the average he feels fine. -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de