diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2009-11-15 10:35:47 -0800 |
---|---|---|
committer | David Brownell <dbrownell@users.sourceforge.net> | 2009-11-15 10:35:47 -0800 |
commit | 5d1a9033ab89b017c95e79590d76abbfa61f7512 (patch) | |
tree | 79d8a4efb276dc7efbd1a444689c34f0a76f1372 /src | |
parent | 2280ddeea5fd82554696f1caa97f7a485a035da4 (diff) | |
download | openocd_libswd-5d1a9033ab89b017c95e79590d76abbfa61f7512.tar.gz openocd_libswd-5d1a9033ab89b017c95e79590d76abbfa61f7512.tar.bz2 openocd_libswd-5d1a9033ab89b017c95e79590d76abbfa61f7512.tar.xz openocd_libswd-5d1a9033ab89b017c95e79590d76abbfa61f7512.zip |
ARM11: use now-generic memory utils
Now the ARM11 cores can use the renamed arm_checksum_memory()
and arm_blank_check_memory() routines ... do so.
Sanity checked with "flash erase_check" of both NOR banks on an
OMAP2420 ... the algorithm code dumped four lines of of "poll"
status after each of almost 520 blocks (yes, *very* annoying) but
gave plausible results after producing that spam.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/target/arm11.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/target/arm11.c b/src/target/arm11.c index 0b2fa2cf..348dd875 100644 --- a/src/target/arm11.c +++ b/src/target/arm11.c @@ -1551,16 +1551,6 @@ static int arm11_bulk_write_memory(struct target *target, return arm11_write_memory(target, address, 4, count, buffer); } -/* here we have nothing target specific to contribute, so we fail and then the - * fallback code will read data from the target and calculate the CRC on the - * host. - */ -static int arm11_checksum_memory(struct target *target, - uint32_t address, uint32_t count, uint32_t* checksum) -{ - return ERROR_FAIL; -} - /* target break-/watchpoint control * rw: 0 = write, 1 = read, 2 = access */ @@ -2203,7 +2193,8 @@ struct target_type arm11_target = { .bulk_write_memory = arm11_bulk_write_memory, - .checksum_memory = arm11_checksum_memory, + .checksum_memory = arm_checksum_memory, + .blank_check_memory = arm_blank_check_memory, .add_breakpoint = arm11_add_breakpoint, .remove_breakpoint = arm11_remove_breakpoint, |