cm-bf537e.c 814 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * U-Boot - main board file
  3. *
  4. * Copyright (c) 2005-2009 Analog Devices Inc.
  5. *
  6. * Licensed under the GPL-2 or later.
  7. */
  8. #include <common.h>
  9. #include <config.h>
  10. #include <command.h>
  11. #include <net.h>
  12. #include <netdev.h>
  13. #include <asm/blackfin.h>
  14. #include "gpio_cfi_flash.h"
  15. DECLARE_GLOBAL_DATA_PTR;
  16. int checkboard(void)
  17. {
  18. printf("Board: Bluetechnix CM-BF537E board\n");
  19. printf(" Support: http://www.bluetechnix.at/\n");
  20. return 0;
  21. }
  22. #ifndef CONFIG_BFIN_MAC
  23. # define bfin_EMAC_initialize(x) 1
  24. #endif
  25. #ifndef CONFIG_SMC911X
  26. # define smc911x_initialize(n, x) 1
  27. #endif
  28. int board_eth_init(bd_t *bis)
  29. {
  30. /* return ok if at least 1 eth device works */
  31. return bfin_EMAC_initialize(bis) &
  32. smc911x_initialize(0, CONFIG_SMC911X_BASE);
  33. }
  34. int misc_init_r(void)
  35. {
  36. gpio_cfi_flash_init();
  37. return 0;
  38. }