]> git.sur5r.net Git - openocd/commitdiff
lpc2148 2MHz, RCLK and clockless config script versions
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 7 Aug 2008 16:35:26 +0000 (16:35 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Thu, 7 Aug 2008 16:35:26 +0000 (16:35 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@897 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/target/Makefile.am
src/target/event/lpc2148_reset.script [deleted file]
src/target/target/lpc2148.cfg
src/target/target/lpc2148_2mhz.cfg [new file with mode: 0644]
src/target/target/lpc2148_rclk.cfg [new file with mode: 0644]

index adf1add4b99bde93e1d5029d8b2234924a62e500..be3e31462892049ca7aa3fe49603514a509a589c 100644 (file)
@@ -21,7 +21,7 @@ noinst_HEADERS = target.h trace.h register.h armv4_5.h embeddedice.h etm.h arm7t
 
 nobase_dist_pkglib_DATA = xscale/debug_handler.bin event/at91eb40a_reset.script target/at91eb40a.cfg \
        event/at91r40008_reset.script event/sam7s256_reset.script event/sam7x256_reset.script \
-       target/at91r40008.cfg target/lpc2148.cfg target/lpc2294.cfg target/sam7s256.cfg \
+       target/at91r40008.cfg target/lpc2148.cfg target/lpc2148_rclk.cfg target/lpc2148_2mhz.cfg target/lpc2294.cfg target/sam7s256.cfg \
        target/sam7x256.cfg target/str710.cfg target/str912.cfg target/nslu2.cfg target/pxa255_sst.cfg \
        target/pxa255.cfg  target/zy1000.cfg event/zy1000_reset.script event/at91sam9260_reset.script target/at91sam9260.cfg \
        target/wi-9c.cfg event/wi-9c_reset.script event/pxa255_reset.script target/stm32.cfg  target/xba_revA3.cfg event/xba_revA3.script \
@@ -32,7 +32,7 @@ nobase_dist_pkglib_DATA = xscale/debug_handler.bin event/at91eb40a_reset.script
        target/str730.cfg target/stm32stick.cfg event/str710_program.script \
        target/lm3s811.cfg interface/luminary.cfg interface/luminary-libftdi.cfg interface/luminary-lm3s811.cfg \
        interface/stm32-stick.cfg interface/calao-usb-a9260-c01.cfg interface/calao-usb-a9260-c02.cfg \
-       interface/calao-usb-a9260.cfg target/at91sam9260minimal.cfg  event/lpc2148_reset.script \
+       interface/calao-usb-a9260.cfg target/at91sam9260minimal.cfg  \
        interface/chameleon.cfg interface/at91rm9200.cfg interface/jlink.cfg interface/arm-usb-ocd.cfg \
        interface/signalyzer.cfg event/eir-sam7se512_reset.script target/eir-sam7se512.cfg \
        event/hammer_reset.script interface/flyswatter.cfg target/hammer.cfg target/mx31.cfg  \
diff --git a/src/target/event/lpc2148_reset.script b/src/target/event/lpc2148_reset.script
deleted file mode 100644 (file)
index e67065b..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-#do not remap 0x0000-0x0020 to anything but the flash
-mwb 0xE01FC040 0x01 
index ab339562fdeb670c643a26137e0675abd19250d7..a58573080e9bac01a17d3be7dcb1a76b221f8fcd 100644 (file)
@@ -15,7 +15,10 @@ jtag_device 4 0x1 0xf 0xe
 
 target arm7tdmi little 0 arm7tdmi-s_r4
 
-target_script 0 reset event/lpc2148_reset.script
+proc target_0_post_reset {} {
+       #do not remap 0x0000-0x0020 to anything but the flash
+       mwb 0xE01FC040 0x01 
+}
 
 working_area 0 0x40000000 0x4000 nobackup
 
diff --git a/src/target/target/lpc2148_2mhz.cfg b/src/target/target/lpc2148_2mhz.cfg
new file mode 100644 (file)
index 0000000..d709e13
--- /dev/null
@@ -0,0 +1,3 @@
+# 2MHz\r
+jtag_khz 2000\r
+script target/lpc2148.cfg\r
diff --git a/src/target/target/lpc2148_rclk.cfg b/src/target/target/lpc2148_rclk.cfg
new file mode 100644 (file)
index 0000000..1afafaa
--- /dev/null
@@ -0,0 +1,3 @@
+# RCLK\r
+jtag_khz 0\r
+script target/lpc2148.cfg\r