Update jtagspi driver for 1-, 2- and 4-byte addresses
commitbe57b0ab847e8246b354ca9203024737cdec403b
authorAndreas Bolsch <hyphen0break@gmail.com>
Mon, 28 Jan 2019 09:37:53 +0000 (28 10:37 +0100)
committerTomas Vanek <vanekt@fbl.cz>
Fri, 12 Nov 2021 20:31:46 +0000 (12 20:31 +0000)
tree7fabc4d67c4be513c06be8526f5d8a6d40156ff6
parentb2ab2241f20fd3da11c92f8edde4639ab8ce996f
Update jtagspi driver for 1-, 2- and 4-byte addresses

jtagspi driver always used 3-byte addresses regardless of actual
device capcity. Now select 1- to 4-byte addresses depending on
device capacity.
Some devices need a special command to activate the 4-byte address
mode, a special command to accomplish this, and a further command
for setting device properties are added.
Additionally, restriction (start of range had to be page aligned)
removed.
Tested with XCS6SLX16 board and W25Q256FV in 3- and 4-byte address
modes.

Change-Id: I88b2877517a18dac460253ae6d97f3dded054e6c
Signed-off-by: Andreas Bolsch <hyphen0break@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/4876
Reviewed-by: Jan Matyas <matyas@codasip.com>
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-by: zapb <dev@zapb.de>
Tested-by: jenkins
doc/openocd.texi
src/flash/nor/jtagspi.c