projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net: Remove all calls to net_random_ethaddr()
[oweals/u-boot.git]
/
board
/
bf537-minotaur
/
bf537-minotaur.c
diff --git
a/board/bf537-minotaur/bf537-minotaur.c
b/board/bf537-minotaur/bf537-minotaur.c
index 71b452a4f88825f625e4ba15796f910365da9c12..9312216dc74667eb890016c47ebe2e60b7371a49 100644
(file)
--- a/
board/bf537-minotaur/bf537-minotaur.c
+++ b/
board/bf537-minotaur/bf537-minotaur.c
@@
-12,7
+12,6
@@
#include <netdev.h>
#include <net.h>
#include <asm/blackfin.h>
#include <netdev.h>
#include <net.h>
#include <asm/blackfin.h>
-#include <asm/net.h>
DECLARE_GLOBAL_DATA_PTR;
DECLARE_GLOBAL_DATA_PTR;
@@
-23,34
+22,9
@@
int checkboard(void)
return 0;
}
return 0;
}
-phys_size_t initdram(int board_type)
-{
- gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
- gd->bd->bi_memsize = CONFIG_SYS_MAX_RAM_SIZE;
- return gd->bd->bi_memsize;
-}
-
#ifdef CONFIG_BFIN_MAC
#ifdef CONFIG_BFIN_MAC
-static void board_init_enetaddr(uchar *mac_addr)
-{
- puts("Warning: Generating 'random' MAC address\n");
- bfin_gen_rand_mac(mac_addr);
- eth_setenv_enetaddr("ethaddr", mac_addr);
-}
-
int board_eth_init(bd_t *bis)
{
return bfin_EMAC_initialize(bis);
}
#endif
int board_eth_init(bd_t *bis)
{
return bfin_EMAC_initialize(bis);
}
#endif
-
-int misc_init_r(void)
-{
-#ifdef CONFIG_BFIN_MAC
- uchar enetaddr[6];
- if (!eth_getenv_enetaddr("ethaddr", enetaddr))
- board_init_enetaddr(enetaddr);
-#endif
-
- return 0;
-}