summaryrefslogtreecommitdiff
path: root/src/flash/flash.h
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-17 14:04:25 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-19 13:39:41 -0800
commitfd654c8a3e3dbd5ab97eb6b3834ee462dd509a66 (patch)
treeca2db5f1ab73368f14ee93b19f64e297770c8bad /src/flash/flash.h
parentdd44ae18b49f6cb54a4c361e9fab70f4d0fafeec (diff)
downloadopenocd+libswd-fd654c8a3e3dbd5ab97eb6b3834ee462dd509a66.tar.gz
openocd+libswd-fd654c8a3e3dbd5ab97eb6b3834ee462dd509a66.tar.bz2
openocd+libswd-fd654c8a3e3dbd5ab97eb6b3834ee462dd509a66.tar.xz
openocd+libswd-fd654c8a3e3dbd5ab97eb6b3834ee462dd509a66.zip
add support for naming flash banks
Requires users to name their flash banks, allowing them to be used instead of bank numbers in script commands.
Diffstat (limited to 'src/flash/flash.h')
-rw-r--r--src/flash/flash.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/flash/flash.h b/src/flash/flash.h
index 1235a419..ac1600e4 100644
--- a/src/flash/flash.h
+++ b/src/flash/flash.h
@@ -240,6 +240,8 @@ struct flash_driver
*/
struct flash_bank
{
+ char *name;
+
struct target *target; /**< Target to which this bank belongs. */
struct flash_driver *driver; /**< Driver for this bank. */