
Dear Wolfgang,
The problem with AVR32 and the CFI flash driver has a few possible solutions as noted by Haavard Skinnemoen in the email [1]. The only thing I can do is to go with the first alternative and set the flash address as the virtual address which is cache-disabled and works flawless with the CFI driver.
That solution can also be used by other AVR32 boards, and I _think_ it also solves the JFFS2 scanning problem which was mentioned in [2].
The only ugly thing (for me) is when using the CFI commands, the flash addresses has to be shifted by 0xa0000000. (e.g. copy to flash at 0x1000 must be written as cp.b <source> 0xa0001000 <size>).
Please find the revised patch in a separate email, which also includes a new header file per your comments in the other email.
Best Regards, Semih Hazar
[1] http://www.mail-archive.com/u-boot@lists.denx.de/msg20911.html [2] http://lists.avr32linux.org/pipermail/u-boot/2009-August/000457.html