17 lines
554 B
Diff
17 lines
554 B
Diff
|
diff --git a/arch/arm/mach-rockchip/misc.c b/arch/arm/mach-rockchip/misc.c
|
||
|
index 6dbb9bde..89f3a918 100644
|
||
|
--- a/arch/arm/mach-rockchip/misc.c
|
||
|
+++ b/arch/arm/mach-rockchip/misc.c
|
||
|
@@ -50,6 +50,11 @@ int rockchip_setup_macaddr(void)
|
||
|
mac_addr[0] &= 0xfe; /* clear multicast bit */
|
||
|
mac_addr[0] |= 0x02; /* set local assignment bit (IEEE802) */
|
||
|
eth_env_set_enetaddr("ethaddr", mac_addr);
|
||
|
+
|
||
|
+ /* Make a valid MAC address for eth1 too */
|
||
|
+ mac_addr[5] += 0x20;
|
||
|
+ mac_addr[5] &= 0xff;
|
||
|
+ eth_env_set_enetaddr("eth1addr", mac_addr);
|
||
|
#endif
|
||
|
return 0;
|
||
|
}
|