]> git.ipfire.org Git - people/ms/u-boot.git/blob - board/openrisc/openrisc-generic/openrisc-generic.c
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / board / openrisc / openrisc-generic / openrisc-generic.c
1 /*
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 *
7 * SPDX-License-Identifier: GPL-2.0+
8 */
9
10 #include <common.h>
11 #include <netdev.h>
12
13 int board_early_init_f(void)
14 {
15 return 0;
16 }
17
18 int checkboard(void)
19 {
20 printf("BOARD: %s\n", CONFIG_BOARD_NAME);
21 return 0;
22 }
23
24 phys_size_t initdram(int board_type)
25 {
26 return 0;
27 }
28
29 #ifdef CONFIG_CMD_NET
30 int 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