From: Florent Kermarrec Date: Tue, 26 Dec 2017 17:11:47 +0000 (+0100) Subject: soc/integration/soc_core: add uart_name parameters (allow selecting uart without... X-Git-Tag: 24jan2021_ls180~1785 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e7015e41918d51fb7f104d2b6461c742accb9966;p=litex.git soc/integration/soc_core: add uart_name parameters (allow selecting uart without modifications in platform file) --- diff --git a/litex/soc/integration/soc_core.py b/litex/soc/integration/soc_core.py index dc2619b9..1b30c904 100644 --- a/litex/soc/integration/soc_core.py +++ b/litex/soc/integration/soc_core.py @@ -66,7 +66,7 @@ class SoCCore(Module): integrated_main_ram_size=0, integrated_main_ram_init=[], shadow_base=0x80000000, csr_data_width=8, csr_address_width=14, - with_uart=True, uart_baudrate=115200, uart_stub=False, + with_uart=True, uart_name="serial", uart_baudrate=115200, uart_stub=False, ident="", ident_version=False, reserve_nmi_interrupt=True, with_timer=True): @@ -140,7 +140,7 @@ class SoCCore(Module): if uart_stub: self.submodules.uart = uart.UARTStub() else: - self.submodules.uart_phy = uart.RS232PHY(platform.request("serial"), clk_freq, uart_baudrate) + self.submodules.uart_phy = uart.RS232PHY(platform.request(uart_name), clk_freq, uart_baudrate) self.submodules.uart = uart.UART(self.uart_phy) else: del self.soc_interrupt_map["uart"]