sitlinv_stlv7325: add jtagbone support
Add necessary script snippets for enabling jtagbone in the command line. Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
This commit is contained in:
parent
c2c59f5e8c
commit
e9d7013d70
|
@ -69,6 +69,7 @@ class BaseSoC(SoCCore):
|
||||||
with_led_chaser = True,
|
with_led_chaser = True,
|
||||||
with_pcie = False,
|
with_pcie = False,
|
||||||
with_sata = False,
|
with_sata = False,
|
||||||
|
with_jtagbone = True,
|
||||||
**kwargs):
|
**kwargs):
|
||||||
platform = sitlinv_stlv7325.Platform()
|
platform = sitlinv_stlv7325.Platform()
|
||||||
|
|
||||||
|
@ -91,6 +92,10 @@ class BaseSoC(SoCCore):
|
||||||
l2_cache_size = kwargs.get("l2_size", 8192),
|
l2_cache_size = kwargs.get("l2_size", 8192),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Jtagbone ---------------------------------------------------------------------------------
|
||||||
|
if with_jtagbone:
|
||||||
|
self.add_jtagbone()
|
||||||
|
|
||||||
# Ethernet / Etherbone ---------------------------------------------------------------------
|
# Ethernet / Etherbone ---------------------------------------------------------------------
|
||||||
if with_ethernet or with_etherbone:
|
if with_ethernet or with_etherbone:
|
||||||
self.ethphy = LiteEthPHY(
|
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("--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("--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-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 = 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-spi-sdcard", action="store_true", help="Enable SPI-mode SDCard support.")
|
||||||
sdopts.add_argument("--with-sdcard", action="store_true", help="Enable 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,
|
eth_dynamic_ip = args.eth_dynamic_ip,
|
||||||
with_pcie = args.with_pcie,
|
with_pcie = args.with_pcie,
|
||||||
with_sata = args.with_sata,
|
with_sata = args.with_sata,
|
||||||
|
with_jtagbone = args.with_jtagbone,
|
||||||
**parser.soc_argdict
|
**parser.soc_argdict
|
||||||
)
|
)
|
||||||
if args.with_spi_sdcard:
|
if args.with_spi_sdcard:
|
||||||
|
|
Loading…
Reference in New Issue