aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nor
diff options
context:
space:
mode:
authorSpencer Oliver <spen@spen-soft.co.uk>2011-10-14 13:03:29 +0100
committerØyvind Harboe <oyvind.harboe@zylin.com>2011-10-14 14:18:56 +0200
commit8c3c5e53e360a76a90c5fdbfa6850928f16f8d43 (patch)
treee8a154ae0db35d8faab97270aab91ecfae896ab4 /src/flash/nor
parent498662e2e5e89ab7299b2fa54a307c5bfcdcd00e (diff)
downloadriscv-openocd-8c3c5e53e360a76a90c5fdbfa6850928f16f8d43.zip
riscv-openocd-8c3c5e53e360a76a90c5fdbfa6850928f16f8d43.tar.gz
riscv-openocd-8c3c5e53e360a76a90c5fdbfa6850928f16f8d43.tar.bz2
flash: fix lpc2000 driver typo
Change-Id: I3a759ed98a27fd186c12355b846d5e97dba86c5b Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/flash/nor')
-rw-r--r--src/flash/nor/lpc2000.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/flash/nor/lpc2000.c b/src/flash/nor/lpc2000.c
index fea663e..b639d1e 100644
--- a/src/flash/nor/lpc2000.c
+++ b/src/flash/nor/lpc2000.c
@@ -31,7 +31,6 @@
#include <target/arm_opcodes.h>
#include <target/armv7m.h>
-
/**
* @file
* flash programming support for NXP LPC17xx and LPC2xxx devices.
@@ -104,7 +103,6 @@ enum lpc2000_status_codes
LPC2000_INVALID_BAUD_RATE = 17,
LPC2000_INVALID_STOP_BIT = 18,
LPC2000_CRP_ENABLED = 19
-
};
static int lpc2000_build_sector_list(struct flash_bank *bank)
@@ -330,7 +328,7 @@ static int lpc2000_iap_call(struct flash_bank *bank, int code, uint32_t param_ta
target_buffer_set_u32(target, jump_gate + 4, ARMV4_5_B(0xfffffe, 0));
break;
default:
- LOG_ERROR("BUG: unknown bank->size encountered");
+ LOG_ERROR("BUG: unknown lpc2000_info->variant encountered");
exit(-1);
}
@@ -412,7 +410,6 @@ static int lpc2000_iap_call(struct flash_bank *bank, int code, uint32_t param_ta
exit(-1);
}
-
status_code = target_buffer_get_u32(target, mem_params[1].value);
result_table[0] = target_buffer_get_u32(target, mem_params[1].value + 0x04);
result_table[1] = target_buffer_get_u32(target, mem_params[1].value + 0x08);