cm-bf548.c 876 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * U-Boot - main board file
  3. *
  4. * Copyright (c) 2005-2008 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 <netdev.h>
  12. #include <asm/blackfin.h>
  13. #include <asm/portmux.h>
  14. DECLARE_GLOBAL_DATA_PTR;
  15. int checkboard(void)
  16. {
  17. printf("Board: Bluetechnix CM-BF548 board\n");
  18. printf(" Support: http://www.bluetechnix.at/\n");
  19. return 0;
  20. }
  21. int board_early_init_f(void)
  22. {
  23. /* Set async addr lines as peripheral */
  24. const unsigned short pins[] = {
  25. P_A4, P_A5, P_A6, P_A7, P_A8, P_A9, P_A10, P_A11, P_A12,
  26. P_A13, P_A14, P_A15, P_A16, P_A17, P_A18, P_A19, P_A20,
  27. P_A21, P_A22, P_A23, P_A24, 0
  28. };
  29. return peripheral_request_list(pins, "async");
  30. }
  31. int board_eth_init(bd_t *bis)
  32. {
  33. int rc = 0;
  34. #ifdef CONFIG_SMC911X
  35. rc = smc911x_initialize(0, CONFIG_SMC911X_BASE);
  36. #endif
  37. return rc;
  38. }