This is an automated email from Gerrit. "Conor Paxton <conor.pax...@microchip.com>" just uploaded a new patch set to Gerrit, which you can find at https://review.openocd.org/c/openocd/+/8554
-- gerrit commit 797b8430815fe2927a1839909626878efdc2ac71 Author: Conor Paxton <conor.pax...@microchip.com> Date: Mon May 27 22:50:45 2024 +0100 tcl: add add microchip embedded flashpro5 support Microchip's Embedded FlashPro5 uses an ftdi 4232H Device. Add board and interface files Change-Id: Ib14430616f0f720f1917d140d72019d4f42efb3d Signed-off-by: Tommy Murphy <tommy_mur...@hotmail.com> Signed-off-by: Anton Krug <anton.k...@gmail.com> Signed-off-by: Daire McNamara <daire.mcnam...@microchip.com> Signed-off-by: Matteo Bonicolini <matteo.bonicol...@microchip.com> Signed-off-by: Conor Paxton <conor.pax...@microchip.com> diff --git a/tcl/board/microchip_riscv_efp5.cfg b/tcl/board/microchip_riscv_efp5.cfg new file mode 100644 index 0000000000..320d86b207 --- /dev/null +++ b/tcl/board/microchip_riscv_efp5.cfg @@ -0,0 +1,31 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +#************************************************************************** +# Copyright (C) 2015-2018 by Microchip Technology Inc. * +# http://www.microchip.com/support * +# * +# This program is free software; you can redistribute it and/or modify * +# it under the terms of the GNU General Public License as published by * +# the Free Software Foundation; either version 2 of the License, or * +# (at your option) any later version. * +# * +# This program is distributed in the hope that it will be useful, * +# but WITHOUT ANY WARRANTY; without even the implied warranty of * +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +# GNU General Public License for more details. * +# * +# You should have received a copy of the GNU General Public License * +# along with this program. If not, see <http://www.gnu.org/licenses/>. * +#************************************************************************** + +#------------------------------------------------------------------------------ +# Microchip RISC-V board +#------------------------------------------------------------------------------ + +# Device +source [find interface/embedded_flashpro5.cfg] +source [find target/microchip_riscv.cfg] + +# Board specific initialization +proc do_board_reset_init {} { + # doesn't appear to be called +} diff --git a/tcl/interface/embedded_flashpro5.cfg b/tcl/interface/embedded_flashpro5.cfg new file mode 100644 index 0000000000..99b2cb9772 --- /dev/null +++ b/tcl/interface/embedded_flashpro5.cfg @@ -0,0 +1,38 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + +# +# Embedded FlashPro5 +# + +adapter speed 6000 + +adapter driver ftdi + +ftdi vid_pid 0x1514 0x2008 + +# That FTDI has 4 channels (channel 0 and 1 are MPSSE-capable, 2 and 3 are bitbang +ftdi channel 0 + +# Initial Layout - data[0..15] direction[0..15] +ftdi layout_init 0x0018 0xfdfb +# Signal Data Direction Notes +# AD0 TCK 0 1 (out) Port A TCK +# AD1 TDI 0 1 (out) Port A TDI +# AD2 TDO 0 0 (in) PORT A TDO +# AD3 TMS 1 1 (out) Port A TMS +# AD4 GPIOL0 1 1 (out) Port A TRST +# AD5 GPIOL1 0 1 (out) (unused) +# AD6 GPIOL2 0 1 (out) (unused) +# AD7 GPIOL3 0 1 (out) (unused) + +# BD0 TCK 0 1 (out) FTDI_UART_B_TXD +# BD1 TDI 0 0 (in) FTDI_UART_B_RXD +# BD2 TDO 0 1 (out) (unused) +# BD3 TMS 0 1 (out) (unused) +# BD4 GPIOL0 0 1 (out) (unused) +# BD5 GPIOL1 0 1 (out) (unused) +# BD6 GPIOL2 0 1 (out) (unused) +# BD7 GPIOL2 0 1 (out) (unused) + +# Signals definition +ftdi layout_signal nTRST -data 0x0010 -oe 0x0010 --