From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Thu, 24 Mar 2011 06:20:32 +0100 Subject: [U-Boot] CFI flash broken for 8-bit bus In-Reply-To: <201103232007.21642.Aaron.Williams@caviumnetworks.com> References: <201103172102.33681.Aaron.Williams@caviumnetworks.com> <4D8305D6.5060302@dawes.za.net> <201103232007.21642.Aaron.Williams@caviumnetworks.com> Message-ID: <201103240620.33099.sr@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 Hi Aaron, On Thursday 24 March 2011 04:07:21 Aaron Williams wrote: > I have it working on our 8-bit boards properly now, though I've only done > some limited testing. Good. > I basically put in the correct addresses into cfi_flash.h and updated > various addresses for 8-bit support. The problem was that the CFI code was > written using the 16-bit addresses which don't work for an 8-bit bus. > > I added a mask which is used to calculate the correct address for 16 and > 32- bit busses. I have only been able to test with 8-bit and 16-bit > Spansion devices though. Please post the patch on the list. I'll try to test it on some of my systems as well. Thanks. Cheers, 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 at denx.de