Clean up references to old tap_state names
authorkc8apf <kc8apf@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sat, 13 Dec 2008 06:59:24 +0000 (06:59 +0000)
committerkc8apf <kc8apf@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sat, 13 Dec 2008 06:59:24 +0000 (06:59 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1235 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/flash/str9xpec.c
src/jtag/amt_jtagaccel.c
src/jtag/bitbang.c
src/jtag/bitq.c
src/jtag/gw16012.c
src/jtag/jlink.c
src/jtag/jtag.c
src/jtag/jtag.h
src/jtag/usbprog.c
src/jtag/zy1000.c
src/target/arm11_dbgtap.c

index f96ad874044173c55c211f8d987a80424f1ebe3a..6c49419eb974b34d8aa26c28e03f5b3fbf9517fd 100644 (file)
@@ -1338,7 +1338,7 @@ int str9xpec_handle_flash_disable_turbo_command(struct command_context_s *cmd_ct
        if (tap == NULL)
                return ERROR_FAIL;
 
-       /* exit turbo mode via TLR */
+       /* exit turbo mode via RESET */
        str9xpec_set_instr(tap, ISC_NOOP, TAP_RESET);
        jtag_execute_queue();
 
index f03b23f12c0d270d2adf3d8bbd18bd50231d4f66..26e2f8ecc6c9cf0caf1893f56f660e5a44b0206d 100644 (file)
@@ -100,13 +100,13 @@ int amt_jtagaccel_handle_rtck_command(struct command_context_s *cmd_ctx, char *c
  */
 u8 amt_jtagaccel_tap_move[6][6][2] =
 {
-       /*         TLR           RTI              SD            PD            SI            PI             */
-       {{0x1f, 0x00}, {0x0f, 0x00}, {0x8a, 0x04}, {0x0a, 0x00}, {0x06, 0x00}, {0x96, 0x00}},   /* TLR */
-       {{0x1f, 0x00}, {0x00, 0x00}, {0x85, 0x08}, {0x05, 0x00}, {0x8b, 0x08}, {0x0b, 0x00}},   /* RTI */
-       {{0x1f, 0x00}, {0x0d, 0x00}, {0x00, 0x00}, {0x01, 0x00}, {0x8f, 0x09}, {0x8f, 0x01}},   /* SD  */
-       {{0x1f, 0x00}, {0x0c, 0x00}, {0x08, 0x00}, {0x00, 0x00}, {0x8f, 0x09}, {0x8f, 0x01}},   /* PD  */
-       {{0x1f, 0x00}, {0x0d, 0x00}, {0x07, 0x00}, {0x97, 0x00}, {0x00, 0x00}, {0x01, 0x00}},   /* SI  */
-       {{0x1f, 0x00}, {0x0c, 0x00}, {0x07, 0x00}, {0x97, 0x00}, {0x08, 0x00}, {0x00, 0x00}},   /* PI  */
+       /*         RESET         IDLE        DRSHIFT       DRPAUSE       IRSHIFT       IRPAUSE             */
+       {{0x1f, 0x00}, {0x0f, 0x00}, {0x8a, 0x04}, {0x0a, 0x00}, {0x06, 0x00}, {0x96, 0x00}},   /* RESET */
+       {{0x1f, 0x00}, {0x00, 0x00}, {0x85, 0x08}, {0x05, 0x00}, {0x8b, 0x08}, {0x0b, 0x00}},   /* IDLE */
+       {{0x1f, 0x00}, {0x0d, 0x00}, {0x00, 0x00}, {0x01, 0x00}, {0x8f, 0x09}, {0x8f, 0x01}},   /* DRSHIFT  */
+       {{0x1f, 0x00}, {0x0c, 0x00}, {0x08, 0x00}, {0x00, 0x00}, {0x8f, 0x09}, {0x8f, 0x01}},   /* DRPAUSE  */
+       {{0x1f, 0x00}, {0x0d, 0x00}, {0x07, 0x00}, {0x97, 0x00}, {0x00, 0x00}, {0x01, 0x00}},   /* IRSHIFT  */
+       {{0x1f, 0x00}, {0x0c, 0x00}, {0x07, 0x00}, {0x97, 0x00}, {0x08, 0x00}, {0x00, 0x00}},   /* IRPAUSE  */
 };
 
 jtag_interface_t amt_jtagaccel_interface =
@@ -214,7 +214,7 @@ void amt_jtagaccel_runtest(int num_cycles)
 
        enum tap_state saved_end_state = end_state;
 
-       /* only do a state_move when we're not already in RTI */
+       /* only do a state_move when we're not already in IDLE */
        if (cur_state != TAP_IDLE)
        {
                amt_jtagaccel_end_state(TAP_IDLE);
index cc05dbeeaa93a0c4daf60e3a5ab6bc0e630ac056..fbfffd368c1f14233df2388f94cd4a9e14c597d3 100644 (file)
@@ -133,7 +133,7 @@ void bitbang_runtest(int num_cycles)
 
        enum tap_state saved_end_state = end_state;
 
-       /* only do a state_move when we're not already in RTI */
+       /* only do a state_move when we're not already in IDLE */
        if (cur_state != TAP_IDLE)
        {
                bitbang_end_state(TAP_IDLE);
index 47fdc923c56616679d101c1f649fef8f2c292f0c..e18d93c6821cdd263e8acbd178098c4e1a3e09d8 100644 (file)
@@ -194,7 +194,7 @@ void bitq_runtest(int num_cycles)
 {
        int i;
 
-       /* only do a state_move when we're not already in RTI */
+       /* only do a state_move when we're not already in IDLE */
        if (cur_state != TAP_IDLE) bitq_state_move(TAP_IDLE);
 
        /* execute num_cycles */
index 506b5a603d3f566f6411c7b8975d930fbeda9a39..60ad56995831ef6a5d4fb73e6e1b49d83552435a 100644 (file)
@@ -257,7 +257,7 @@ void gw16012_runtest(int num_cycles)
        enum tap_state saved_end_state = end_state;
        int i;
 
-       /* only do a state_move when we're not already in RTI */
+       /* only do a state_move when we're not already in IDLE */
        if (cur_state != TAP_IDLE)
        {
                gw16012_end_state(TAP_IDLE);
index 6d40b56dbd0d6304c5286a38de9e3629b553a721..a764bc8cf1b7d22fbab393cac76f80fdabda9a94 100644 (file)
@@ -392,7 +392,7 @@ void jlink_runtest(int num_cycles)
 
        enum tap_state saved_end_state = end_state;
 
-       /* only do a state_move when we're not already in RTI */
+       /* only do a state_move when we're not already in IDLE */
        if (cur_state != TAP_IDLE)
        {
                jlink_end_state(TAP_IDLE);
index d48641836f274157e171eb3ba616c087e9aea368..0b70c0f14bfce3aaadd3fb01f28cdf1e792bccac 100644 (file)
@@ -67,17 +67,17 @@ static cmd_queue_page_t *cmd_queue_pages = NULL;
  * 4: Shift-IR
  * 5: Pause-IR
  *
- * SD->SD and SI->SI have to be caught in interface specific code
+ * DRSHIFT->DRSHIFT and IRSHIFT->IRSHIFT have to be caught in interface specific code
  */
 u8 tap_move[6][6] =
 {
-/*       TLR   RTI   SD    PD    SI    PI             */
-       {0x7f, 0x00, 0x17, 0x0a, 0x1b, 0x16},   /* TLR */
-       {0x7f, 0x00, 0x25, 0x05, 0x2b, 0x0b},   /* RTI */
-       {0x7f, 0x31, 0x00, 0x01, 0x0f, 0x2f},   /* SD  */
-       {0x7f, 0x30, 0x20, 0x17, 0x1e, 0x2f},   /* PD  */
-       {0x7f, 0x31, 0x07, 0x17, 0x00, 0x01},   /* SI  */
-       {0x7f, 0x30, 0x1c, 0x17, 0x20, 0x2f}    /* PI  */
+/*       RESET  IDLE  DRSHIFT  DRPAUSE  IRSHIFT  IRPAUSE             */
+       {  0x7f, 0x00,    0x17,    0x0a,    0x1b,    0x16},     /* RESET */
+       {  0x7f, 0x00,    0x25,    0x05,    0x2b,    0x0b},     /* IDLE */
+       {  0x7f, 0x31,    0x00,    0x01,    0x0f,    0x2f},     /* DRSHIFT  */
+       {  0x7f, 0x30,    0x20,    0x17,    0x1e,    0x2f},     /* DRPAUSE  */
+       {  0x7f, 0x31,    0x07,    0x17,    0x00,    0x01},     /* IRSHIFT  */
+       {  0x7f, 0x30,    0x1c,    0x17,    0x20,    0x2f}      /* IRPAUSE  */
 };
 
 int tap_move_map[16] = {
@@ -87,27 +87,27 @@ int tap_move_map[16] = {
 
 tap_transition_t tap_transitions[16] =
 {
-       {TAP_RESET, TAP_IDLE},          /* TLR */
-       {TAP_IRSELECT, TAP_DRCAPTURE},          /* SDS */
-       {TAP_DREXIT1, TAP_DRSHIFT},             /* CD  */
-       {TAP_DREXIT1, TAP_DRSHIFT},             /* SD  */
-       {TAP_DRUPDATE,  TAP_DRPAUSE},           /* E1D */
-       {TAP_DREXIT2, TAP_DRPAUSE},             /* PD  */
-       {TAP_DRUPDATE,  TAP_DRSHIFT},           /* E2D */
-       {TAP_DRSELECT, TAP_IDLE},               /* UD  */
-       {TAP_DRSELECT, TAP_IDLE},               /* RTI */
-       {TAP_RESET, TAP_IRCAPTURE},             /* SIS */
-       {TAP_IREXIT1, TAP_IRSHIFT},             /* CI  */
-       {TAP_IREXIT1, TAP_IRSHIFT},             /* SI  */
-       {TAP_IRUPDATE,  TAP_IRPAUSE},           /* E1I */
-       {TAP_IREXIT2, TAP_IRPAUSE},             /* PI  */
-       {TAP_IRUPDATE,  TAP_IRSHIFT},           /* E2I */
-       {TAP_DRSELECT, TAP_IDLE}                /* UI  */
+       {TAP_RESET, TAP_IDLE},          /* RESET */
+       {TAP_IRSELECT, TAP_DRCAPTURE},          /* DRSELECT */
+       {TAP_DREXIT1, TAP_DRSHIFT},             /* DRCAPTURE  */
+       {TAP_DREXIT1, TAP_DRSHIFT},             /* DRSHIFT  */
+       {TAP_DRUPDATE,  TAP_DRPAUSE},           /* DREXIT1 */
+       {TAP_DREXIT2, TAP_DRPAUSE},             /* DRPAUSE  */
+       {TAP_DRUPDATE,  TAP_DRSHIFT},           /* DREXIT2 */
+       {TAP_DRSELECT, TAP_IDLE},               /* DRUPDATE  */
+       {TAP_DRSELECT, TAP_IDLE},               /* IDLE */
+       {TAP_RESET, TAP_IRCAPTURE},             /* IRSELECT */
+       {TAP_IREXIT1, TAP_IRSHIFT},             /* IRCAPTURE  */
+       {TAP_IREXIT1, TAP_IRSHIFT},             /* IRSHIFT  */
+       {TAP_IRUPDATE,  TAP_IRPAUSE},           /* IREXIT1 */
+       {TAP_IREXIT2, TAP_IRPAUSE},             /* IRPAUSE  */
+       {TAP_IRUPDATE,  TAP_IRSHIFT},           /* IREXIT2 */
+       {TAP_DRSELECT, TAP_IDLE}                /* IRUPDATE  */
 };
 
 char* jtag_event_strings[] =
 {
-       "JTAG controller reset (TLR or TRST)"
+       "JTAG controller reset (RESET or TRST)"
 };
 
 /* kludge!!!! these are just global variables that the
@@ -1153,7 +1153,7 @@ void jtag_add_reset(int req_tlr_or_trst, int req_srst)
 
        if (trst_with_tlr)
        {
-               LOG_DEBUG("JTAG reset with TLR instead of TRST");
+               LOG_DEBUG("JTAG reset with RESET instead of TRST");
                jtag_add_end_state(TAP_RESET);
                jtag_add_tlr();
                jtag_call_event_callbacks(JTAG_TRST_ASSERTED);
@@ -1198,7 +1198,7 @@ void jtag_add_end_state(enum tap_state state)
        cmd_queue_end_state = state;
        if ((cmd_queue_end_state == TAP_DRSHIFT)||(cmd_queue_end_state == TAP_IRSHIFT))
        {
-               LOG_ERROR("BUG: TAP_DRSHIFT/SI can't be end state. Calling code should use a larger scan field");
+               LOG_ERROR("BUG: TAP_DRSHIFT/IRSHIFT can't be end state. Calling code should use a larger scan field");
        }
 }
 
@@ -2096,11 +2096,11 @@ int jtag_init_reset(struct command_context_s *cmd_ctx)
        if ((retval=jtag_interface_init(cmd_ctx)) != ERROR_OK)
                return retval;
 
-       LOG_DEBUG("Trying to bring the JTAG controller to life by asserting TRST / TLR");
+       LOG_DEBUG("Trying to bring the JTAG controller to life by asserting TRST / RESET");
 
        /* Reset can happen after a power cycle.
         *
-        * Ideally we would only assert TRST or run TLR before the target reset.
+        * Ideally we would only assert TRST or run RESET before the target reset.
         *
         * However w/srst_pulls_trst, trst is asserted together with the target
         * reset whether we want it or not.
@@ -2113,7 +2113,7 @@ int jtag_init_reset(struct command_context_s *cmd_ctx)
         * NB! order matters!!!! srst *can* disconnect JTAG circuitry
         *
         */
-       jtag_add_reset(1, 0); /* TLR or TRST */
+       jtag_add_reset(1, 0); /* RESET or TRST */
        if (jtag_reset_config & RESET_HAS_SRST)
        {
                jtag_add_reset(1, 1);
index d58be2f7d9cedf84bf2f566c6289447180d0ee8f..3ca084ac4e068226e928ef4b8b1b978b042f1a4c 100644 (file)
@@ -310,7 +310,7 @@ extern enum reset_types jtag_reset_config;
  * upon subsequent invocations
  */
 extern int jtag_interface_init(struct command_context_s *cmd_ctx);
-/* initialize JTAG chain using only a TLR reset. If init fails,
+/* initialize JTAG chain using only a RESET reset. If init fails,
  * try reset + init.
  */
 extern int jtag_init(struct command_context_s *cmd_ctx);
@@ -320,7 +320,7 @@ extern int jtag_register_commands(struct command_context_s *cmd_ctx);
 
 /* JTAG interface, can be implemented with a software or hardware fifo
  *
- * TAP_DRSHIFT and TAP_IRSHIFT are illegal end states. TAP_DRSHIFT/SI as end states
+ * TAP_DRSHIFT and TAP_IRSHIFT are illegal end states. TAP_DRSHIFT/IRSHIFT as end states
  * can be emulated by using a larger scan.
  *
  * Code that is relatively insensitive to the path(as long
index ae365719e5748c734bb1fd7657f8a59205692aa7..665c60700350aad673d94ca15a3f6cc133e6b6ee 100644 (file)
@@ -298,7 +298,7 @@ void usbprog_runtest(int num_cycles)
 {
        int i;
 
-       /* only do a state_move when we're not already in RTI */
+       /* only do a state_move when we're not already in IDLE */
        if (cur_state != TAP_IDLE)
        {
                usbprog_end_state(TAP_IDLE);
index 3c24a6301f59d72b5e1f9a5edf0739640248e744..315b785525ca7dff9737eea60292ae88b66330e5 100644 (file)
@@ -176,7 +176,7 @@ void zy1000_reset(int trst, int srst)
        if (trst||(srst&&(jtag_reset_config & RESET_SRST_PULLS_TRST)))
        {
                waitIdle();
-               /* we're now in the TLR state until trst is deasserted */
+               /* we're now in the RESET state until trst is deasserted */
                ZY1000_POKE(ZY1000_JTAG_BASE+0x20, TAP_RESET);
        } else
        {
index a433a7e1bf43e7c0b0ad70c40ebc98ba9f3eeb40..03dc49f9b86197172ffb467dd69326b9cc488bee 100644 (file)
@@ -340,10 +340,10 @@ void arm11_run_instr_data_prepare(arm11_common_t * arm11)
  * Put arm11_run_instr_data_prepare() and arm11_run_instr_data_finish()
  * around a block of arm11_run_instr_... calls.
  *
- * Any RTI can lead to an instruction execution when
+ * Any IDLE can lead to an instruction execution when
  * scan chains 4 or 5 are selected and the IR holds
  * INTEST or EXTEST. So we must disable that before
- * any following activities lead to an RTI.
+ * any following activities lead to an IDLE.
  *
  * \param arm11 Target state variable.
  *
@@ -471,7 +471,7 @@ void arm11_run_instr_data_to_core(arm11_common_t * arm11, u32 opcode, u32 * data
  *  the core but still shorter than any manually inducible delays.
  *
  */
-enum tap_state arm11_MOVE_PD_RTI_PD_with_delay[] =
+enum tap_state arm11_MOVE_DRPAUSE_IDLE_DRPAUSE_with_delay[] =
 {
     TAP_DREXIT2, TAP_DRUPDATE, TAP_IDLE, TAP_IDLE, TAP_IDLE, TAP_DRSELECT, TAP_DRCAPTURE, TAP_DRSHIFT
 };
@@ -518,8 +518,8 @@ void arm11_run_instr_data_to_core_noack(arm11_common_t * arm11, u32 opcode, u32
        if (count)
        {
            jtag_add_dr_scan(asizeof(chain5_fields), chain5_fields, TAP_DRPAUSE);
-           jtag_add_pathmove(asizeof(arm11_MOVE_PD_RTI_PD_with_delay),
-               arm11_MOVE_PD_RTI_PD_with_delay);
+           jtag_add_pathmove(asizeof(arm11_MOVE_DRPAUSE_IDLE_DRPAUSE_with_delay),
+               arm11_MOVE_DRPAUSE_IDLE_DRPAUSE_with_delay);
        }
        else
        {