This is an automated email from Gerrit.

Olof Kindgren ([email protected]) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/838

-- gerrit

commit 80f52ddfba8ceafe0b1bc629d102dc2d8bf4c853
Author: Olof Kindgren <[email protected]>
Date:   Sun Sep 23 22:51:17 2012 +0200

    feature: Add support for ordb2a jtag interface
    
    ordb2a is an FPGA development board for the OpenRISC platform.
    This patch adds support for JTAG communication with the soft CPU
    debug interface via the onboard FT4232H
    
    Change-Id: Ic2e78166e1316b22ae95297613d2107a9a49a119
    Signed-off-by: Olof Kindgren <[email protected]>

diff --git a/src/jtag/drivers/ft2232.c b/src/jtag/drivers/ft2232.c
index 1997aeb..269b727 100644
--- a/src/jtag/drivers/ft2232.c
+++ b/src/jtag/drivers/ft2232.c
@@ -176,6 +176,7 @@ static int jtagkey_init(void);
 static int lm3s811_jtag_init(void);
 static int icdi_jtag_init(void);
 static int olimex_jtag_init(void);
+static int ordb2a_init(void);
 static int flyswatter1_init(void);
 static int flyswatter2_init(void);
 static int minimodule_init(void);
@@ -199,6 +200,7 @@ static int digilent_hs1_init(void);
 static void ftx23_reset(int trst, int srst);
 static void jtagkey_reset(int trst, int srst);
 static void olimex_jtag_reset(int trst, int srst);
+static void ordb2a_reset(int trst, int srst);
 static void flyswatter1_reset(int trst, int srst);
 static void flyswatter2_reset(int trst, int srst);
 static void minimodule_reset(int trst, int srst);
@@ -262,6 +264,11 @@ static const struct ft2232_layout  ft2232_layouts[] = {
                .reset = olimex_jtag_reset,
                .blink = olimex_jtag_blink
        },
+       { .name = "ordb2a",
+               .init = ordb2a_init,
+               .reset = ordb2a_reset,
+               .channel = INTERFACE_B
+       },
        { .name = "flyswatter",
                .init = flyswatter1_init,
                .reset = flyswatter1_reset,
@@ -1425,6 +1432,16 @@ static void olimex_jtag_reset(int trst, int srst)
                high_direction);
 }
 
+static void ordb2a_reset(int trst, int srst)
+{
+       /* Nothing to do here */
+       LOG_DEBUG("trst: %i, srst: %i, high_output: 0x%2.2x, high_direction: 
0x%2.2x",
+               trst,
+               srst,
+               high_output,
+               high_direction);
+}
+
 static void axm0432_jtag_reset(int trst, int srst)
 {
        if (trst == 1) {
@@ -2717,6 +2734,26 @@ static int olimex_jtag_init(void)
        return ERROR_OK;
 }
 
+static int ordb2a_init(void)
+{
+       low_output = 0x08;
+       low_direction = 0x0b;
+
+       /* initialize low byte for jtag */
+       if (ft2232_set_data_bits_low_byte(low_output, low_direction) != 
ERROR_OK) {
+               LOG_ERROR("couldn't initialize FT2232 with 'ordb2a' layout");
+               return ERROR_JTAG_INIT_FAILED;
+       }
+
+       /* No RST connections from this JTAG cable */
+       nTRST    = 0x00;
+       nTRSTnOE = 0x0;
+       nSRST    = 0x00;
+       nSRSTnOE = 0x00;
+
+       return ERROR_OK;
+}
+
 static int flyswatter_init(int rev)
 {
        low_output    = 0x18;
diff --git a/tcl/interface/ordb2a.cfg b/tcl/interface/ordb2a.cfg
new file mode 100644
index 0000000..47733e6
--- /dev/null
+++ b/tcl/interface/ordb2a.cfg
@@ -0,0 +1,10 @@
+#
+# ORSoC ordb2a JTAG interface
+#
+# http://orsoc.se/altera-fpga-development-board/
+#
+
+interface ft2232
+ft2232_layout ordb2a
+ft2232_vid_pid 0x0403 0x6011
+adapter_khz 6000

-- 

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to