
Hi,
You can you use the CFI driver in /u-boot-1.1.1/drivers/cfi_flash.c. it's generic and working. I have used it with these boards: IceCube(MPC5200) and EP8260 without modification.
Tien
-----Original Message----- From: u-boot-users-admin@lists.sourceforge.net [mailto:u-boot-users-admin@lists.sourceforge.net]On Behalf Of Wolfgang Denk Sent: Wednesday, January 12, 2005 11:55 AM To: Peter Asemann Cc: u-boot-users@lists.sourceforge.net Subject: Re: [U-Boot-Users] .../board/fads/flash.c confuses me - give me a hint
In message 41E537A8.8050006@web.de you wrote:
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
There must ne some strange fascination about the FADS port. I really wonder why everybody is picking one of the most complicated and poroblematic ports...
Pleas ehave a loot at least at some other drivers, too.
All functions in there seem to be written to handle 4x8bit flash banks.
SO look for other flash drivers, or maybe even for the generic CFI driver.
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.
Forget what the FADS is doing. Think about what is needed for your own hardware, and implement this.
Best regards,
Wolfgang Denk