Merge pull request #423 from gsomlo/gls-ethmac-fixes
integration/soc: add_ethernet: honor self.map["ethmac"], if present
This commit is contained in:
commit
4ccf62afc1
|
@ -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