bootseq.txt 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. (cpu/mpc7xxx/start.S)
  2. start:
  3. b boot_cold
  4. start_warm:
  5. b boot_warm
  6. boot_cold:
  7. boot_warm:
  8. clear bats
  9. init l2 (if enabled)
  10. init altivec (if enabled)
  11. invalidate l2 (if enabled)
  12. setup bats (from defines in config_EVB)
  13. enable_addr_trans: (if MMU enabled)
  14. enable MSR_IR and MSR_DR
  15. jump to in_flash
  16. in_flash:
  17. enable l1 dcache
  18. gal_low_init: (board/evb64260/sdram_init.S)
  19. config SDRAM (CFG, TIMING, DECODE)
  20. init scratch regs (810 + 814)
  21. detect DIMM0 (bank 0 only)
  22. config SDRAM_PARA0 to 256/512Mbit
  23. bl sdram_op_mode
  24. detect bank0 width
  25. write scratch reg 810
  26. config SDRAM_PARA0 with results
  27. config SDRAM_PARA1 with results
  28. detect DIMM1 (bank 2 only)
  29. config SDRAM_PARA2 to 256/512Mbit
  30. detect bank2 width
  31. write scratch reg 814
  32. config SDRAM_PARA2 with results
  33. config SDRAM_PARA3 with results
  34. setup device bus timings/width
  35. setup boot device timings/width
  36. setup CPU_CONF (0x0)
  37. setup cpu master control register 0x160
  38. setup PCI0 TIMEOUT
  39. setup PCI1 TIMEOUT
  40. setup PCI0 BAR
  41. setup PCI1 BAR
  42. setup MPP control 0-3
  43. setup GPP level control
  44. setup Serial ports multiplex
  45. setup stack pointer (r1)
  46. setup GOT
  47. call cpu_init_f
  48. debug leds
  49. board_init_f: (common/board.c)
  50. board_early_init_f:
  51. remap gt regs?
  52. map PCI mem/io
  53. map device space
  54. clear out interupts
  55. init_timebase
  56. env_init
  57. serial_init
  58. console_init_f
  59. display_options
  60. initdram: (board/evb64260/evb64260.c)
  61. detect memory
  62. for each bank:
  63. dram_size()
  64. setup PCI slave memory mappings
  65. setup SCS
  66. setup monitor
  67. alloc board info struct
  68. init bd struct
  69. relocate_code: (cpu/mpc7xxx/start.S)
  70. copy,got,clearbss
  71. board_init_r(bd, dest_addr) (common/board.c)
  72. setup bd function pointers
  73. trap_init
  74. flash_init: (board/evb64260/flash.c)
  75. setup bd flash info
  76. cpu_init_r: (cpu/mpc7xxx/cpu_init.c)
  77. nothing
  78. mem_malloc_init
  79. malloc_bin_reloc
  80. spi_init (r or f)??? (CFG_ENV_IS_IN_EEPROM)
  81. env_relocated
  82. misc_init_r(bd): (board/evb64260/evb64260.c)
  83. mpsc_init2