Skip to content

Commit 21880c7

Browse files
committed
soc_linux.py: Remove now unused 'configure_ethernet' function
1 parent 43abc55 commit 21880c7

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

soc_linux.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -55,22 +55,6 @@ def add_spi(self, data_width, clk_freq):
5555
def add_i2c(self):
5656
self.i2c0 = I2CMaster(self.platform.request("i2c", 0))
5757

58-
# Ethernet configuration -------------------------------------------------------------------
59-
60-
def configure_ethernet(self, remote_ip):
61-
remote_ip = remote_ip.split(".")
62-
try: # FIXME: Improve.
63-
self.constants.pop("REMOTEIP1")
64-
self.constants.pop("REMOTEIP2")
65-
self.constants.pop("REMOTEIP3")
66-
self.constants.pop("REMOTEIP4")
67-
except:
68-
pass
69-
self.add_constant("REMOTEIP1", int(remote_ip[0]))
70-
self.add_constant("REMOTEIP2", int(remote_ip[1]))
71-
self.add_constant("REMOTEIP3", int(remote_ip[2]))
72-
self.add_constant("REMOTEIP4", int(remote_ip[3]))
73-
7458
# DTS generation ---------------------------------------------------------------------------
7559

7660
def generate_dts(self, board_name, rootfs="ram0"):

0 commit comments

Comments
 (0)