From: Wolfgang Denk Date: Sat, 24 Apr 2010 00:29:22 +0200 Subject: [U-Boot] da850/L138 SPI flash transfer speed In-Reply-To: <4D573595-069A-4490-AF2D-38ED3AAD70EB@audioscience.com> References: <4D573595-069A-4490-AF2D-38ED3AAD70EB@audioscience.com> Message-ID: <20100423222922.E454A1EC6E@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Delio Brignoli, please mind the NetiQuette and restrict your line length to some 70 charatcers or so. Thanks. In message <4D573595-069A-4490-AF2D-38ED3AAD70EB@audioscience.com> you wrote: > > I am working on reducing boot time on an L138 EVM and SPI flash transfer speed is currently the worst offender. U-Boot transfers from the SPI flash at 0.6Mbytes/s, this a lot slower than I would expect for a 50MHz SPI clock. Using a scope we found that > the chip select is active throughout the transfer (as expected), we see ~160ns bursts of activity on the clock line for each byte transferred (8 bits @ 50MHz) with 1us idle periods in between. Where does the 1us delay between byte transfers come from? I > s reading data bytes from the SPI registers very slow or is writing to RAM one byte at a time slowing the transfer? Everything is slow as caches are not enabled. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Our missions are peaceful -- not for conquest. When we do battle, it is only because we have no choice. -- Kirk, "The Squire of Gothos", stardate 2124.5