aboutsummaryrefslogtreecommitdiff
path: root/arch/sandbox
diff options
context:
space:
mode:
authorSean Anderson <sean.anderson@seco.com>2022-05-05 13:11:35 -0400
committerTom Rini <trini@konsulko.com>2022-06-08 13:59:52 -0400
commite844e5d9080604f1dab04f8f285c41335b6373bd (patch)
treedd4f41085855bba0e013a897b569f61b79255698 /arch/sandbox
parent29186884f82111360e44c16e791c5077ad733761 (diff)
downloadu-boot-e844e5d9080604f1dab04f8f285c41335b6373bd.zip
u-boot-e844e5d9080604f1dab04f8f285c41335b6373bd.tar.gz
u-boot-e844e5d9080604f1dab04f8f285c41335b6373bd.tar.bz2
sandbox: Move some mac addresses to device tree
This prevents some conflicts when running sandbox with -D, since the "rom" mac address will be random and won't match the environment. We still need to keep addresses for eth1 and eth6 in the environment, because dm_test_eth_rotate expects to be able to disable them by removing their envaddr variables. This can likely be fixed in a future series by adding a function to cause sandbox eth_opts callback for a particular mac to fail immediately. Signed-off-by: Sean Anderson <sean.anderson@seco.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox')
-rw-r--r--arch/sandbox/dts/test.dts4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts
index cf1abac..13515dd 100644
--- a/arch/sandbox/dts/test.dts
+++ b/arch/sandbox/dts/test.dts
@@ -532,11 +532,13 @@
eth_5: eth@10003000 {
compatible = "sandbox,eth";
reg = <0x10003000 0x1000>;
+ mac-address = [ 02 00 11 22 33 46 ];
};
eth_3: sbe5 {
compatible = "sandbox,eth";
reg = <0x10005000 0x1000>;
+ mac-address = [ 02 00 11 22 33 45 ];
};
eth@10004000 {
@@ -547,6 +549,7 @@
phy_eth0: phy-test-eth {
compatible = "sandbox,eth";
reg = <0x10007000 0x1000>;
+ mac-address = [ 02 00 11 22 33 49 ];
phy-handle = <&ethphy1>;
phy-mode = "2500base-x";
};
@@ -554,6 +557,7 @@
dsa_eth0: dsa-test-eth {
compatible = "sandbox,eth";
reg = <0x10006000 0x1000>;
+ mac-address = [ 02 00 11 22 33 48 ];
};
dsa-test {