Skip to content

Commit

Permalink
targets: rename usb_cdc to usb_acm.
Browse files Browse the repository at this point in the history
As discussed recently on Discord.
  • Loading branch information
enjoy-digital committed Apr 30, 2020
1 parent 2213d73 commit 78b5727
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions litex_boards/targets/colorlight_5a_75b.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# - Place a 15K resistor between J4 pin 3 and J4 pin 4.
# - Place a 1.5K resistor between J4 pin 1 and J4 pin 3.
# - Connect USB DP (Green) to J4 pin 3, USB DN (White) to J4 pin 2.
# ./colorlight_5a_75b.py --revision=7.0 --uart-name=usb_cdcc
# ./colorlight_5a_75b.py --revision=7.0 --uart-name=usb_acm
# ./colorlight_5a_75b.py --load
# You should see the LiteX BIOS and be able to interact with it.
#
Expand Down Expand Up @@ -102,7 +102,7 @@ def __init__(self, revision, with_ethernet=False, with_etherbone=False, sys_clk_

# CRG --------------------------------------------------------------------------------------
with_rst = kwargs["uart_name"] not in ["serial", "bridge"] # serial_rx shared with user_btn_n.
with_usb_pll = kwargs.get("uart_name", None) == "usb_cdc"
with_usb_pll = kwargs.get("uart_name", None) == "usb_acm"
self.submodules.crg = _CRG(platform, sys_clk_freq, with_usb_pll=with_usb_pll,with_rst=with_rst)

# SDR SDRAM --------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion litex_boards/targets/orangecrab.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def __init__(self, sys_clk_freq=int(48e6), toolchain="trellis", **kwargs):
SoCCore.__init__(self, platform, clk_freq=sys_clk_freq, **kwargs)

# CRG --------------------------------------------------------------------------------------
with_usb_pll = kwargs.get("uart_name", None) == "usb_cdc"
with_usb_pll = kwargs.get("uart_name", None) == "usb_acm"
self.submodules.crg = _CRG(platform, sys_clk_freq, with_usb_pll)

# DDR3 SDRAM -------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion litex_boards/targets/ulx3s.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __init__(self, device="LFE5U-45F", toolchain="trellis",
SoCCore.__init__(self, platform, clk_freq=sys_clk_freq, **kwargs)

# CRG --------------------------------------------------------------------------------------
with_usb_pll = kwargs.get("uart_name", None) == "usb_cdc"
with_usb_pll = kwargs.get("uart_name", None) == "usb_acm"
self.submodules.crg = _CRG(platform, sys_clk_freq, with_usb_pll)

# SDR SDRAM --------------------------------------------------------------------------------
Expand Down

0 comments on commit 78b5727

Please sign in to comment.