On 11/10/10 23:58, Carl-Daniel Hailfinger wrote:
Updated version with fixed compilation and some "interesting" (i.e. hard to know if they work) SPI changes. Write tests of SPI chips are appreciated, especially on boards which use the ITE IT87* Super I/O as flash controller.
Switch all flash chips to partial write. The inner write functions which handle partial write are renamed to the original name of their wrappers. The write wrappers are removed.
This patch depends on Re: [flashrom] [PATCH] Refactor remaining write wrappers Tests are appreciated.
Please review this patch with lots of scrutiny. I don't really feel comfortable with the IT87* SPI changes nor with the AAI SPI changes, but they were needed to get the code to work, at least in theory.
I applied the two patches and erased the chip then tested writing both a blank image and a coreboot image to the flash chip. Seems to have worked...