summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-30 09:09:30 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-30 09:09:30 +0000
commitf130f95d455332a114e468b3f77a203e3fdf4aee (patch)
tree70f00a72c9850087e07065a6094d78b49a94c151 /src
parent0894ae214a0bb7ab17e772abdc4d512e8991be31 (diff)
downloadopenocd_libswd-f130f95d455332a114e468b3f77a203e3fdf4aee.tar.gz
openocd_libswd-f130f95d455332a114e468b3f77a203e3fdf4aee.tar.bz2
openocd_libswd-f130f95d455332a114e468b3f77a203e3fdf4aee.tar.xz
openocd_libswd-f130f95d455332a114e468b3f77a203e3fdf4aee.zip
Marcel Jost <marcel.jost@bfh.ch>:
This patch adds support for the Luminary Micro LM3S9B90 target and LM3S9B92 Evaluation Kit. These kits include a new ft2232 adapter, the Luminary In-Circuit Debug Interface (ICDI) Board, so this is added as a new ft2232 layout called "luminary_icdi". git-svn-id: svn://svn.berlios.de/openocd/trunk@2429 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r--src/jtag/ft2232.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/jtag/ft2232.c b/src/jtag/ft2232.c
index c870262e..4cba9d90 100644
--- a/src/jtag/ft2232.c
+++ b/src/jtag/ft2232.c
@@ -156,6 +156,7 @@ static const ft2232_layout_t ft2232_layouts[] =
{ "oocdlink", jtagkey_init, jtagkey_reset, NULL },
{ "signalyzer", usbjtag_init, usbjtag_reset, NULL },
{ "evb_lm3s811", usbjtag_init, usbjtag_reset, NULL },
+ { "luminary_icdi", usbjtag_init, usbjtag_reset, NULL },
{ "olimex-jtag", olimex_jtag_init, olimex_jtag_reset, olimex_jtag_blink },
{ "flyswatter", flyswatter_init, flyswatter_reset, flyswatter_jtag_blink },
{ "turtelizer2", turtle_init, turtle_reset, turtle_jtag_blink },
@@ -2163,6 +2164,15 @@ static int usbjtag_init(void)
low_output = 0x88;
low_direction = 0x8b;
}
+ else if (strcmp(ft2232_layout, "luminary_icdi") == 0)
+ {
+ nTRST = 0x0;
+ nTRSTnOE = 0x00;
+ nSRST = 0x20;
+ nSRSTnOE = 0x20;
+ low_output = 0x88;
+ low_direction = 0xcb;
+ }
else
{
LOG_ERROR("BUG: usbjtag_init called for unknown layout '%s'", ft2232_layout);