Correct jtag port init to not interfere with usb vbus detect.

This commit is contained in:
Gareth McMullin 2012-04-22 12:21:24 +12:00
parent c1e9425725
commit b39572e17c
1 changed files with 2 additions and 2 deletions

View File

@ -31,10 +31,10 @@ int jtagtap_init(void)
/* This needs some fixing... */
/* Toggle required to sort out line drivers... */
gpio_port_write(GPIOA, 0x8100);
gpio_port_write(GPIOB, 0x0000);
gpio_port_write(GPIOB, 0x2000);
gpio_port_write(GPIOA, 0x8180);
gpio_port_write(GPIOB, 0x0002);
gpio_port_write(GPIOB, 0x2002);
gpio_set_mode(JTAG_PORT, GPIO_MODE_OUTPUT_50_MHZ,
GPIO_CNF_OUTPUT_PUSHPULL, TMS_PIN);