From e9d7013d707eacf7acaac640de3b3452e7653771 Mon Sep 17 00:00:00 2001 From: Icenowy Zheng Date: Sun, 13 Nov 2022 17:23:48 +0800 Subject: [PATCH] sitlinv_stlv7325: add jtagbone support Add necessary script snippets for enabling jtagbone in the command line. Signed-off-by: Icenowy Zheng --- litex_boards/targets/sitlinv_stlv7325.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/litex_boards/targets/sitlinv_stlv7325.py b/litex_boards/targets/sitlinv_stlv7325.py index 6ba84ad..83ff03b 100755 --- a/litex_boards/targets/sitlinv_stlv7325.py +++ b/litex_boards/targets/sitlinv_stlv7325.py @@ -69,6 +69,7 @@ class BaseSoC(SoCCore): with_led_chaser = True, with_pcie = False, with_sata = False, + with_jtagbone = True, **kwargs): platform = sitlinv_stlv7325.Platform() @@ -91,6 +92,10 @@ class BaseSoC(SoCCore): l2_cache_size = kwargs.get("l2_size", 8192), ) + # Jtagbone --------------------------------------------------------------------------------- + if with_jtagbone: + self.add_jtagbone() + # Ethernet / Etherbone --------------------------------------------------------------------- if with_ethernet or with_etherbone: self.ethphy = LiteEthPHY( @@ -170,6 +175,7 @@ def main(): parser.add_target_argument("--with-pcie", action="store_true", help="Enable PCIe support.") parser.add_target_argument("--driver", action="store_true", help="Generate PCIe driver.") parser.add_target_argument("--with-sata", action="store_true", help="Enable SATA support.") + parser.add_target_argument("--with-jtagbone", action="store_true", help="Enable Jtagbone support.") sdopts = parser.target_group.add_mutually_exclusive_group() sdopts.add_argument("--with-spi-sdcard", action="store_true", help="Enable SPI-mode SDCard support.") sdopts.add_argument("--with-sdcard", action="store_true", help="Enable SDCard support.") @@ -186,6 +192,7 @@ def main(): eth_dynamic_ip = args.eth_dynamic_ip, with_pcie = args.with_pcie, with_sata = args.with_sata, + with_jtagbone = args.with_jtagbone, **parser.soc_argdict ) if args.with_spi_sdcard: