tcl: Adapt config files to new ftdi command syntax
The patch was created automatically using the following script: %<---%<---%<---%<---%<---%<---%<---%<---%<---%<---%<---%<--- (cat << EOF ftdi_device_desc ftdi device_desc ftdi_serial ftdi serial ftdi_channel ftdi channel ftdi_layout_init ftdi layout_init ftdi_layout_signal ftdi layout_signal ftdi_set_signal ftdi set_signal ftdi_get_signal ftdi get_signal ftdi_vid_pid ftdi vid_pid ftdi_tdo_sample_edge ftdi tdo_sample_edge EOF ) | while read a b; do sed -i "s/$a/$b/g" $(find tcl -type f -name "*.cfg" ) done %<---%<---%<---%<---%<---%<---%<---%<---%<---%<---%<---%<--- Change-Id: Iff781f37bb5511b7e15cbe6dcdf6d28e89fb174f Signed-off-by: Marc Schink <dev@zapb.de> Reviewed-on: http://openocd.zylin.com/6333 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
committed by
Antonio Borneo
parent
1d4b252bb1
commit
7c38f24529
@@ -8,9 +8,9 @@
|
||||
#
|
||||
|
||||
adapter driver ftdi
|
||||
ftdi_vid_pid 0x0403 0xa6d0 0x0403 0x6010
|
||||
ftdi vid_pid 0x0403 0xa6d0 0x0403 0x6010
|
||||
|
||||
ftdi_layout_init 0x0038 0x597b
|
||||
ftdi layout_init 0x0038 0x597b
|
||||
|
||||
# 8000 z - unused
|
||||
# 4000 0 > CPLD loopback (all target side pins high-Z)
|
||||
@@ -45,14 +45,14 @@ ftdi_layout_init 0x0038 0x597b
|
||||
# changing the USB configuration to zero.)
|
||||
#
|
||||
|
||||
ftdi_layout_signal nTRST -data 0x0010
|
||||
ftdi_layout_signal nSRST -oe 0x0100
|
||||
ftdi_layout_signal EMU_EN -data 0x0020
|
||||
ftdi_layout_signal EMU0 -oe 0x0040
|
||||
ftdi_layout_signal EMU1 -oe 0x1000
|
||||
ftdi_layout_signal PWR_RST -data 0x0800
|
||||
ftdi_layout_signal LOOPBACK -data 0x4000
|
||||
ftdi layout_signal nTRST -data 0x0010
|
||||
ftdi layout_signal nSRST -oe 0x0100
|
||||
ftdi layout_signal EMU_EN -data 0x0020
|
||||
ftdi layout_signal EMU0 -oe 0x0040
|
||||
ftdi layout_signal EMU1 -oe 0x1000
|
||||
ftdi layout_signal PWR_RST -data 0x0800
|
||||
ftdi layout_signal LOOPBACK -data 0x4000
|
||||
|
||||
echo "\nInfo : to use this adapter you MUST add ``init; ftdi_set_signal PWR_RST 1; jtag arp_init'' to the end of your config file!\n"
|
||||
echo "\nInfo : to use this adapter you MUST add ``init; ftdi set_signal PWR_RST 1; jtag arp_init'' to the end of your config file!\n"
|
||||
# note: rising edge on PWR_RST is also needed after power-cycling the
|
||||
# target
|
||||
|
||||
Reference in New Issue
Block a user