diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-11-24 18:27:10 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-11-24 18:27:10 +0000 |
commit | d5b28fae1da48233753a19d3fa007c204786ec8c (patch) | |
tree | 55b9f4704024f1e845fc1c8df44a2b1bd97d6884 /flashrom.8 | |
parent | d70b09ca13f118af02078e5fcd336b9f83c7565a (diff) | |
download | flashrom-d5b28fae1da48233753a19d3fa007c204786ec8c.tar.gz flashrom-d5b28fae1da48233753a19d3fa007c204786ec8c.tar.bz2 flashrom-d5b28fae1da48233753a19d3fa007c204786ec8c.zip |
Add the ability to set Bus Pirate SPI speed via the command line
Example usage:
flashrom -p buspiratespi:spispeed=2.6MHz,dev=/dev/foo
flashrom -p buspiratespi:dev=/dev/foo,spispeed=2.6M
Refactor programmer option parsing (this allows cleanups in other
programmers as well).
Increase SPI read size from 8 to 12 bytes (current single-transaction
limit of the Bus Pirate raw SPI protocol).
Add Bus Pirate to the list of programmers supporting 4 byte RDID.
Add Bus Pirate syntax to the man page.
Tested-by: Sean Nelson <audiohacked@gmail.com>
Corresponding to flashrom svn r776.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Sean Nelson <audiohacked@gmail.com>
Diffstat (limited to 'flashrom.8')
-rw-r--r-- | flashrom.8 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/flashrom.8 b/flashrom.8 index 3986f75b8..011840c94 100644 --- a/flashrom.8 +++ b/flashrom.8 @@ -152,6 +152,8 @@ Specify the programmer device. Currently supported are: .sp .BR "* serprog" " (for flash ROMs attached to Urja's AVR programmer)" .sp +.BR "* buspiratespi" " (for flash ROMs attached to a Bus Pirate)" +.sp The dummy programmer has an optional parameter specifying the bus types it should support. For that you have to use the .B "flashrom -p dummy:type" @@ -219,6 +221,16 @@ syntax and for IP, you have to use instead. More information about serprog is available in serprog-protocol.txt in the source distribution. .sp +The buspiratespi programmer has a required dev parameter specifying the Bus +Pirate device node and an optional spispeed parameter specifying the frequency +of the SPI bus. The parameter delimiter is a comma. Syntax is +.B "flashrom -p buspiratespi:dev=/dev/device,spispeed=frequency" +where +.B frequency +can be any of +.B 30k 125k 250k 1M 2M 2.6M 4M 8M +(in Hz). +.sp Support for some programmers can be disabled at compile time. .B "flashrom -h" lists all supported programmers. |