]>
git.ipfire.org Git - people/ms/u-boot.git/blob - board/bf537-pnav/bf537-pnav.c
2 * U-boot - main board file
4 * Copyright (c) 2005-2009 Analog Devices Inc.
6 * Licensed under the GPL-2 or later.
14 #include <asm/blackfin.h>
16 DECLARE_GLOBAL_DATA_PTR
;
20 printf("Board: ADI BF537 PNAV board\n");
21 printf(" Support: http://blackfin.uclinux.org/\n");
25 #ifdef CONFIG_BFIN_MAC
26 static void board_init_enetaddr(uchar
*mac_addr
)
28 puts("Warning: Generating 'random' MAC address\n");
29 net_random_ethaddr(mac_addr
);
30 eth_setenv_enetaddr("ethaddr", mac_addr
);
33 int board_eth_init(bd_t
*bis
)
35 return bfin_EMAC_initialize(bis
);
41 #ifdef CONFIG_BFIN_MAC
43 if (!eth_getenv_enetaddr("ethaddr", enetaddr
))
44 board_init_enetaddr(enetaddr
);