summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-02-21 18:59:49 +0100
committerØyvind Harboe <oyvind.harboe@zylin.com>2011-02-23 08:13:59 +0100
commit05abfbadf12ec6167d5d6137705a7631ff8cb5eb (patch)
tree08f74f17fac6aff09b00d9df5ce264b78680df5d /src
parent403e239960758bed7888496c3d1e3faf91b49a6c (diff)
downloadopenocd+libswd-05abfbadf12ec6167d5d6137705a7631ff8cb5eb.tar.gz
openocd+libswd-05abfbadf12ec6167d5d6137705a7631ff8cb5eb.tar.bz2
openocd+libswd-05abfbadf12ec6167d5d6137705a7631ff8cb5eb.tar.xz
openocd+libswd-05abfbadf12ec6167d5d6137705a7631ff8cb5eb.zip
jlink: set the speed at JLINK_MAX_SPEED when an exceeded speed is requested
it will allow to be at the highest speed of the jlink without touching the board or cpu config tested on sam-ice v5 and at91rm9200-ek Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Cc: Nicolas Ferre <nicolas.ferre@atmel.com> Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Diffstat (limited to 'src')
-rw-r--r--src/jtag/drivers/jlink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jtag/drivers/jlink.c b/src/jtag/drivers/jlink.c
index 4a8896ba..bc5448d5 100644
--- a/src/jtag/drivers/jlink.c
+++ b/src/jtag/drivers/jlink.c
@@ -236,9 +236,9 @@ static int jlink_speed(int speed)
if (speed > JLINK_MAX_SPEED)
{
- LOG_INFO("Ignoring speed request: %dkHz exceeds %dkHz maximum",
+ LOG_INFO("reduce speed request: %dkHz to %dkHz maximum",
speed, JLINK_MAX_SPEED);
- return ERROR_OK;
+ speed = JLINK_MAX_SPEED;
}
/* check for RTCK setting */