mpc7448hpc2.c 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /*
  2. * (C) Copyright 2005 Freescale Semiconductor, Inc.
  3. *
  4. * Roy Zang <tie-fei.zang@freescale.com>
  5. *
  6. * SPDX-License-Identifier: GPL-2.0+
  7. *
  8. * modifications for the Tsi108 Emul Board by avb@Tundra
  9. */
  10. /*
  11. * board support/init functions for the
  12. * Freescale MPC7448 HPC2 (High-Performance Computing 2 Platform).
  13. */
  14. #include <common.h>
  15. #include <74xx_7xx.h>
  16. #include <fdt_support.h>
  17. #include <netdev.h>
  18. #undef DEBUG
  19. DECLARE_GLOBAL_DATA_PTR;
  20. extern void tsi108_init_f (void);
  21. int display_mem_map (void);
  22. void after_reloc (ulong dest_addr)
  23. {
  24. /*
  25. * Jump to the main U-Boot board init code
  26. */
  27. board_init_r ((gd_t *) gd, dest_addr);
  28. /* NOTREACHED */
  29. }
  30. /*
  31. * Check Board Identity:
  32. * report board type
  33. */
  34. int checkboard (void)
  35. {
  36. int l_type = 0;
  37. printf ("BOARD: %s\n", CONFIG_SYS_BOARD_NAME);
  38. return (l_type);
  39. }
  40. /*
  41. * Read Processor ID:
  42. *
  43. * report calling processor number
  44. */
  45. int read_pid (void)
  46. {
  47. return 0; /* we are on single CPU platform for a while */
  48. }
  49. long int dram_size (int board_type)
  50. {
  51. return 0x20000000; /* 256M bytes */
  52. }
  53. phys_size_t initdram (int board_type)
  54. {
  55. return dram_size (board_type);
  56. }
  57. #if defined(CONFIG_OF_BOARD_SETUP)
  58. int ft_board_setup(void *blob, bd_t *bd)
  59. {
  60. ft_cpu_setup(blob, bd);
  61. fdt_fixup_memory(blob, (u64)bd->bi_memstart, (u64)bd->bi_memsize);
  62. return 0;
  63. }
  64. #endif
  65. int board_eth_init(bd_t *bis)
  66. {
  67. int rc = 0;
  68. #if defined(CONFIG_TSI108_ETH)
  69. rc = tsi108_eth_initialize(bis);
  70. #endif
  71. return rc;
  72. }