From: Tobias Platen Date: Sat, 16 Apr 2022 07:44:03 +0000 (+0200) Subject: orangecrab: set clock frequency, remove ignored iostandard X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fe66e42c6ed1048cefb226d6cdf7179c2525c6ec;p=ls2.git orangecrab: set clock frequency, remove ignored iostandard --- diff --git a/src/ls2.py b/src/ls2.py index a959085..514b724 100644 --- a/src/ls2.py +++ b/src/ls2.py @@ -869,6 +869,8 @@ def build_platform(fpga, firmware): clk_freq = 50e6 if fpga == 'ulx3s': clk_freq = 40.0e6 + if fpga == 'orangecrab': + clk_freq = 50e6 # merge dram_clk_freq with clk_freq if the same if clk_freq == dram_clk_freq: @@ -885,8 +887,7 @@ def build_platform(fpga, firmware): if platform is not None: if fpga=="orangecrab": # assumes an FT232 USB-UART soldered onto these two pins. - orangecrab_uart = UARTResource(0, rx="N17", tx="M18", - attrs=Attrs(IOSTANDARD="LVCMOS33")) + orangecrab_uart = UARTResource(0, rx="N17", tx="M18") platform.add_resources([orangecrab_uart]) uart_pins = platform.request("uart", 0)