targets/efinix_trion_t120_bga576_dev_kit.py: added argument to select between RMII PMOD (default) or onboard RGMII Phy
This commit is contained in:
parent
d85fe974a6
commit
738a5a8931
|
@ -53,7 +53,7 @@ class BaseSoC(SoCCore):
|
|||
with_ethernet = False,
|
||||
with_etherbone = False,
|
||||
eth_phy = 0,
|
||||
eth_rmii_pmod = True,
|
||||
eth_rgmii_phy = False,
|
||||
eth_ip = "192.168.1.50",
|
||||
remote_ip = None,
|
||||
with_led_chaser = True,
|
||||
|
@ -95,7 +95,7 @@ class BaseSoC(SoCCore):
|
|||
# Ethernet / Etherbone ---------------------------------------------------------------------
|
||||
if with_ethernet or with_etherbone:
|
||||
# Use board's Ethernet PHYs.
|
||||
if not eth_rmii_pmod:
|
||||
if eth_rgmii_phy:
|
||||
msg = "\n"
|
||||
msg += "rx_ctl/tx_ctl pads location aren't compatible with DDIO mode.\n"
|
||||
msg += "An hardware modification must be done:\n"
|
||||
|
@ -381,7 +381,8 @@ def main():
|
|||
ethopts.add_argument("--with-etherbone", action="store_true", help="Enable Etherbone support.")
|
||||
parser.add_target_argument("--eth-ip", default="192.168.1.50", help="Ethernet/Etherbone IP address.")
|
||||
parser.add_target_argument("--remote-ip", default="192.168.1.100", help="Remote IP address of TFTP server.")
|
||||
parser.add_target_argument("--eth-phy", default=0, type=int, help="Ethernet PHY: 0 (default) or 1.")
|
||||
parser.add_target_argument("--eth-rgmii-phy", action="store_true", help="Uses onboard RGMII Phy instead of RMII PMOD.")
|
||||
parser.add_target_argument("--eth-phy", default=0, type=int, help="Ethernet PHY: 0 (default) or 1. (Only available with --eth-rgmii-phy")
|
||||
args = parser.parse_args()
|
||||
|
||||
soc = BaseSoC(
|
||||
|
@ -392,6 +393,7 @@ def main():
|
|||
eth_ip = args.eth_ip,
|
||||
remote_ip = args.remote_ip,
|
||||
eth_phy = args.eth_phy,
|
||||
eth_rgmii_phy = args.eth_rgmii_phy,
|
||||
**parser.soc_argdict)
|
||||
builder = Builder(soc, **parser.builder_argdict)
|
||||
if args.build:
|
||||
|
|
Loading…
Reference in New Issue