From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Asemann Date: Wed, 12 Jan 2005 15:43:52 +0100 Subject: [U-Boot-Users] .../board/fads/flash.c confuses me - give me a hint Message-ID: <41E537A8.8050006@web.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Im writing my own flash.c for "my" custom board in the moment. That's why I'm trying to understand what the flash.c does. I thought I got it when I encountered the following problem examining board/fads/flash.c All functions in there seem to be written to handle 4x8bit flash banks. As indication for that are - in my opinion - the QUAD_ID macro in line 41+ and the fact that 0xAAAAAAAA, 0x55555555 and 0x90909090 and not 0x00AA00AA, 0x00550055 and 0x00900090 are written in the auto select command sequence, beginning in line 227 (u-boot 1.1.2). But they do write to the addresses which are typical - my fine flash datasheet says - for word-mode flash access. So the data written seems not to fit the addresses written to. I'd be very happy if someone could give me a hint what I missed or what I got wrong or why it must be that way though. Peter Asemann