Daniel Hellstrom | 6940383 | 2008-03-26 23:34:47 +0100 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2008 |
| 3 | * Daniel Hellstrom, daniel@gaisler.com. |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU General Public License as |
| 7 | * published by the Free Software Foundation; either version 2 of |
| 8 | * the License, or (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program; if not, write to the Free Software |
| 17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 18 | * MA 02111-1307 USA |
| 19 | */ |
| 20 | |
| 21 | #include <common.h> |
Ben Warren | 7194ab8 | 2009-10-04 22:37:03 -0700 | [diff] [blame^] | 22 | #include <netdev.h> |
Daniel Hellstrom | 6940383 | 2008-03-26 23:34:47 +0100 | [diff] [blame] | 23 | #include <config.h> |
| 24 | #include <asm/leon.h> |
| 25 | |
Becky Bruce | 9973e3c | 2008-06-09 16:03:40 -0500 | [diff] [blame] | 26 | phys_size_t initdram(int board_type) |
Daniel Hellstrom | 6940383 | 2008-03-26 23:34:47 +0100 | [diff] [blame] | 27 | { |
| 28 | return 1; |
| 29 | } |
| 30 | |
| 31 | int checkboard(void) |
| 32 | { |
| 33 | puts("Board: EP2S60 GRLIB\n"); |
| 34 | return 0; |
| 35 | } |
| 36 | |
| 37 | int misc_init_r(void) |
| 38 | { |
| 39 | return 0; |
| 40 | } |
Ben Warren | 7194ab8 | 2009-10-04 22:37:03 -0700 | [diff] [blame^] | 41 | |
| 42 | #ifdef CONFIG_CMD_NET |
| 43 | int board_eth_init(bd_t *bis) |
| 44 | { |
| 45 | int rc = 0; |
| 46 | #ifdef CONFIG_SMC91111 |
| 47 | rc = smc91111_initialize(0, CONFIG_SMC91111_BASE); |
| 48 | #endif |
| 49 | return rc; |
| 50 | } |
| 51 | #endif |