]> git.sur5r.net Git - openocd/commitdiff
926ejs target uses rclk. Cleaned up jtag_khz output a bit.
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Wed, 5 Nov 2008 13:09:49 +0000 (13:09 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Wed, 5 Nov 2008 13:09:49 +0000 (13:09 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1138 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/jtag/jtag.c
src/target/target/wi-9c.cfg

index d093ee26c30511063e141321d8ef58eb20202dc2..6a84db40201f0e4e98290b1e8035d87cf6e79281 100644 (file)
@@ -2019,7 +2019,13 @@ int handle_jtag_khz_command(struct command_context_s *cmd_ctx, char *cmd, char *
                        return retval;
        }
 
-       command_print(cmd_ctx, "jtag_khz: %d", speed_khz);
+       if (speed_khz==0)
+       {
+               command_print(cmd_ctx, "RCLK - adaptive");
+       } else
+       {
+               command_print(cmd_ctx, "%d kHz", speed_khz);
+       }
        return retval;
 
 }
index 58c8fabdb67c98431c2728f4b6ed2a0dc35dea7a..a966f54c77f7c0924f4bda1e6ea7031013225515 100644 (file)
@@ -4,12 +4,17 @@
 
 reset_config trst_and_srst
 
+# What's a good fallback frequency for this board if RCLK is
+# not available??
+jtag_rclk 1000
+
 #jtag_device <IR length> <IR capture> <IR mask> <IDCODE instruction>
 jtag_device 4 0x1 0xf 0xe
 
 jtag_nsrst_delay 200
 jtag_ntrst_delay 0
 
+
 ######################
 # Target configuration
 ######################