blob: 4f82600bbbab763d6697df1dbc0a24df80bddcfa [file] [log] [blame]
Stefan Kristianssonf179cc62011-11-26 19:04:55 +00001/*
2 * Based on nios2-generic.c:
3 * (C) Copyright 2005, Psyent Corporation <www.psyent.com>
4 * Scott McNutt <smcnutt@psyent.com>
5 * (C) Copyright 2010, Thomas Chou <thomas@wytron.com.tw>
6 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02007 * SPDX-License-Identifier: GPL-2.0+
Stefan Kristianssonf179cc62011-11-26 19:04:55 +00008 */
9
10#include <common.h>
11#include <netdev.h>
12
13int board_early_init_f(void)
14{
15 return 0;
16}
17
18int checkboard(void)
19{
20 printf("BOARD: %s\n", CONFIG_BOARD_NAME);
21 return 0;
22}
23
24phys_size_t initdram(int board_type)
25{
26 return 0;
27}
28
29#ifdef CONFIG_CMD_NET
30int board_eth_init(bd_t *bis)
31{
32 int rc = 0;
33
34#ifdef CONFIG_ETHOC
35 rc += ethoc_initialize(0, CONFIG_SYS_ETHOC_BASE);
36#endif
37 return rc;
38}
39#endif