soc/add_pcie: Automatically set Endpoint's endianness to PHY's endianness.
This commit is contained in:
parent
f93b6b9f27
commit
5e3e78f760
|
@ -1695,7 +1695,7 @@ class LiteXSoC(SoC):
|
||||||
|
|
||||||
# Endpoint.
|
# Endpoint.
|
||||||
self.check_if_exists(f"{name}_endpoint")
|
self.check_if_exists(f"{name}_endpoint")
|
||||||
endpoint = LitePCIeEndpoint(phy, max_pending_requests=max_pending_requests)
|
endpoint = LitePCIeEndpoint(phy, max_pending_requests=max_pending_requests, endianness=phy.endianness)
|
||||||
setattr(self.submodules, f"{name}_endpoint", endpoint)
|
setattr(self.submodules, f"{name}_endpoint", endpoint)
|
||||||
|
|
||||||
# MMAP.
|
# MMAP.
|
||||||
|
|
Loading…
Reference in New Issue