Add toggling the test and reset pins to make gpio 4-wire JTAG work

on SBW-enabled targets
This commit is contained in:
John Pitney 2016-11-23 13:58:12 -06:00
parent fa3557db51
commit 916f63ef82
1 changed files with 9 additions and 1 deletions

View File

@ -386,12 +386,20 @@ unsigned int jtag_init(struct jtdev *p)
jtag_rst_clr(p);
p->f->jtdev_power_on(p);
jtag_tst_set(p);
jtag_tdi_set(p);
jtag_tms_set(p);
jtag_tck_set(p);
jtag_tclk_set(p);
jtag_rst_set(p);
jtag_tst_clr(p);
jtag_tst_set(p);
jtag_rst_clr(p);
jtag_tst_clr(p);
jtag_tst_set(p);
p->f->jtdev_connect(p);
jtag_rst_set(p);
jtag_reset_tap(p);