From 88f2625c3df25f2a3ce4730f1568b6c072b8f085 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 21 Apr 2022 12:29:54 +0200 Subject: [PATCH] targets: Fix typos. --- litex_boards/targets/digilent_arty.py | 2 +- litex_boards/targets/gsd_orangecrab.py | 4 ++-- litex_boards/targets/sipeed_tang_nano.py | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/litex_boards/targets/digilent_arty.py b/litex_boards/targets/digilent_arty.py index 45199c0f..5bb1cbac 100755 --- a/litex_boards/targets/digilent_arty.py +++ b/litex_boards/targets/digilent_arty.py @@ -74,7 +74,7 @@ class BaseSoC(SoCCore): platform = arty.Platform(variant=variant, toolchain=toolchain) # CRG -------------------------------------------------------------------------------------- - with_dram = (kwargs.get("integrated_main_ram_size", 0) != 0) + with_dram = (kwargs.get("integrated_main_ram_size", 0) == 0) self.submodules.crg = _CRG(platform, sys_clk_freq, with_dram) # SoCCore ---------------------------------------------------------------------------------- diff --git a/litex_boards/targets/gsd_orangecrab.py b/litex_boards/targets/gsd_orangecrab.py index a843b981..16caf0b6 100755 --- a/litex_boards/targets/gsd_orangecrab.py +++ b/litex_boards/targets/gsd_orangecrab.py @@ -149,12 +149,12 @@ class BaseSoC(SoCCore): platform = orangecrab.Platform(revision=revision, device=device ,toolchain=toolchain) # CRG -------------------------------------------------------------------------------------- - with_usb_pll = kwargs.get("uart_name", None) == "usb_acm" + with_usb_pll = kwargs.get("uart_name") in ["serial", "usb_acm"] crg_cls = _CRGSDRAM if kwargs.get("integrated_main_ram_size", 0) == 0 else _CRG self.submodules.crg = crg_cls(platform, sys_clk_freq, with_usb_pll) # SoCCore ---------------------------------------------------------------------------------- - if kwargs["uart_name"] in ["serial", "usb_acm"]: + if kwargs["uart_name"] in ["serial"]: kwargs["uart_name"] = "usb_acm" # Defaults to USB ACM through ValentyUSB. os.system("git clone https://github.com/litex-hub/valentyusb -b hw_cdc_eptri") diff --git a/litex_boards/targets/sipeed_tang_nano.py b/litex_boards/targets/sipeed_tang_nano.py index ea0e67b0..c0502580 100755 --- a/litex_boards/targets/sipeed_tang_nano.py +++ b/litex_boards/targets/sipeed_tang_nano.py @@ -68,6 +68,7 @@ class BaseSoC(SoCMini): self.submodules.crg = _CRG(platform, sys_clk_freq) # SoCMini ---------------------------------------------------------------------------------- + kwargs["uart_name"] = "crossover" SoCMini.__init__(self, platform, sys_clk_freq, ident="LiteX SoC on Tang Nano", **kwargs) # UARTBone ---------------------------------------------------------------------------------