blob: 89848cf041f4e43f4b8da87bc3da92bcdc2c7cf8 [file] [log] [blame]
Thomas Chou7ffbbf52010-04-21 08:40:59 +08001/*
2 * (C) Copyright 2005, Psyent Corporation <www.psyent.com>
3 * Scott McNutt <smcnutt@psyent.com>
4 * (C) Copyright 2010, Thomas Chou <thomas@wytron.com.tw>
5 *
6 * See file CREDITS for list of people who contributed to this
7 * project.
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of
12 * the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
22 * MA 02111-1307 USA
23 */
24
25#include <common.h>
26#include <netdev.h>
27
28void text_base_hook(void); /* nop hook for text_base.S */
29
30int board_early_init_f(void)
31{
32 text_base_hook();
33 return 0;
34}
35
36int checkboard(void)
37{
38 printf("BOARD : %s\n", CONFIG_BOARD_NAME);
39 return 0;
40}
41
42phys_size_t initdram(int board_type)
43{
44 return 0;
45}
46
47#ifdef CONFIG_CMD_NET
48int board_eth_init(bd_t *bis)
49{
50 int rc = 0;
51#ifdef CONFIG_SMC91111
52 rc += smc91111_initialize(0, CONFIG_SMC91111_BASE);
53#endif
54#ifdef CONFIG_DRIVER_DM9000
55 rc += dm9000_initialize(bis);
56#endif
57#ifdef CONFIG_ALTERA_TSE
58 rc += altera_tse_initialize(0,
59 CONFIG_SYS_ALTERA_TSE_MAC_BASE,
60 CONFIG_SYS_ALTERA_TSE_SGDMA_RX_BASE,
61 CONFIG_SYS_ALTERA_TSE_SGDMA_TX_BASE);
62#endif
63#ifdef CONFIG_ETHOC
64 rc += ethoc_initialize(0, CONFIG_SYS_ETHOC_BASE);
65#endif
66 return rc;
67}
68#endif