[flashrom] [PATCH] serprog: add support for setting the SPI frequency (was: serprog spi support + general cleanup)

Stefan Tauner stefan.tauner at student.tuwien.ac.at
Tue Jun 21 23:30:16 CEST 2011


of course this requires the general spi support in serprog.


example output of all 5 patches (+ changing serial to Serial; damnit):

./flashrom -p serprog:dev=/dev/ttyU2flasher:115200,sck=1234 -V -c W25Q32
flashrom v0.9.3-r1349 on Linux 2.6.35-28-generic (x86_64), built with libpci 3.1.7, GCC 4.4.5, little endian
flashrom is free software, get the source code at http://www.flashrom.org

Calibrating delay loop... OS timer resolution is 1 usecs, 1193M loops per second, 10 myus = 10 us, 100 myus = 100 us, 1000 myus = 997 us, 10000 myus = 9997 us, 4 myus = 4 us, OK.
Initializing serprog programmer
serprog: connected - attempting to synchronize
.
serprog: Synchronized
serprog: Interface version ok.
serprog: Bus support: parallel=off, LPC=off, FWH=off, SPI=on
serprog: Maximum write-n length is 16777215
serprog: Maximum read-n length is 16777215
serprog: Requested to set SPI clock frequency to 1234 kHz. It was actually set to 1000 kHz
serprog: Programmer name is "atmegaXXu2      "
serprog: Serial buffer size is 65535
Probing for Winbond W25Q32, 4096 kB: probe_spi_rdid_generic: id1 0xef, id2 0x4016
Chip status register is 00
Found chip "Winbond W25Q32" (4096 kB, SPI) on serprog.
No operations were specified.

do we want full stops at all those debug messages? i would say yes, but
there are (almost) none.

-- 
Kind regards/Mit freundlichen Grüßen, Stefan Tauner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-serprog-add-support-for-setting-the-SPI-frequency.patch
Type: text/x-patch
Size: 4015 bytes
Desc: not available
URL: <http://www.flashrom.org/pipermail/flashrom/attachments/20110621/fc88d6ce/attachment.patch>


More information about the flashrom mailing list