This is an automated email from Gerrit.

Stéphane Bonnet ([email protected]) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/562

-- gerrit

commit 2e37930ae9e7d8ef2c077f8cf02da6cdc4c2f90a
Author: Stephane Bonnet <[email protected]>
Date:   Tue Apr 10 17:22:44 2012 +0200

    ft2232: Support for Digilent HS1 USB adapter
    
        * Added support to the FT2232 driver for the FT2232H-based
          Digilent HS1 adapter. It does not support reset signals,
          so there is no digilent_hs1_reset function.
    
    Change-Id: If1a43c73711709285ffba8c9c22431df4497a59f
    Signed-off-by: Stephane Bonnet <[email protected]>

diff --git a/src/jtag/drivers/ft2232.c b/src/jtag/drivers/ft2232.c
index 7d84cdc..e4b5601 100644
--- a/src/jtag/drivers/ft2232.c
+++ b/src/jtag/drivers/ft2232.c
@@ -212,6 +212,7 @@ static void signalyzer_h_reset(int trst, int srst);
 static void ktlink_reset(int trst, int srst);
 static void redbee_reset(int trst, int srst);
 static void xds100v2_reset(int trst, int srst);
+static void digilent_hs1_reset(int trst, int srst);
 
 /* blink procedures for layouts that support a blinking led */
 static void olimex_jtag_blink(void);
@@ -340,6 +341,7 @@ static const struct ft2232_layout  ft2232_layouts[] = {
        },
        { .name = "digilent-hs1",
                .init = digilent_hs1_init,
+               .reset = digilent_hs1_reset, 
                .channel = INTERFACE_A,
        },
        { .name = NULL, /* END OF TABLE */ },
@@ -1890,8 +1892,7 @@ static int ft2232_execute_reset(struct jtag_command *cmd)
            (cmd->cmd.reset->srst && (jtag_get_reset_config() & 
RESET_SRST_PULLS_TRST)))
                tap_set_state(TAP_RESET);
 
-       if (layout->reset)
-               layout->reset(cmd->cmd.reset->trst, cmd->cmd.reset->srst);
+       layout->reset(cmd->cmd.reset->trst, cmd->cmd.reset->srst);
        require_send = 1;
 
        DEBUG_JTAG_IO("trst: %i, srst: %i",
@@ -4207,6 +4208,10 @@ static int digilent_hs1_init(void)
        return ERROR_OK;
 }
 
+static void digilent_hs1_reset(int trst, int srst)
+{
+}
+
 static const struct command_registration ft2232_command_handlers[] = {
        {
                .name = "ft2232_device_desc",

-- 

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to