summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-10-14 07:30:45 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-10-14 07:30:45 +0000
commit08058e72d9928441a3c52f2107582bd7d373e0f6 (patch)
treea83af913b2cddb776a779869bb62b7a0df90607e /src
parent1cf14b384ea23bdda41285644ebebb5cee05dcea (diff)
downloadopenocd+libswd-08058e72d9928441a3c52f2107582bd7d373e0f6.tar.gz
openocd+libswd-08058e72d9928441a3c52f2107582bd7d373e0f6.tar.bz2
openocd+libswd-08058e72d9928441a3c52f2107582bd7d373e0f6.tar.xz
openocd+libswd-08058e72d9928441a3c52f2107582bd7d373e0f6.zip
reset cleanup. Remove obsolete events that are not needed for compatibility.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1053 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r--src/helper/startup.tcl10
-rw-r--r--src/target/target.c2
-rw-r--r--src/target/target/at91eb40a.cfg4
-rw-r--r--src/target/target/at91sam9260.cfg2
-rw-r--r--src/target/target/eir-sam7se512.cfg2
-rw-r--r--src/target/target/hammer.cfg2
-rw-r--r--src/target/target/lpc2148.cfg2
-rw-r--r--src/target/target/omap5912.cfg2
-rw-r--r--src/target/target/pxa255.cfg2
-rw-r--r--src/target/target/sam7x256.cfg2
-rw-r--r--src/target/target/str710.cfg4
-rw-r--r--src/target/target/str730.cfg4
-rw-r--r--src/target/target/str750.cfg4
-rw-r--r--src/target/target/str912.cfg4
-rw-r--r--src/target/target/wi-9c.cfg2
-rw-r--r--src/target/target/xba_revA3.cfg2
16 files changed, 22 insertions, 28 deletions
diff --git a/src/helper/startup.tcl b/src/helper/startup.tcl
index a8006702..f683c924 100644
--- a/src/helper/startup.tcl
+++ b/src/helper/startup.tcl
@@ -119,17 +119,17 @@ proc target_script {target_num eventname scriptname} {
set tname [target number $target_num]
if { 0 == [string compare $eventname "reset"] } {
- $tname configure -event old-post_reset "script $scriptname"
+ $tname configure -event reset-init "script $scriptname"
return
}
if { 0 == [string compare $eventname "post_reset"] } {
- $tname configure -event old-post_reset "script $scriptname"
+ $tname configure -event reset-init "script $scriptname"
return
}
if { 0 == [string compare $eventname "pre_reset"] } {
- $tname configure -event old-pre_reset "script $scriptname"
+ $tname configure -event reset-start "script $scriptname"
return
}
@@ -212,9 +212,6 @@ proc ocd_process_reset { MODE } {
}
foreach t [ target names ] {
- # For compatiblity with 'old scripts'
- $t invoke-event old-pre_reset
-
# New event script.
$t invoke-event reset-start
}
@@ -271,7 +268,6 @@ proc ocd_process_reset { MODE } {
set err [catch "$t arp_waitstate halted 5000"]
# Did it halt?
if { $err == 0 } {
- $t invoke-event old-post_reset
$t invoke-event reset-init
}
}
diff --git a/src/target/target.c b/src/target/target.c
index f843a6ed..6a5c8902 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -162,9 +162,7 @@ const char *target_strerror_safe( int err )
}
const Jim_Nvp nvp_target_event[] = {
- { .value = TARGET_EVENT_OLD_pre_reset , .name = "old-pre_reset" },
{ .value = TARGET_EVENT_OLD_gdb_program_config , .name = "old-gdb_program_config" },
- { .value = TARGET_EVENT_OLD_post_reset , .name = "old-post_reset" },
{ .value = TARGET_EVENT_OLD_pre_resume , .name = "old-pre_resume" },
diff --git a/src/target/target/at91eb40a.cfg b/src/target/target/at91eb40a.cfg
index b49150a7..42ce2f3f 100644
--- a/src/target/target/at91eb40a.cfg
+++ b/src/target/target/at91eb40a.cfg
@@ -32,7 +32,7 @@ working_area 0 0x00000000 0x20000 nobackup
global reset_count
set reset_count 0
-[new_target_name] configure -event old-post_reset {
+[new_target_name] configure -event reset-init {
puts "Running reset init script for AT91EB40A"
global reset_count
# Reset script for AT91EB40a
@@ -48,7 +48,7 @@ set reset_count 0
}
-[new_target_name] configure -event old-pre_reset {
+[new_target_name] configure -event reset-start {
global reset_count
set reset_count [expr $reset_count+1]
echo "Testing pre_reset $reset_count !"
diff --git a/src/target/target/at91sam9260.cfg b/src/target/target/at91sam9260.cfg
index f0f7929e..a9ef6a0d 100644
--- a/src/target/target/at91sam9260.cfg
+++ b/src/target/target/at91sam9260.cfg
@@ -17,7 +17,7 @@ jtag_ntrst_delay 0
#target <type> <endianess> <reset mode> <JTAG pos> <variant>
target arm926ejs little 0 arm926ejs
-[new_target_name] configure -event old-post_reset { script event/at91sam9260_reset.script }
+[new_target_name] configure -event reset-init { script event/at91sam9260_reset.script }
#working area <target#> <address> <size> <backup|nobackup>
diff --git a/src/target/target/eir-sam7se512.cfg b/src/target/target/eir-sam7se512.cfg
index 15f96858..a378a203 100644
--- a/src/target/target/eir-sam7se512.cfg
+++ b/src/target/target/eir-sam7se512.cfg
@@ -8,7 +8,7 @@ jtag_device 4 0x1 0xf 0xe
target arm7tdmi little 0 arm7tdmi
-[new_target_name] configure -event old-post_reset { script event/eir-sam7se512_reset.script }
+[new_target_name] configure -event reset-init { script event/eir-sam7se512_reset.script }
working_area 0 0x00200000 0x4000 nobackup
diff --git a/src/target/target/hammer.cfg b/src/target/target/hammer.cfg
index 6a4319f3..627266d2 100644
--- a/src/target/target/hammer.cfg
+++ b/src/target/target/hammer.cfg
@@ -10,7 +10,7 @@ jtag_device 4 0x1 0xf 0xe
target arm920t little 0 arm920t
-[new_target_name] configure -event old-post_reset { script event/hammer_reset.script }
+[new_target_name] configure -event reset-init { script event/hammer_reset.script }
# speed up memory downloads
arm7 fast_memory_access enable
diff --git a/src/target/target/lpc2148.cfg b/src/target/target/lpc2148.cfg
index 11835a72..67b3d11c 100644
--- a/src/target/target/lpc2148.cfg
+++ b/src/target/target/lpc2148.cfg
@@ -14,7 +14,7 @@ reset_config trst_and_srst srst_pulls_trst
jtag_device 4 0x1 0xf 0xe
target arm7tdmi little 0 arm7tdmi-s_r4
-[new_target_name] configure -event old-post_reset {
+[new_target_name] configure -event reset-init {
# Force target into ARM state
soft_reset_halt
#do not remap 0x0000-0x0020 to anything but the flash
diff --git a/src/target/target/omap5912.cfg b/src/target/target/omap5912.cfg
index a00e9bf1..fdc8e71f 100644
--- a/src/target/target/omap5912.cfg
+++ b/src/target/target/omap5912.cfg
@@ -11,7 +11,7 @@ jtag_device 4 0x1 0x0 0xe
jtag_device 8 0x0 0x0 0x0
target arm926ejs little 1 arm926ejs
-[new_target_name] configure -event old-post_reset { script event/omap5912_reset.script }
+[new_target_name] configure -event reset-init { script event/omap5912_reset.script }
# omap5912 lcd frame buffer as working area
working_area 0 0x20000000 0x3e800 nobackup
diff --git a/src/target/target/pxa255.cfg b/src/target/target/pxa255.cfg
index daa49345..6a5c12bb 100644
--- a/src/target/target/pxa255.cfg
+++ b/src/target/target/pxa255.cfg
@@ -3,7 +3,7 @@ jtag_nsrst_delay 200
jtag_ntrst_delay 200
target xscale little 0 pxa255
-[new_target_name] configure -event old-post_reset { script event/pxa255_reset.script }
+[new_target_name] configure -event reset-init { script event/pxa255_reset.script }
reset_config trst_and_srst
diff --git a/src/target/target/sam7x256.cfg b/src/target/target/sam7x256.cfg
index 34556f87..e0030c7a 100644
--- a/src/target/target/sam7x256.cfg
+++ b/src/target/target/sam7x256.cfg
@@ -8,7 +8,7 @@ jtag_device 4 0x1 0xf 0xe
#target <type> <startup mode>
#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
target arm7tdmi little 0 arm7tdmi
-[new_target_name] configure -event old-post_reset { script event/sam7x256_reset.script }
+[new_target_name] configure -event reset-init { script event/sam7x256_reset.script }
working_area 0 0x00200000 0x4000 nobackup
diff --git a/src/target/target/str710.cfg b/src/target/target/str710.cfg
index 59e7e179..ea57e9f7 100644
--- a/src/target/target/str710.cfg
+++ b/src/target/target/str710.cfg
@@ -12,8 +12,8 @@ jtag_device 4 0x1 0xf 0xe
#target <type> <startup mode>
#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
target arm7tdmi little 0 arm7tdmi
-[new_target_name] configure -event old-pre_reset { jtag_khz 10 }
-[new_target_name] configure -event old-post_reset { jtag_khz 6000 }
+[new_target_name] configure -event reset-start { jtag_khz 10 }
+[new_target_name] configure -event reset-init { jtag_khz 6000 }
[new_target_name] configure -event old-gdb_program_config { script event/str710_program.script }
diff --git a/src/target/target/str730.cfg b/src/target/target/str730.cfg
index a65f75a0..2851befb 100644
--- a/src/target/target/str730.cfg
+++ b/src/target/target/str730.cfg
@@ -17,8 +17,8 @@ jtag_nsrst_delay 500
jtag_ntrst_delay 500
target arm7tdmi little 0 arm7tdmi
-[new_target_name] configure -event old-pre_reset { jtag_khz 10 }
-[new_target_name] configure -event old-post_reset { jtag_khz 3000 }
+[new_target_name] configure -event reset-start { jtag_khz 10 }
+[new_target_name] configure -event reset-init { jtag_khz 3000 }
[new_target_name] configure -event old-gdb_program_config { script event/str730_program.script }
working_area 0 0x40000000 0x4000 nobackup
diff --git a/src/target/target/str750.cfg b/src/target/target/str750.cfg
index 7a8fde41..d5fa45e8 100644
--- a/src/target/target/str750.cfg
+++ b/src/target/target/str750.cfg
@@ -20,8 +20,8 @@ jtag_ntrst_delay 500
#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
target arm7tdmi little 0 arm7tdmi
-[new_target_name] configure -event old-pre_reset { jtag_khz 10 }
-[new_target_name] configure -event old-post_reset { jtag_khz 3000 }
+[new_target_name] configure -event reset-start { jtag_khz 10 }
+[new_target_name] configure -event reset-init { jtag_khz 3000 }
[new_target_name] configure -event old-gdb_program_config { script event/str750_program.script }
working_area 0 0x40000000 0x4000 nobackup
diff --git a/src/target/target/str912.cfg b/src/target/target/str912.cfg
index 2e0056a6..cd0ec11c 100644
--- a/src/target/target/str912.cfg
+++ b/src/target/target/str912.cfg
@@ -21,9 +21,9 @@ jtag_device 5 0x1 0x1 0x1e
#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
target arm966e little 1 arm966e
-[new_target_name] configure -event old-pre_reset { jtag_rclk 16 }
+[new_target_name] configure -event reset-start { jtag_rclk 16 }
-[new_target_name] configure -event old-post_reset {
+[new_target_name] configure -event reset-init {
# We can increase speed now that we know the target is halted.
jtag_rclk 3000
diff --git a/src/target/target/wi-9c.cfg b/src/target/target/wi-9c.cfg
index 08f326e6..71acf0fc 100644
--- a/src/target/target/wi-9c.cfg
+++ b/src/target/target/wi-9c.cfg
@@ -17,7 +17,7 @@ jtag_ntrst_delay 0
#target <type> <endianess> <reset mode> <JTAG pos> <variant>
target arm926ejs big 0 arm926ejs
-[new_target_name] configure -event old-post_reset { script event/wi-9c_reset.script }
+[new_target_name] configure -event reset-init { script event/wi-9c_reset.script }
#working area <target#> <address> <size> <backup|nobackup>
diff --git a/src/target/target/xba_revA3.cfg b/src/target/target/xba_revA3.cfg
index dcac9dd2..4c750b5b 100644
--- a/src/target/target/xba_revA3.cfg
+++ b/src/target/target/xba_revA3.cfg
@@ -10,7 +10,7 @@ jtag_ntrst_delay 100
jtag_device 7 0x1 0x7f 0x7e
target xscale big 0 ixp42x
-[new_target_name] configure -event old-post_reset { script event/xba_revA3.script }
+[new_target_name] configure -event reset-init { script event/xba_revA3.script }
flash bank cfi 0x50000000 0x400000 2 2 0