ip04.c 790 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * U-boot - main board file
  3. *
  4. * Copyright (c) 2007 David Rowe,
  5. * (c) 2006 Ivan Danov
  6. *
  7. * (C) Copyright 2000-2004
  8. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  9. *
  10. * Licensed under the GPL-2 or later.
  11. */
  12. #include <common.h>
  13. #include <net.h>
  14. #include <netdev.h>
  15. #include <asm/net.h>
  16. int checkboard(void)
  17. {
  18. printf("Board: IP04 IP-PBX\n");
  19. printf(" http://www.rowetel.com/ucasterisk/ip04.html\n");
  20. return 0;
  21. }
  22. #ifdef CONFIG_DRIVER_DM9000
  23. int board_eth_init(bd_t *bis)
  24. {
  25. return dm9000_initialize(bis);
  26. }
  27. int misc_init_r(void)
  28. {
  29. uchar enetaddr[6];
  30. if (!eth_getenv_enetaddr("ethaddr", enetaddr)) {
  31. puts("Warning: Generating 'random' MAC address\n");
  32. bfin_gen_rand_mac(enetaddr);
  33. eth_setenv_enetaddr("ethaddr", enetaddr);
  34. }
  35. return 0;
  36. }
  37. #endif