blob: ae526334267bdaff8b3b97413640ca31dee70944 [file] [log] [blame]
Brent Kandetzki3f1a5c12010-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 Kandetzki3f1a5c12010-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");
Masahiro Yamadac42f56d2014-04-18 19:09:49 +090035 eth_random_addr(enetaddr);
Brent Kandetzki3f1a5c12010-03-24 17:41:33 -040036 eth_setenv_enetaddr("ethaddr", enetaddr);
37 }
38
39 return 0;
40}
41#endif