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> 22#include <netdev.h> 23#include <config.h> 24#include <asm/leon.h> 25 26phys_size_t initdram(int board_type) 27{ 28 return 1; 29} 30 31int checkboard(void) 32{ 33 puts("Board: GR-CPCI-AX2000\n"); 34 return 0; 35} 36 37int misc_init_r(void) 38{ 39 return 0; 40} 41 42#ifdef CONFIG_CMD_NET 43int 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 52