socfpga_cyclone5.c 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*
  2. * Copyright (C) 2012 Altera Corporation <www.altera.com>
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #include <common.h>
  18. #include <asm/arch/reset_manager.h>
  19. #include <asm/io.h>
  20. #include <netdev.h>
  21. DECLARE_GLOBAL_DATA_PTR;
  22. /*
  23. * Print CPU information
  24. */
  25. int print_cpuinfo(void)
  26. {
  27. puts("CPU : Altera SOCFPGA Platform\n");
  28. return 0;
  29. }
  30. /*
  31. * Print Board information
  32. */
  33. int checkboard(void)
  34. {
  35. puts("BOARD : Altera SOCFPGA Cyclone5 Board\n");
  36. return 0;
  37. }
  38. /*
  39. * Initialization function which happen at early stage of c code
  40. */
  41. int board_early_init_f(void)
  42. {
  43. return 0;
  44. }
  45. /*
  46. * Miscellaneous platform dependent initialisations
  47. */
  48. int board_init(void)
  49. {
  50. icache_enable();
  51. return 0;
  52. }
  53. int misc_init_r(void)
  54. {
  55. return 0;
  56. }
  57. #if defined(CONFIG_SYS_CONSOLE_IS_IN_ENV) && defined(CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE)
  58. int overwrite_console(void)
  59. {
  60. return 0;
  61. }
  62. #endif
  63. /*
  64. * DesignWare Ethernet initialization
  65. */
  66. /* We know all the init functions have been run now */
  67. int board_eth_init(bd_t *bis)
  68. {
  69. return 0;
  70. }