aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorEsben Haabendal <esben@haabendal.dk>2015-11-27 09:13:36 +0100
committerPaul Fertser <fercerpav@gmail.com>2016-06-23 07:39:57 +0100
commit12ff09f7f27a707fe42226262f55b8ce8351cbf9 (patch)
treeb8c6b35881a40842ac91e0482a5f45605f9adff6 /doc
parentf906c65fed5f3f2df54c6aaf2ea28d9742d44db4 (diff)
downloadriscv-openocd-12ff09f7f27a707fe42226262f55b8ce8351cbf9.zip
riscv-openocd-12ff09f7f27a707fe42226262f55b8ce8351cbf9.tar.gz
riscv-openocd-12ff09f7f27a707fe42226262f55b8ce8351cbf9.tar.bz2
cfi: Add support for strangely endianness broken SoC implementations
This adds the 'data_swap' parameter to the CFI driver, which enables swapping of data bytes when writing/programming words to the flash. Note, that this specifically means that bytes are not swapped when writing command words to the flash chip. Unless you are using the SAP in an LS102x chip to program an attached 16-bit NOR flash, you hopefully do not need this! Change-Id: I1e6f7169da36f373c880d1756d9c21c9957acc50 Signed-off-by: Esben Haabendal <esben@haabendal.dk> Reviewed-on: http://openocd.zylin.com/3109 Tested-by: jenkins Reviewed-by: Paul Fertser <fercerpav@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/openocd.texi2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/openocd.texi b/doc/openocd.texi
index 30a2a46..94f1f31 100644
--- a/doc/openocd.texi
+++ b/doc/openocd.texi
@@ -4819,6 +4819,8 @@ The CFI driver can accept the following optional parameters, in any order:
like AM29LV010 and similar types.
@item @var{x16_as_x8} ... when a 16-bit flash is hooked up to an 8-bit bus.
@item @var{bus_swap} ... when data bytes in a 16-bit flash needs to be swapped.
+@item @var{data_swap} ... when data bytes in a 16-bit flash needs to be
+swapped when writing data values (ie. not CFI commands).
@end itemize
To configure two adjacent banks of 16 MBytes each, both sixteen bits (two bytes)