]> git.ipfire.org Git - people/ms/u-boot.git/blob - board/ip04/ip04.c
d20500f4df53aed084f47b7a539e22a90d18669f
[people/ms/u-boot.git] / board / ip04 / ip04.c
1 /*
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>
16
17 int 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
25 int board_eth_init(bd_t *bis)
26 {
27 return dm9000_initialize(bis);
28 }
29
30 int misc_init_r(void)
31 {
32 uchar enetaddr[6];
33 if (!eth_getenv_enetaddr("ethaddr", enetaddr)) {
34 puts("Warning: Generating 'random' MAC address\n");
35 net_random_ethaddr(enetaddr);
36 eth_setenv_enetaddr("ethaddr", enetaddr);
37 }
38
39 return 0;
40 }
41 #endif