Bao, Zheng wrote:
The AAI (Auto Address Increment Programming) command (0xAD) can be found in SST25VF080B. I am wondering if it is available in every SPI chip.
It isn't. I only checked a few data sheets and while Macronix 16/32/64 Mbit chips have it, 4 Mbit Macronix chips do not. I didn't check Numonyx (ex Winbond) chips.
If yes, the SB600 pragramming would be much faster than doing it one byte at a time. I tested on my board with SB600.
There are several cases where flashrom could perform better, but they are too complex to be handled with the current structure. We should certainly improve that at some point, but it's not top priority.
Out of curiosity, what difference in programming time do you see? (You can use: time flashrom -w to easily see it.)
I don't make a patch because I am not sure I can do that.
Everyone can always send patches, but it is good to discuss first.
//Peter