From: Wolfgang Denk Date: Mon, 09 Feb 2004 21:42:51 +0100 Subject: [U-Boot-Users] Flash write problem on CSB226 In-Reply-To: Your message of "Wed, 28 Jan 2004 11:40:00 +0100." <40179180.7070608@imms.de> Message-ID: <20040209204256.577E5C108D@atlas.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 Hello, in message <40179180.7070608@imms.de> you wrote: > > So I suspected the write_buff function in boards/csb226/flash.c (which > wrote the two chips sequentially as two 16-bit words) and modified it to > access both chips in parallel as 32 bit (the flash_erase function > already works this way). > The flash write problem seems to be gone now. Did anyone else experience > such problems, or is just our board equipped with particularly unequal > or pernickety flash chips? If the erase function was already working that way it should be probably OK to use this for writes, too. > In the attached patch, the old functions are just #ifdef'd out and could > be easily reactivated. I removed the old code; if anybody should really need it it's in the CVS history. Thanks for the patch, added. > There's one more thing I'm unsure about: Which is the right place to set > the CPU clock? > In boards/csb226/memsetup.S it is set to a default value. In > cpu/pxa/start.S it is set to the configured CFG_CPUSPEED value, but > memsetup is called after this. I didn't care about the PXA yet, but "memsetup.S" should set up the memory controller; clocks should probably be set up in some cpu/pxa/ file. Best regards, Viele Gr??e, Wolfgang Denk -- See us @ Embedded World, Nuremberg, Feb 17 - 19, Hall 12.0 Booth 440 Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de : ... and it's got weird formatting - Notepad, Write, Works 3 can't : decipher it, and it's too big to go in DOS Edit. Help! Install an operating system. :-) -- Tom Christiansen