From 7582e2fd281153a9a7c9318a3dda010efd2a13ed Mon Sep 17 00:00:00 2001
From: Paul Fertser <fercerpav@gmail.com>
Date: Wed, 30 Nov 2016 12:51:35 +0300
Subject: [PATCH] tcl: target: imx5{1,3}: remove bogus tapenable command

This seems to be a leftover from borrowing from omap3* configs. Since
SJC is not enabling or disabling the DAP tap, and the tap is always
available, the extra tapenable command causes warnings on startup
(can't enable what's already enabled).

Change-Id: I7514436d565aa5b91876dbdab547956f36dcab77
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/3892
Tested-by: jenkins
---
 tcl/target/imx51.cfg | 3 ---
 tcl/target/imx53.cfg | 3 ---
 2 files changed, 6 deletions(-)

diff --git a/tcl/target/imx51.cfg b/tcl/target/imx51.cfg
index b143aad25..d10cf9f5d 100644
--- a/tcl/target/imx51.cfg
+++ b/tcl/target/imx51.cfg
@@ -36,9 +36,6 @@ target create $_TARGETNAME cortex_a -chain-position $_CHIPNAME.DAP
 # some TCK tycles are required to activate the DEBUG power domain
 jtag configure $_CHIPNAME.SJC -event post-reset "runtest 100"
 
-# have the DAP "always" be active
-jtag configure $_CHIPNAME.SJC -event setup "jtag tapenable $_CHIPNAME.DAP"
-
 proc imx51_dbginit {target} {
      # General Cortex-A8 debug initialisation
      cortex_a dbginit
diff --git a/tcl/target/imx53.cfg b/tcl/target/imx53.cfg
index 87a3008e4..5ad6473a8 100644
--- a/tcl/target/imx53.cfg
+++ b/tcl/target/imx53.cfg
@@ -36,9 +36,6 @@ target create $_TARGETNAME cortex_a -chain-position $_CHIPNAME.DAP
 # some TCK tycles are required to activate the DEBUG power domain
 jtag configure $_CHIPNAME.SJC -event post-reset "runtest 100"
 
-# have the DAP "always" be active
-jtag configure $_CHIPNAME.SJC -event setup "jtag tapenable $_CHIPNAME.DAP"
-
 proc imx53_dbginit {target} {
      # General Cortex-A8 debug initialisation
      cortex_a dbginit
-- 
GitLab