Commit 914f2bd1 authored by Sergei Ianovich's avatar Sergei Ianovich Committed by Marek Vasut

arm: pxa: init ethaddr for LP-8x4x using DT

When DT define aliases for etherner0 and ethernet1, U-Boot
automatically patched MAC addresses using ethaddr and eth1addr
environment variables respectively.

Custom initialization is no longer needed.
Signed-off-by: default avatarSergei Ianovich <>
CC: Marek Vasut <>
parent 7cd5441e
......@@ -121,25 +121,8 @@ int board_usb_cleanup(int index, enum usb_init_type init)
void lp8x4x_eth1_mac_init(void)
u8 eth1addr[8];
int i;
u8 reg;
eth_getenv_enetaddr_by_index("eth", 1, eth1addr);
if (!is_valid_ether_addr(eth1addr))
for (i = 0, reg = 0x10; i < 6; i++, reg++) {
writeb(reg, (u8 *)(DM9000_IO_2));
writeb(eth1addr[i], (u8 *)(DM9000_DATA_2));
int board_eth_init(bd_t *bis)
return dm9000_initialize(bis);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment