Merge pull request #22 from johnp789/gpiojtag

Toggle test and reset pins to make gpio 4-wire JTAG work on SBW-enabled targets
This commit is contained in:
Daniel Beer 2016-11-24 10:14:22 +13:00 committed by GitHub
commit 7c9887f9bf
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);