summaryrefslogtreecommitdiff
path: root/src/flash/nand/davinci.c
diff options
context:
space:
mode:
authorDean Glazeski <dnglaze@gmail.com>2009-11-16 13:34:24 -0600
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-12-03 17:29:41 -0800
commit66985bb30619c412984a2cfa1c0b3c4a324dbe78 (patch)
treee8f7bc05dc3266a072a2833c291d9d77332521fb /src/flash/nand/davinci.c
parent9a51b8b0e3d0b629915a8248e2c112a01ffc93dc (diff)
downloadopenocd+libswd-66985bb30619c412984a2cfa1c0b3c4a324dbe78.tar.gz
openocd+libswd-66985bb30619c412984a2cfa1c0b3c4a324dbe78.tar.bz2
openocd+libswd-66985bb30619c412984a2cfa1c0b3c4a324dbe78.tar.xz
openocd+libswd-66985bb30619c412984a2cfa1c0b3c4a324dbe78.zip
ARM NAND I/O interface update
Modify the arm_nand_data struct to better support both read and write operations while using the same struct. An additional field was added, and initialized, to record the last operation so that the correct code can be loaded to the working area. [dbrownell@users.sourceforge.net: merge init patch, tweak GPL note] Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/flash/nand/davinci.c')
-rw-r--r--src/flash/nand/davinci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/flash/nand/davinci.c b/src/flash/nand/davinci.c
index 40be36d4..66770737 100644
--- a/src/flash/nand/davinci.c
+++ b/src/flash/nand/davinci.c
@@ -710,6 +710,7 @@ NAND_DEVICE_COMMAND_HANDLER(davinci_nand_device_command)
info->io.target = target;
info->io.data = info->data;
+ info->io.op = ARM_NAND_NONE;
/* NOTE: for now we don't do any error correction on read.
* Nothing else in OpenOCD currently corrects read errors,