Brent Kandetzki | 3f1a5c1 | 2010-03-24 17:41:33 -0400 | [diff] [blame] | 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> |
Brent Kandetzki | 3f1a5c1 | 2010-03-24 17:41:33 -0400 | [diff] [blame] | 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"); |
Masahiro Yamada | c42f56d | 2014-04-18 19:09:49 +0900 | [diff] [blame] | 35 | eth_random_addr(enetaddr); |
Brent Kandetzki | 3f1a5c1 | 2010-03-24 17:41:33 -0400 | [diff] [blame] | 36 | eth_setenv_enetaddr("ethaddr", enetaddr); |
| 37 | } |
| 38 | |
| 39 | return 0; |
| 40 | } |
| 41 | #endif |