- added support for the Signalyzer USB->JTAG dongle (www.signalyzer.com)
authordrath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 14 Aug 2006 10:02:55 +0000 (10:02 +0000)
committerdrath <drath@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 14 Aug 2006 10:02:55 +0000 (10:02 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@84 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/jtag/ft2232.c

index 64975825dd013ec2a592a4fd015b07059ba1b19b..862003f5b292cbaeb1b5bee92ac4e14218278919 100644 (file)
@@ -95,6 +95,7 @@ ft2232_layout_t ft2232_layouts[] =
        {"usbjtag", usbjtag_init, usbjtag_reset},
        {"jtagkey", jtagkey_init, jtagkey_reset},
        {"jtagkey_prototype_v1", jtagkey_init, jtagkey_reset},
        {"usbjtag", usbjtag_init, usbjtag_reset},
        {"jtagkey", jtagkey_init, jtagkey_reset},
        {"jtagkey_prototype_v1", jtagkey_init, jtagkey_reset},
+       {"signalyzer", usbjtag_init, usbjtag_reset},
        {NULL, NULL, NULL},
 };
 
        {NULL, NULL, NULL},
 };
 
@@ -893,15 +894,15 @@ int ft2232_init(void)
 #elif BUILD_FT2232_LIBFTDI == 1
        DEBUG("'ft2232' interface using libftdi with '%s' layout", ft2232_layout);
 #endif
 #elif BUILD_FT2232_LIBFTDI == 1
        DEBUG("'ft2232' interface using libftdi with '%s' layout", ft2232_layout);
 #endif
-               
+
+#if BUILD_FT2232_FTD2XX == 1
+       /* Open by device description */
        if (ft2232_device_desc == NULL)
        {
                WARNING("no ftd2xx device description specified, using default 'Dual RS232'");
                ft2232_device_desc = "Dual RS232";
        }
        if (ft2232_device_desc == NULL)
        {
                WARNING("no ftd2xx device description specified, using default 'Dual RS232'");
                ft2232_device_desc = "Dual RS232";
        }
-
-#if BUILD_FT2232_FTD2XX == 1
-
+       
 #if IS_WIN32 == 0
        /* Add non-standard Vid/Pid to the linux driver */
        if ((status = FT_SetVIDPID(ft2232_vid, ft2232_pid)) != FT_OK)
 #if IS_WIN32 == 0
        /* Add non-standard Vid/Pid to the linux driver */
        if ((status = FT_SetVIDPID(ft2232_vid, ft2232_pid)) != FT_OK)
@@ -1046,10 +1047,25 @@ int usbjtag_init(void)
        low_output = 0x08;
        low_direction = 0x0b;
        
        low_output = 0x08;
        low_direction = 0x0b;
        
-       nTRST = 0x10;
-       nTRSTnOE = 0x10;
-       nSRST = 0x40;
-       nSRSTnOE = 0x40;
+       if (strcmp(ft2232_layout, "usbjtag") == 0)
+       {
+               nTRST = 0x10;
+               nTRSTnOE = 0x10;
+               nSRST = 0x40;
+               nSRSTnOE = 0x40;
+       }
+       else if (strcmp(ft2232_layout, "signalyzer") == 0)
+       {
+               nTRST = 0x10;
+               nTRSTnOE = 0x10;
+               nSRST = 0x20;
+               nSRSTnOE = 0x20;
+       }
+       else
+       {
+               ERROR("BUG: usbjtag_init called for unknown layout '%s'", ft2232_layout);
+               return ERROR_JTAG_INIT_FAILED;  
+       }
        
        if (jtag_reset_config & RESET_TRST_OPEN_DRAIN)
        {
        
        if (jtag_reset_config & RESET_TRST_OPEN_DRAIN)
        {

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)