Skip to content

Commit

Permalink
rewiring ulpi rst to LUNA seems to stabilize boot process
Browse files Browse the repository at this point in the history
  • Loading branch information
vk2seb committed Nov 26, 2023
1 parent c572dfc commit d2438de
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions usbrtl/eptri.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ def _connect_ulpi(self, ulpi_pads):
# Connect ULPI to platform
ulpi_data = TSTriple(8)
reset = Signal()
if hasattr(ulpi_pads, "rst"):
self.comb += ulpi_pads.rst.eq(~ResetSignal("usb"))

# TODO: this was previously hooked up to the PhyResetController
# but now connected to LUNA ulpi rst output, seems to be more stable?
self.comb += ulpi_pads.rst.eq(~reset)

self.specials += [
DDROutput(~reset, 0, ulpi_pads.clk, ClockSignal("usb")),
ulpi_data.get_tristate(ulpi_pads.data)
Expand Down

0 comments on commit d2438de

Please sign in to comment.