Skip to content

Commit be5e2f4

Browse files
committed
kasli: v2.1 support
1 parent 9e07cf5 commit be5e2f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

misoc/targets/kasli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ def __init__(self, sdram_controller_type="minicon", hw_rev=None, rtio_sys_merge=
416416
sdram_module.geom_settings, sdram_module.timing_settings)
417417
self.csr_devices.append("ddrphy")
418418

419-
if hw_rev == "v2.0":
419+
if hw_rev in ("v2.0", "v2.1"):
420420
self.submodules.virtual_leds = virtual_leds.VirtualLeds()
421421
self.csr_devices.append("virtual_leds")
422422

@@ -472,7 +472,7 @@ def __init__(self, *args, ethmac_nrxslots=2, ethmac_ntxslots=2, **kwargs):
472472
sfp_ctl.led.eq(~sfp_ctl.los & ~sfp_ctl.tx_fault & mod_present &
473473
self.ethphy.link_up),
474474
]
475-
if self.platform.hw_rev == "v2.0":
475+
if self.platform.hw_rev in ("v2.0", "v2.1"):
476476
self.comb += self.virtual_leds.get(0).eq(self.ethphy.link_up)
477477

478478
self.submodules.ethmac = LiteEthMAC(
@@ -497,7 +497,7 @@ def create_qpll(self):
497497
def soc_kasli_args(parser):
498498
soc_sdram_args(parser)
499499
parser.add_argument("--hw-rev", default=None,
500-
help="Kasli hardware revision: v1.0/v1.1/v2.0 "
500+
help="Kasli hardware revision: v1.0/v1.1/v2.0/v2.1 "
501501
"(default: variant-dependent)")
502502

503503

0 commit comments

Comments
 (0)