dediprog: fix SPI clock setting

Avoid setting SPI speed on firmware versions < 5.0.0 and note this
limitation in the man page.
Use the correct offset of the "12M" element in the spispeeds array to
match our manpage and the default of Dediprog's dpcmd.

Corresponding to flashrom svn r1674.

Signed-off-by: Patrick Georgi <>
Signed-off-by: Stefan Tauner <>
Acked-by: Stefan Tauner <>
2 files changed