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> |
| 16 | #include <asm/net.h> |
| 17 | |
| 18 | int checkboard(void) |
| 19 | { |
| 20 | printf("Board: IP04 IP-PBX\n"); |
| 21 | printf(" http://www.rowetel.com/ucasterisk/ip04.html\n"); |
| 22 | return 0; |
| 23 | } |
| 24 | |
| 25 | #ifdef CONFIG_DRIVER_DM9000 |
| 26 | int board_eth_init(bd_t *bis) |
| 27 | { |
| 28 | return dm9000_initialize(bis); |
| 29 | } |
| 30 | |
| 31 | int misc_init_r(void) |
| 32 | { |
| 33 | uchar enetaddr[6]; |
| 34 | if (!eth_getenv_enetaddr("ethaddr", enetaddr)) { |
| 35 | puts("Warning: Generating 'random' MAC address\n"); |
| 36 | bfin_gen_rand_mac(enetaddr); |
| 37 | eth_setenv_enetaddr("ethaddr", enetaddr); |
| 38 | } |
| 39 | |
| 40 | return 0; |
| 41 | } |
| 42 | #endif |