integration/soc: add_ethernet: honor self.map["ethmac"], if present
Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
This commit is contained in:
parent
846a2720b7
commit
a904034811
|
@ -1044,7 +1044,8 @@ class LiteXSoC(SoC):
|
||||||
dw = 32,
|
dw = 32,
|
||||||
interface = "wishbone",
|
interface = "wishbone",
|
||||||
endianness = self.cpu.endianness)
|
endianness = self.cpu.endianness)
|
||||||
ethmac_region = SoCRegion(size=0x2000, cached=False)
|
ethmac_region = SoCRegion(origin=self.mem_map.get("ethmac", None),
|
||||||
|
size=0x2000, cached=False)
|
||||||
self.bus.add_slave(name="ethmac", slave=self.ethmac.bus, region=ethmac_region)
|
self.bus.add_slave(name="ethmac", slave=self.ethmac.bus, region=ethmac_region)
|
||||||
self.add_csr("ethmac")
|
self.add_csr("ethmac")
|
||||||
self.add_interrupt("ethmac")
|
self.add_interrupt("ethmac")
|
||||||
|
|
Loading…
Reference in New Issue