From 588bbac719b65c60b1f42ef11887a30907e3f82d Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 5 May 2020 09:02:58 +0200 Subject: [PATCH] add prog directory with some Xilinx OpenOCD configurations files. --- litex_boards/prog/openocd_netv2_rpi.cfg | 15 +++++++++++++++ litex_boards/prog/openocd_xilinx_xc6.cfg | 14 ++++++++++++++ litex_boards/prog/openocd_xilinx_xc7.cfg | 14 ++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 litex_boards/prog/openocd_netv2_rpi.cfg create mode 100644 litex_boards/prog/openocd_xilinx_xc6.cfg create mode 100644 litex_boards/prog/openocd_xilinx_xc7.cfg diff --git a/litex_boards/prog/openocd_netv2_rpi.cfg b/litex_boards/prog/openocd_netv2_rpi.cfg new file mode 100644 index 0000000..54bc2da --- /dev/null +++ b/litex_boards/prog/openocd_netv2_rpi.cfg @@ -0,0 +1,15 @@ +interface bcm2835gpio +transport select jtag +bcm2835gpio_peripheral_base 0x3F000000 +bcm2835gpio_speed_coeffs 100000 5 +bcm2835gpio_jtag_nums 4 17 27 22 +bcm2835gpio_srst_num 24 +reset_config none + +source [find cpld/xilinx-xc7.cfg] +adapter_khz 10000 + +proc fpga_program {} { + global _CHIPNAME + xc7_program $_CHIPNAME.tap +} \ No newline at end of file diff --git a/litex_boards/prog/openocd_xilinx_xc6.cfg b/litex_boards/prog/openocd_xilinx_xc6.cfg new file mode 100644 index 0000000..7c83233 --- /dev/null +++ b/litex_boards/prog/openocd_xilinx_xc6.cfg @@ -0,0 +1,14 @@ +interface ftdi +ftdi_vid_pid 0x0403 0x6010 +ftdi_channel 0 +ftdi_layout_init 0x00e8 0x60eb +reset_config none + +source [find cpld/xilinx-xc6.cfg] +source [find cpld/jtagspi.cfg] +adapter_khz 25000 + +proc fpga_program {} { + global _CHIPNAME + xc6_program $_CHIPNAME.tap +} diff --git a/litex_boards/prog/openocd_xilinx_xc7.cfg b/litex_boards/prog/openocd_xilinx_xc7.cfg new file mode 100644 index 0000000..b5eda4b --- /dev/null +++ b/litex_boards/prog/openocd_xilinx_xc7.cfg @@ -0,0 +1,14 @@ +interface ftdi +ftdi_vid_pid 0x0403 0x6010 +ftdi_channel 0 +ftdi_layout_init 0x00e8 0x60eb +reset_config none + +source [find cpld/xilinx-xc7.cfg] +source [find cpld/jtagspi.cfg] +adapter_khz 25000 + +proc fpga_program {} { + global _CHIPNAME + xc7_program $_CHIPNAME.tap +}