sipeed_tang_nano_4k: connect Gowin EMCU UART
This commit is contained in:
parent
13c83ba532
commit
6274c4c425
|
@ -94,7 +94,9 @@ class BaseSoC(SoCCore):
|
||||||
from litespi.opcodes import SpiNorFlashOpCodes as Codes
|
from litespi.opcodes import SpiNorFlashOpCodes as Codes
|
||||||
self.add_spi_flash(mode="1x", module=W25Q32(Codes.READ_1_1_1), with_master=False)
|
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 --------------------------------------------------------------------
|
# Add ROM linker region --------------------------------------------------------------------
|
||||||
self.bus.add_region("rom", SoCRegion(
|
self.bus.add_region("rom", SoCRegion(
|
||||||
origin = self.mem_map["spiflash"] + 0,
|
origin = self.mem_map["spiflash"] + 0,
|
||||||
|
|
Loading…
Reference in New Issue