mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
dm: eth: Add support for aliases
Allow network devices to be referred to as "eth0" instead of "eth@12345678" when specified in ethact. Add tests to verify this behavior. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Simon Glass
parent
bfacad7da1
commit
e58780dcb7
@@ -18,6 +18,8 @@
|
||||
testfdt3 = "/b-test";
|
||||
testfdt5 = "/some-bus/c-test@5";
|
||||
testfdt8 = "/a-test";
|
||||
eth0 = "/eth@10002000";
|
||||
eth5 = ð_5;
|
||||
};
|
||||
|
||||
uart0: serial {
|
||||
@@ -172,7 +174,7 @@
|
||||
fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x00>;
|
||||
};
|
||||
|
||||
eth@10003000 {
|
||||
eth_5: eth@10003000 {
|
||||
compatible = "sandbox,eth";
|
||||
reg = <0x10003000 0x1000>;
|
||||
fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x11>;
|
||||
|
||||
Reference in New Issue
Block a user