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.
This commit is contained in:
Zachary T Welch
2009-11-17 14:04:25 -08:00
parent dd44ae18b4
commit fd654c8a3e
2 changed files with 10 additions and 2 deletions

View File

@@ -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. */