summaryrefslogtreecommitdiffstats
path: root/sfdp.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-01-23 23:27:58 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2016-01-23 23:27:58 +0000
commitae61651bfab63139493f5ac18348125e8d5baeb0 (patch)
tree4fcafc84ea8bd579b4cc21f8783cd8271ea00bb0 /sfdp.c
parent23e10b87801c22f34642895de8b0b726265eb016 (diff)
downloadast2050-flashrom-ae61651bfab63139493f5ac18348125e8d5baeb0.zip
ast2050-flashrom-ae61651bfab63139493f5ac18348125e8d5baeb0.tar.gz
dediprog: support new communication protocol, cleanup and enable by default
The new protocol changes some commands, so adjust the code to support these. Use helper functions to reduce duplication in libusb calls. Testing with real hardware showed that the maximum read size via the control endpoint is about 16 bytes although specification does not mention that. Dediprog SF600 is not supported yet. Based on the following chromiumos changes: Change-Id: Ibd1e27d9e8273ba879b9b5d95675b99596255c89 Change-Id: Ifc33e7b1eed5b0cb80f83458fa24741a577fa46a Additionally, some ideas from Alex for cleaner code were incorporated as well. Tested on an SF100 V4 with both firmware generations PREWing a M25PX80 and AT45DB041D (the latter is using dediprog_spi_send_command() instead of optimized functions which make it a good test vehicle). Corresponding to flashrom svn r1918. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: David Hendricks <dhendrix@chromium.org> Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Diffstat (limited to 'sfdp.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud