integration/soc/add_uart: add crossover+bridge support.
Useful to have both CPU UART and bridge debug capability.
This commit is contained in:
parent
88bd754dd6
commit
fb3b09db15
|
@ -1100,6 +1100,13 @@ class LiteXSoC(SoC):
|
||||||
tx_fifo_depth = fifo_depth,
|
tx_fifo_depth = fifo_depth,
|
||||||
rx_fifo_depth = fifo_depth)
|
rx_fifo_depth = fifo_depth)
|
||||||
|
|
||||||
|
# Crossover + Bridge
|
||||||
|
elif name in ["crossover+bridge"]:
|
||||||
|
self.add_uartbone(baudrate=baudrate)
|
||||||
|
self.submodules.uart = uart.UARTCrossover(
|
||||||
|
tx_fifo_depth = fifo_depth,
|
||||||
|
rx_fifo_depth = fifo_depth)
|
||||||
|
|
||||||
# Model/Sim
|
# Model/Sim
|
||||||
elif name in ["model", "sim"]:
|
elif name in ["model", "sim"]:
|
||||||
self.submodules.uart_phy = uart.RS232PHYModel(self.platform.request("serial"))
|
self.submodules.uart_phy = uart.RS232PHYModel(self.platform.request("serial"))
|
||||||
|
|
Loading…
Reference in New Issue