ml2.c 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. * ml2.c: U-Boot platform support for Xilinx ML2 board
  3. *
  4. * Copyright 2002 Mind NV
  5. *
  6. * http://www.mind.be/
  7. *
  8. * Author : Peter De Schrijver (p2@mind.be)
  9. *
  10. * Derived from : Other platform support files in this tree
  11. *
  12. * This software may be used and distributed according to the terms of
  13. * the GNU General Public License (GPL) version 2, incorporated herein by
  14. * reference. Drivers based on or derived from this code fall under the GPL
  15. * and must retain the authorship, copyright and this license notice. This
  16. * file is not a complete program and may only be used when the entire
  17. * program is licensed under the GPL.
  18. *
  19. */
  20. #include <common.h>
  21. #include <asm/processor.h>
  22. int board_early_init_f (void)
  23. {
  24. return 0;
  25. }
  26. int checkboard (void)
  27. {
  28. char *s = getenv ("serial#");
  29. char *e;
  30. if (!s || strncmp (s, "ML2", 9)) {
  31. printf ("### No HW ID - assuming ML2");
  32. } else {
  33. for (e = s; *e; ++e) {
  34. if (*e == ' ')
  35. break;
  36. }
  37. for (; s < e; ++s) {
  38. putc (*s);
  39. }
  40. }
  41. putc ('\n');
  42. return (0);
  43. }
  44. long int initdram (int board_type)
  45. {
  46. return 32 * 1024 * 1024;
  47. }
  48. int testdram (void)
  49. {
  50. printf ("test: xxx MB - ok\n");
  51. return (0);
  52. }