kc705_drtio_master: pretend drtio is rtio

This commit is contained in:
Sebastien Bourdeauducq 2016-11-05 23:48:29 +08:00
parent de065b7578
commit 47b9868c68

View File

@ -16,7 +16,7 @@ from artiq import __version__ as artiq_version
class Master(MiniSoC, AMPSoC): class Master(MiniSoC, AMPSoC):
mem_map = { mem_map = {
"timer_kernel": 0x10000000, # (shadow @0x90000000) "timer_kernel": 0x10000000, # (shadow @0x90000000)
"kdrtio": 0x20000000, # (shadow @0xa0000000) "rtio": 0x20000000, # (shadow @0xa0000000)
"mailbox": 0x70000000 # (shadow @0xf0000000) "mailbox": 0x70000000 # (shadow @0xf0000000)
} }
mem_map.update(MiniSoC.mem_map) mem_map.update(MiniSoC.mem_map)
@ -41,7 +41,7 @@ class Master(MiniSoC, AMPSoC):
sys_clk_freq=self.clk_freq, sys_clk_freq=self.clk_freq,
clock_div2=True) clock_div2=True)
self.submodules.drtio = DRTIOMaster(self.transceiver) self.submodules.drtio = DRTIOMaster(self.transceiver)
self.register_kernel_cpu_csrdevice("kdrtio", self.drtio.get_kernel_csrs()) self.register_kernel_cpu_csrdevice("rtio", self.drtio.get_kernel_csrs())
self.csr_devices.append("drtio") self.csr_devices.append("drtio")