mw_debug: Add Lattice ECP5 support
authorMatt Johnston <matt@codeconstruct.com.au>
Fri, 4 Feb 2022 07:29:40 +0000 (15:29 +0800)
committerMatt Johnston <matt@codeconstruct.com.au>
Mon, 7 Feb 2022 05:37:51 +0000 (13:37 +0800)
commit9c64f8a98ba63a3ab249f272716ada201fd52aa6
tree6d8913d8f98d5265a28ed50727f04c1885c764ba
parent3775650df3a53264f37dcd14223248da7c9d9381
mw_debug: Add Lattice ECP5 support

"-b ecp5" will select ECP5 interface that talks to a JTAGG
primitive.

For example with a FT232H JTAG board:

./mw_debug  -t 'ft2232 vid=0x0403 pid=0x6014'  -s 30000000 -b ecp5 mr ff003888 6
Connected to libftdi driver.
Found device ID: 0x41113043
00000000ff0038886d6f636c65570a0a  ..Welcom
00000000ff00389063694d206f742065  e to Mic
00000000ff0038982120747461776f72  rowatt !
00000000ff0038a00000000000000a0a  ........
00000000ff0038a867697320636f5320   Soc sig
00000000ff0038b0203a65727574616e  nature:
Core: running
 NIA: c0000000000187f8
 MSR: 9000000000001033

Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
scripts/mw_debug/mw_debug.c