integration/soc: add ethphy CSR in target.
This commit is contained in:
parent
f27225c2de
commit
cb0371b330
|
@ -80,6 +80,7 @@ class BaseSoC(SoCSDRAM):
|
||||||
self.submodules.ethphy = LiteEthPHYRMII(
|
self.submodules.ethphy = LiteEthPHYRMII(
|
||||||
clock_pads = self.platform.request("eth_clocks"),
|
clock_pads = self.platform.request("eth_clocks"),
|
||||||
pads = self.platform.request("eth"))
|
pads = self.platform.request("eth"))
|
||||||
|
self.add_csr("ethphy")
|
||||||
self.add_ethernet(phy=self.ethphy)
|
self.add_ethernet(phy=self.ethphy)
|
||||||
|
|
||||||
def add_sdcard(self):
|
def add_sdcard(self):
|
||||||
|
|
|
@ -1014,8 +1014,6 @@ class LiteXSoC(SoC):
|
||||||
def add_ethernet(self, phy):
|
def add_ethernet(self, phy):
|
||||||
# Imports
|
# Imports
|
||||||
from liteeth.mac import LiteEthMAC
|
from liteeth.mac import LiteEthMAC
|
||||||
# PHY
|
|
||||||
self.add_csr("ethphy")
|
|
||||||
# MAC
|
# MAC
|
||||||
self.submodules.ethmac = LiteEthMAC(
|
self.submodules.ethmac = LiteEthMAC(
|
||||||
phy = phy,
|
phy = phy,
|
||||||
|
|
Loading…
Reference in New Issue