Stefan Kristiansson | 0e65f1a | 2011-11-26 19:04:55 +0000 | [diff] [blame] | 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 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 7 | * SPDX-License-Identifier: GPL-2.0+ |
Stefan Kristiansson | 0e65f1a | 2011-11-26 19:04:55 +0000 | [diff] [blame] | 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 |