mpc7448hpc2.c 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /*
  2. * (C) Copyright 2005 Freescale Semiconductor, Inc.
  3. *
  4. * Roy Zang <tie-fei.zang@freescale.com>
  5. *
  6. * See file CREDITS for list of people who contributed to this
  7. * project.
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License as
  11. * published by the Free Software Foundation; either version 2 of
  12. * the License, or (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  22. * MA 02111-1307 USA
  23. *
  24. * modifications for the Tsi108 Emul Board by avb@Tundra
  25. */
  26. /*
  27. * board support/init functions for the
  28. * Freescale MPC7448 HPC2 (High-Performance Computing 2 Platform).
  29. */
  30. #include <common.h>
  31. #include <74xx_7xx.h>
  32. #include <fdt_support.h>
  33. #undef DEBUG
  34. DECLARE_GLOBAL_DATA_PTR;
  35. extern void tsi108_init_f (void);
  36. int display_mem_map (void);
  37. void after_reloc (ulong dest_addr)
  38. {
  39. /*
  40. * Jump to the main U-Boot board init code
  41. */
  42. board_init_r ((gd_t *) gd, dest_addr);
  43. /* NOTREACHED */
  44. }
  45. /*
  46. * Check Board Identity:
  47. * report board type
  48. */
  49. int checkboard (void)
  50. {
  51. int l_type = 0;
  52. printf ("BOARD: %s\n", CFG_BOARD_NAME);
  53. return (l_type);
  54. }
  55. /*
  56. * Read Processor ID:
  57. *
  58. * report calling processor number
  59. */
  60. int read_pid (void)
  61. {
  62. return 0; /* we are on single CPU platform for a while */
  63. }
  64. long int dram_size (int board_type)
  65. {
  66. return 0x20000000; /* 256M bytes */
  67. }
  68. phys_size_t initdram (int board_type)
  69. {
  70. return dram_size (board_type);
  71. }
  72. #if defined(CONFIG_OF_BOARD_SETUP)
  73. void
  74. ft_board_setup(void *blob, bd_t *bd)
  75. {
  76. ft_cpu_setup(blob, bd);
  77. fdt_fixup_memory(blob, (u64)bd->bi_memstart, (u64)bd->bi_memsize);
  78. }
  79. #endif