Cleanly validate ICH SPI preopcodes
The code should work on Linux/*BSD/MacOSX and relies on the serial code
implementation in serial.c. Support for additional platforms (Windows)
will have to be added to serial.c for this to work. For tests without a
Bus Pirate (or with non-functional serial code) it is possible to
#define FAKE_COMMUNICATION in buspirate_spi.c.
Thanks to Sean Nelson for the SPI mode settings code. I tweaked it a bit
to make configuration from a commandline easier should anybody want that
Tested-by: Sean Nelson <email@example.com>
Corresponding to flashrom svn r772.
Signed-off-by: Carl-Daniel Hailfinger <firstname.lastname@example.org>
Acked-by: Stefan Reinauer <email@example.com>
Acked-by: Sean Nelson <firstname.lastname@example.org>
6 files changed