orangecrab: Avoid usb clock domain reset on usr_btn press or SoC reset.
Allows the USB-ACM link to stay up during reset.
This commit is contained in:
parent
06cb49af37
commit
1fb24d4c71
|
@ -60,12 +60,12 @@ class _CRG(Module):
|
|||
self.clock_domains.cd_usb_48 = ClockDomain()
|
||||
usb_pll = ECP5PLL()
|
||||
self.submodules += usb_pll
|
||||
self.comb += usb_pll.reset.eq(~por_done | ~rst_n | self.rst)
|
||||
self.comb += usb_pll.reset.eq(~por_done)
|
||||
usb_pll.register_clkin(clk48, 48e6)
|
||||
usb_pll.create_clkout(self.cd_usb_48, 48e6)
|
||||
usb_pll.create_clkout(self.cd_usb_12, 12e6)
|
||||
|
||||
# FPGA Reset (press usr_btn for 1 second to fallback to bootlooader)
|
||||
# FPGA Reset (press usr_btn for 1 second to fallback to bootloader)
|
||||
reset_timer = WaitTimer(sys_clk_freq)
|
||||
self.submodules += reset_timer
|
||||
self.comb += reset_timer.wait.eq(~rst_n)
|
||||
|
@ -130,12 +130,12 @@ class _CRGSDRAM(Module):
|
|||
self.clock_domains.cd_usb_48 = ClockDomain()
|
||||
usb_pll = ECP5PLL()
|
||||
self.submodules += usb_pll
|
||||
self.comb += usb_pll.reset.eq(~por_done | ~rst_n)
|
||||
self.comb += usb_pll.reset.eq(~por_done)
|
||||
usb_pll.register_clkin(clk48, 48e6)
|
||||
usb_pll.create_clkout(self.cd_usb_48, 48e6)
|
||||
usb_pll.create_clkout(self.cd_usb_12, 12e6)
|
||||
|
||||
# FPGA Reset (press usr_btn for 1 second to fallback to bootlooader)
|
||||
# FPGA Reset (press usr_btn for 1 second to fallback to bootloader)
|
||||
reset_timer = WaitTimer(sys_clk_freq)
|
||||
self.submodules += reset_timer
|
||||
self.comb += reset_timer.wait.eq(~rst_n)
|
||||
|
|
Loading…
Reference in New Issue