From 77fa67d2df7395047476b77946fa807fc851f737 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Wed, 20 Feb 2013 18:03:36 +0000 Subject: dedirpog: add a parameter 'spispeed' to set the SPI clock rate The following rates are available (in Hz): 375k, 750k, 1.5M, 2.18M, 3M, 8M, 12M and 24M The original driver reinitializes the programmer after setting the speed, so the initialization calls have moved into a new function dediprog_setup() which is called twice. Corresponding to flashrom svn r1649. Signed-off-by: Nico Huber Acked-by: Carl-Daniel Hailfinger --- flashrom.8 | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'flashrom.8') diff --git a/flashrom.8 b/flashrom.8 index 90afced..f8f1c4e 100644 --- a/flashrom.8 +++ b/flashrom.8 @@ -676,6 +676,18 @@ at 0. Usage example to select the second device: .sp .B " flashrom \-p dediprog:device=1" +.sp +An optional +.B spispeed +parameter specifies the frequency of the SPI bus. Syntax is +.sp +.B " flashrom \-p dediprog:spispeed=frequency" +.sp +where +.B frequency +can be +.BR 375k ", " 750k ", " 1.5M ", " 2.18M ", " 3M ", " 8M ", " 12M " or " 24M +(in Hz). The default is a frequency of 12 MHz. .SS .BR "rayer_spi " programmer The default I/O base address used for the parallel port is 0x378 and you can use -- cgit v1.1