tcl/target/kl25.cfg: add maximum speed specification
authorPaul Fertser <fercerpav@gmail.com>
Wed, 23 Apr 2014 08:22:39 +0000 (12:22 +0400)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Sun, 1 Jun 2014 18:31:42 +0000 (18:31 +0000)
Maximum frequency wasn't tested on hardware but the docs seem to be
quite explicit and do not mention any restrictions for that.

Change-Id: Idcf58df5358d06525e683f07c76eedad8f0b292d
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/2120
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
tcl/target/kl25.cfg

index 2ed6b0f17b1957c3dab268f06d96c5adfa029d11..c2126c2c2d2414651dcfdf269f5a00d9fa8f72a2 100644 (file)
@@ -51,6 +51,17 @@ $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE
 set _FLASHNAME $_CHIPNAME.flash
 flash bank $_FLASHNAME kinetis 0 0 0 0 $_TARGETNAME
 
+# Table 5-1. Clock Summary of KL25 Sub-Family Reference Manual
+# specifies up to 1MHz for VLPR mode.
+adapter_khz 1000
+
 # if srst is not fitted use SYSRESETREQ to
 # perform a soft reset
 cortex_m reset_config sysresetreq
+
+$_TARGETNAME configure -event reset-init {
+    # Table 5-1. Clock Summary of KL25 Sub-Family Reference Manual
+    # specifies up to 24MHz for run mode; Table 17 of Sub-Family Data
+    # Sheet rev4 lists 25MHz as the maximum frequency.
+    adapter_khz 24000
+}