summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJiajie Chen <c@jia.je>2023-05-09 00:27:01 +0800
committerAnastasia Klimchuk <aklm@chromium.org>2023-05-14 07:25:25 +0000
commit592c1c3e5fd9ae42a261966c82ddd83f777ce2b6 (patch)
tree767f6d839beb1564ff8b3b3685a993c3301b6761 /doc
parentfe2eea4d16dd53a641e04f02ced79eb1e90aefb9 (diff)
downloadflashrom-592c1c3e5fd9ae42a261966c82ddd83f777ce2b6.tar.gz
flashrom-592c1c3e5fd9ae42a261966c82ddd83f777ce2b6.tar.bz2
flashrom-592c1c3e5fd9ae42a261966c82ddd83f777ce2b6.zip
jlink_spi: add cs=tms option to jlink_spi programmer
Currently, the code assumes the nCS pin of spi nor flash is connected to either nRESET(pin 15) or nTRST(pin 3). But it is incompatible with the pinout from official JFlash SPI, whereas the nCS pin is wired to TMS(pin 7). This commit adds cs=tms option to share the same pinout as JFlash SPI. It works by toggling TMS in assert_cs and deassert_cs, and sets TMS to zero in jlink_spi_send_command. The default option is set to cs=reset for backward compatibility. Tested on macOS 13.3.1 with JLink and Winbond W25Q128 Change-Id: I0cb467fcc2c403a25f260462de0cd020e7022bb1 Signed-off-by: Jiajie Chen <c@jia.je> Reviewed-on: https://review.coreboot.org/c/flashrom/+/75011 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-by: Alexander Goncharov <chat@joursoir.net>
Diffstat (limited to 'doc')
-rw-r--r--doc/classic_cli_manpage.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/classic_cli_manpage.rst b/doc/classic_cli_manpage.rst
index 45ef4aa91..a8ac6dabe 100644
--- a/doc/classic_cli_manpage.rst
+++ b/doc/classic_cli_manpage.rst
@@ -1066,7 +1066,7 @@ programmer which can be selected with the::
flashrom -p jlink_spi:cs=pin
-syntax where ``pin`` can be either ``TRST`` or ``RESET``. The default pin for chip select is ``RESET``.
+syntax where ``pin`` can be either ``TRST``, ``RESET`` or ``TMS``. The default pin for chip select is ``RESET``.
Note that, when using ``RESET``, it is normal that the indicator LED blinks orange or red.
Additionally, the ``Tref`` pin of the programmer must be attached to the logic level of the flash chip.
@@ -1079,7 +1079,7 @@ Pinout for devices with 20-pin JTAG connector::
| 1 2 | 1: VTref 2:
| 3 4 | 3: TRST 4: GND
| 5 6 | 5: TDI 6: GND
- +-+ 7 8 | 7: 8: GND
+ +-+ 7 8 | 7: TMS 8: GND
| 9 10 | 9: TCK 10: GND
| 11 12 | 11: 12: GND
+-+ 13 14 | 13: TDO 14: