targets: Replace JTAG Atlantic (Deprecated) with JTAG-UART.

This commit is contained in:
Florent Kermarrec 2022-02-01 11:30:26 +01:00
parent 4281beac18
commit 4d45611935
2 changed files with 7 additions and 5 deletions

View File

@ -6,6 +6,10 @@
# Copyright (c) 2019 msloniewski <marcin.sloniewski@gmail.com>
# SPDX-License-Identifier: BSD-2-Clause
# Build/Use:
# ./terasic_deca.py --uart-name jtag_uart --build --load
# litex_term --jtag-config ../prog/openocd_max10_blaster2.cfg jtag
import os
import argparse
@ -65,7 +69,7 @@ class BaseSoC(SoCCore):
if with_jtagbone:
kwargs["uart_name"] = "crossover"
else:
kwargs["uart_name"] = "jtag_atlantic"
kwargs["uart_name"] = "jtag_uart"
if with_uartbone:
kwargs["uart_name"] = "crossover"

View File

@ -69,11 +69,9 @@ class BaseSoC(SoCCore):
with_led_chaser=True, with_video_terminal=False, **kwargs):
platform = terasic_sockit.Platform(revision)
# Defaults to UART over JTAG because serial is attached to the HPS and cannot be used.
if kwargs["uart_name"] == "serial":
kwargs["uart_name"] = "jtag_atlantic"
# SoCCore ----------------------------------------------------------------------------------
if kwargs.get("uart_name", "serial") == "serial":
kwargs["uart_name"] = "jtag_uart" # Defaults to JTAG-UART.
SoCCore.__init__(self, platform, sys_clk_freq,
ident = "LiteX SoC on the Terasic SoCKit",
**kwargs)