From 001c87d9014b5b2dbb8adc9f64ab7023359a38b4 Mon Sep 17 00:00:00 2001 From: Jean THOMAS Date: Tue, 11 Oct 2022 17:54:30 +0200 Subject: dirtyjtag: Add DirtyJTAG programmer Add a new programmer driver for the DirtyJTAG project (a USB-JTAG firmware for STM32 MCUs). Successfully tested with DirtyJTAG 1.4 running on an Olimex STM32-H103 development board and a SST25VF020B SPI flash chip. Change-Id: Ic43e9a014ed7d04e429e73b30c9dcfdde1a78913 Signed-off-by: Jean THOMAS Reviewed-on: https://review.coreboot.org/c/flashrom/+/67878 Reviewed-by: Felix Singer Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber --- flashrom.8.tmpl | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'flashrom.8.tmpl') diff --git a/flashrom.8.tmpl b/flashrom.8.tmpl index 55790119..e672869c 100644 --- a/flashrom.8.tmpl +++ b/flashrom.8.tmpl @@ -431,6 +431,8 @@ bitbanging adapter) .sp .BR "* mediatek_i2c_spi" " (for SPI flash ROMs attached to some Mediatek display devices accessible over I2C)" .sp +.BR "* dirtyjtag_spi" " (for SPI flash ROMs attached to DirtyJTAG-compatible devices)" +.sp Some programmers have optional or mandatory parameters which are described in detail in the .B PROGRAMMER-SPECIFIC INFORMATION @@ -1441,6 +1443,22 @@ can be .BR 62.5k ", " 125k ", " 250k ", " 500k ", " 1M ", " 2M " or " 4M (in Hz). The default is a frequency of 4 MHz. .sp +.BR "dirtyjtag_spi " programmer +.IP +An optional +.B freq +parameter specifies the frequency of the SPI bus. +Syntax is +.sp +.B " flashrom \-p dirtyjtag_spi:spispeed=frequency" +.sp +where +.B spispeed +can be +.BR any value in hertz, kilohertz or megahertz supported by the +programmer. The default is a frequency of 100 KHz. +.sp +.SS .SS .BR "jlink_spi " programmer .IP @@ -1671,7 +1689,7 @@ needs no access permissions at all. have to be run as superuser/root, and need additional raw access permission. .sp .BR serprog ", " buspirate_spi ", " dediprog ", " usbblaster_spi ", " ft2232_spi ", " pickit2_spi ", " \ -ch341a_spi " and " digilent_spi +ch341a_spi ", " digilent_spi " and " dirtyjtag_spi can be run as normal user on most operating systems if appropriate device permissions are set. .sp -- cgit v1.2.3