gr_ep2s60.c 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. #include <common.h>
  21. #include <netdev.h>
  22. #include <config.h>
  23. #include <asm/leon.h>
  24. phys_size_t initdram(int board_type)
  25. {
  26. return 1;
  27. }
  28. int checkboard(void)
  29. {
  30. puts("Board: EP2S60 GRLIB\n");
  31. return 0;
  32. }
  33. int misc_init_r(void)
  34. {
  35. return 0;
  36. }
  37. #ifdef CONFIG_CMD_NET
  38. int board_eth_init(bd_t *bis)
  39. {
  40. int rc = 0;
  41. #ifdef CONFIG_SMC91111
  42. rc = smc91111_initialize(0, CONFIG_SMC91111_BASE);
  43. #endif
  44. return rc;
  45. }
  46. #endif