summaryrefslogtreecommitdiff
path: root/src/flash
diff options
context:
space:
mode:
authordrath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2006-11-05 17:38:35 +0000
committerdrath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2006-11-05 17:38:35 +0000
commit83440065c00cce9d36f23182b439d7bf2306cfb2 (patch)
treee70d7de58ac13ecb87025e2ef9e5ec6f8799726a /src/flash
parent456737b08bbc37d13e4e08fa625413f8b91a6458 (diff)
downloadopenocd+libswd-83440065c00cce9d36f23182b439d7bf2306cfb2.tar.gz
openocd+libswd-83440065c00cce9d36f23182b439d7bf2306cfb2.tar.bz2
openocd+libswd-83440065c00cce9d36f23182b439d7bf2306cfb2.tar.xz
openocd+libswd-83440065c00cce9d36f23182b439d7bf2306cfb2.zip
- correctly enter debug state on a "soft_reset_halt" command
- several small fixes - retry reading from a FT2232 device on incomplete reads git-svn-id: svn://svn.berlios.de/openocd/trunk@110 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/flash')
-rw-r--r--src/flash/lpc2000.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/flash/lpc2000.c b/src/flash/lpc2000.c
index 9ec4165b..16e20e2a 100644
--- a/src/flash/lpc2000.c
+++ b/src/flash/lpc2000.c
@@ -46,6 +46,7 @@
* variant 2 (lpc2000_v2):
* - 213x
* - 214x
+ * - 2101|2|3
*/
int lpc2000_register_commands(struct command_context_s *cmd_ctx);
@@ -152,6 +153,12 @@ int lpc2000_build_sector_list(struct flash_bank_s *bank)
/* variant 2 has a uniform layout, only number of sectors differs */
switch (bank->size)
{
+ case 8 * 1024:
+ num_sectors = 2;
+ break;
+ case 16 * 1024:
+ num_sectors = 4;
+ break;
case 32 * 1024:
num_sectors = 8;
break;