sipeed_tang_nano_4k: connect Gowin EMCU UART

This commit is contained in:
Ilia Sergachev 2021-12-09 00:12:31 +01:00
parent 13c83ba532
commit 6274c4c425
1 changed files with 3 additions and 1 deletions

View File

@ -94,7 +94,9 @@ class BaseSoC(SoCCore):
from litespi.opcodes import SpiNorFlashOpCodes as Codes
self.add_spi_flash(mode="1x", module=W25Q32(Codes.READ_1_1_1), with_master=False)
if self.cpu_type != 'gowin_emcu':
if self.cpu_type == 'gowin_emcu':
self.cpu.connect_uart(platform.request('serial'))
else:
# Add ROM linker region --------------------------------------------------------------------
self.bus.add_region("rom", SoCRegion(
origin = self.mem_map["spiflash"] + 0,