xilinx_ppc405_generic.c 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * (C) Copyright 2008
  3. * Ricado Ribalda-Universidad Autonoma de Madrid-ricardo.ribalda@uam.es
  4. * This work has been supported by: QTechnology http://qtec.com/
  5. *
  6. * This program is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. #include <config.h>
  20. #include <common.h>
  21. #include <asm/processor.h>
  22. ulong __get_PCI_freq(void)
  23. {
  24. return 0;
  25. }
  26. ulong get_PCI_freq(void) __attribute__((weak, alias("__get_PCI_freq")));
  27. int __board_pre_init(void)
  28. {
  29. return 0;
  30. }
  31. int board_pre_init(void) __attribute__((weak, alias("__board_pre_init")));
  32. int __checkboard(void)
  33. {
  34. puts("Xilinx PPC405 Generic Board\n");
  35. return 0;
  36. }
  37. int checkboard(void) __attribute__((weak, alias("__checkboard")));
  38. phys_size_t __initdram(int board_type)
  39. {
  40. return get_ram_size(XPAR_DDR2_SDRAM_MEM_BASEADDR,
  41. CONFIG_SYS_SDRAM_SIZE_MB * 1024 * 1024);
  42. }
  43. phys_size_t initdram(int) __attribute__((weak, alias("__initdram")));
  44. void __get_sys_info(sys_info_t *sysInfo)
  45. {
  46. sysInfo->freqProcessor = XPAR_CORE_CLOCK_FREQ_HZ;
  47. sysInfo->freqPLB = XPAR_PLB_CLOCK_FREQ_HZ;
  48. sysInfo->freqPCI = 0;
  49. return;
  50. }
  51. void get_sys_info(sys_info_t *) __attribute__((weak, alias("__get_sys_info")));