From: Jean-Christophe PLAGNIOL-VILLARD Date: Mon, 21 Feb 2011 17:59:49 +0000 (+0100) Subject: jlink: set the speed at JLINK_MAX_SPEED when an exceeded speed is requested X-Git-Tag: v0.5.0-rc1~166 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=05abfbadf12ec6167d5d6137705a7631ff8cb5eb;p=openocd 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 Cc: Nicolas Ferre Cc: Patrice Vilchez --- 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 */