sitlinv_stlv7325: allow dynamic Ethernet IP
Currently the sitlinv_stlv7325 target script parses the option that selects dynamic Ethernet IP; however it's not really passed to LiteETH. Really pass this option and add an assert that does not allow dynamic Etherbone IP like other boards. Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
This commit is contained in:
parent
4ba5793822
commit
27c3afb8fb
|
@ -97,7 +97,7 @@ class BaseSoC(SoCCore):
|
|||
pads = self.platform.request("eth", 0),
|
||||
clk_freq = self.clk_freq)
|
||||
if with_ethernet:
|
||||
self.add_ethernet(phy=self.ethphy)
|
||||
self.add_ethernet(phy=self.ethphy, dynamic_ip=eth_dynamic_ip)
|
||||
if with_etherbone:
|
||||
self.add_etherbone(phy=self.ethphy)
|
||||
|
||||
|
@ -159,6 +159,8 @@ def main():
|
|||
sdopts.add_argument("--with-sdcard", action="store_true", help="Enable SDCard support.")
|
||||
args = parser.parse_args()
|
||||
|
||||
assert not (args.with_etherbone and args.eth_dynamic_ip)
|
||||
|
||||
soc = BaseSoC(
|
||||
sys_clk_freq = args.sys_clk_freq,
|
||||
with_ethernet = args.with_ethernet,
|
||||
|
|
Loading…
Reference in New Issue