blob: d20500f4df53aed084f47b7a539e22a90d18669f [file] [log] [blame]
Brent Kandetzki0ae93ab2010-03-24 17:41:33 -04001/*
2 * U-boot - main board file
3 *
4 * Copyright (c) 2007 David Rowe,
5 * (c) 2006 Ivan Danov
6 *
7 * (C) Copyright 2000-2004
8 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
9 *
10 * Licensed under the GPL-2 or later.
11 */
12
13#include <common.h>
14#include <net.h>
15#include <netdev.h>
Brent Kandetzki0ae93ab2010-03-24 17:41:33 -040016
17int checkboard(void)
18{
19 printf("Board: IP04 IP-PBX\n");
20 printf(" http://www.rowetel.com/ucasterisk/ip04.html\n");
21 return 0;
22}
23
24#ifdef CONFIG_DRIVER_DM9000
25int board_eth_init(bd_t *bis)
26{
27 return dm9000_initialize(bis);
28}
29
30int misc_init_r(void)
31{
32 uchar enetaddr[6];
33 if (!eth_getenv_enetaddr("ethaddr", enetaddr)) {
34 puts("Warning: Generating 'random' MAC address\n");
Joe Hershberger8ecdbed2015-04-08 01:41:04 -050035 net_random_ethaddr(enetaddr);
Brent Kandetzki0ae93ab2010-03-24 17:41:33 -040036 eth_setenv_enetaddr("ethaddr", enetaddr);
37 }
38
39 return 0;
40}
41#endif