|
@@ -11,7 +11,6 @@
|
|
#include <net.h>
|
|
#include <net.h>
|
|
#include <netdev.h>
|
|
#include <netdev.h>
|
|
#include <asm/blackfin.h>
|
|
#include <asm/blackfin.h>
|
|
-#include <asm/net.h>
|
|
|
|
#include <asm/mach-common/bits/otp.h>
|
|
#include <asm/mach-common/bits/otp.h>
|
|
#include "../cm-bf537e/gpio_cfi_flash.h"
|
|
#include "../cm-bf537e/gpio_cfi_flash.h"
|
|
|
|
|
|
@@ -46,7 +45,7 @@ static void board_init_enetaddr(uchar *mac_addr)
|
|
|
|
|
|
if (!valid_mac) {
|
|
if (!valid_mac) {
|
|
puts("Warning: Generating 'random' MAC address\n");
|
|
puts("Warning: Generating 'random' MAC address\n");
|
|
- bfin_gen_rand_mac(mac_addr);
|
|
|
|
|
|
+ eth_random_addr(mac_addr);
|
|
}
|
|
}
|
|
|
|
|
|
eth_setenv_enetaddr("ethaddr", mac_addr);
|
|
eth_setenv_enetaddr("ethaddr", mac_addr);
|