tb0229.c 859 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Board initialize code for TANBAC Evaluation board TB0229.
  3. *
  4. * (C) Masami Komiya <mkomiya@sonare.it> 2004
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License as
  8. * published by the Free Software Foundation; either version 2, or (at
  9. * your option) any later version.
  10. */
  11. #include <common.h>
  12. #include <command.h>
  13. #include <asm/addrspace.h>
  14. #include <asm/inca-ip.h>
  15. #include <asm/io.h>
  16. #include <pci.h>
  17. #if defined(CONFIG_PCI)
  18. static struct pci_controller hose;
  19. void pci_init_board (void)
  20. {
  21. init_vr4131_pci(&hose);
  22. }
  23. #endif
  24. long int initdram(int board_type)
  25. {
  26. return get_ram_size (CFG_SDRAM_BASE, 0x8000000);
  27. }
  28. int checkboard (void)
  29. {
  30. printf("Board: TANBAC TB0229 ");
  31. printf("(CPU Speed %d MHz)\n", (int)CPU_CLOCK_RATE/1000000);
  32. set_io_port_base(0);
  33. return 0;
  34. }