openrisc-generic.c 617 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. #include <common.h>
  10. #include <netdev.h>
  11. int board_early_init_f(void)
  12. {
  13. return 0;
  14. }
  15. int checkboard(void)
  16. {
  17. printf("BOARD: %s\n", CONFIG_BOARD_NAME);
  18. return 0;
  19. }
  20. phys_size_t initdram(int board_type)
  21. {
  22. return 0;
  23. }
  24. #ifdef CONFIG_CMD_NET
  25. int board_eth_init(bd_t *bis)
  26. {
  27. int rc = 0;
  28. #ifdef CONFIG_ETHOC
  29. rc += ethoc_initialize(0, CONFIG_SYS_ETHOC_BASE);
  30. #endif
  31. return rc;
  32. }
  33. #endif