ml2.c 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 buf[64];
  29. int i;
  30. int l = getenv_f("serial#", buf, sizeof(buf));
  31. if (l < 0 || strncmp(buf, "ML2", 9)) {
  32. printf ("### No HW ID - assuming ML2");
  33. } else {
  34. for (i = 0; i < l; i++) {
  35. if (buf[i] == ' ')
  36. break;
  37. putc(buf[i]);
  38. }
  39. }
  40. putc ('\n');
  41. return (0);
  42. }
  43. phys_size_t initdram (int board_type)
  44. {
  45. return 32 * 1024 * 1024;
  46. }
  47. int testdram (void)
  48. {
  49. printf ("test: xxx MB - ok\n");
  50. return (0);
  51. }