cfg: Add Hitex LPC1768-Stick using ftdi driver
authorJoerg Fischer <turboj@gmx.de>
Wed, 25 Jul 2012 08:10:37 +0000 (10:10 +0200)
committerFreddie Chopin <freddie.chopin@gmail.com>
Wed, 1 Aug 2012 21:12:27 +0000 (21:12 +0000)
Add cfg files for Hitex LPC1768 Stick
Website: http://www.hitex.com/?id=1602

This board has a FTDI2232D as JTAG interface, using the
same layout as the Hitex STM32-PerformanceStick but with
different USB PID.

Main MCU is a LPC1768 from NXP.

The interface config uses the ftdi driver instead of ft2232.
The corresponding ft2232 layout would be "stm32stick".

Change-Id: I1fd15588c5af35f7d51777d1ad958cc1dc72c6f7
Signed-off-by: Joerg Fischer <turboj@gmx.de>
Reviewed-on: http://openocd.zylin.com/763
Tested-by: jenkins
Reviewed-by: Freddie Chopin <freddie.chopin@gmail.com>
tcl/board/hitex_lpc1768stick.cfg [new file with mode: 0644]
tcl/interface/ftdi/hitex_lpc1768stick.cfg [new file with mode: 0644]

diff --git a/tcl/board/hitex_lpc1768stick.cfg b/tcl/board/hitex_lpc1768stick.cfg
new file mode 100644 (file)
index 0000000..08820f0
--- /dev/null
@@ -0,0 +1,15 @@
+# Hitex LPC1768 Stick
+#
+# http://www.hitex.com/?id=1602
+#
+
+reset_config trst_and_srst
+
+source [find interface/ftdi/hitex_lpc1768stick.cfg]
+
+source [find target/lpc1768.cfg]
+
+
+# startup @ 500kHz
+adapter_khz 500
+
diff --git a/tcl/interface/ftdi/hitex_lpc1768stick.cfg b/tcl/interface/ftdi/hitex_lpc1768stick.cfg
new file mode 100644 (file)
index 0000000..4efe8bb
--- /dev/null
@@ -0,0 +1,15 @@
+#
+# Hitex LPC1768-Stick
+#
+# http://www.hitex.com/?id=1602
+#
+
+
+interface ftdi
+ftdi_device_desc "LPC1768-Stick"
+ftdi_vid_pid 0x0640 0x0026
+
+ftdi_layout_init 0x0188 0x038b
+ftdi_layout_signal nTRST -data 0x0100
+ftdi_layout_signal nSRST -data 0x0080 -noe 0x200
+