README.fsl-ddr 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. Table of interleaving modes supported in cpu/8xxx/ddr/
  2. ======================================================
  3. +-------------+---------------------------------------------------------+
  4. | | Rank Interleaving |
  5. | +--------+-----------+-----------+------------+-----------+
  6. |Memory | | | | 2x2 | 4x1 |
  7. |Controller | None | 2x1 lower | 2x1 upper | {CS0+CS1}, | {CS0+CS1+ |
  8. |Interleaving | | {CS0+CS1} | {CS2+CS3} | {CS2+CS3} | CS2+CS3} |
  9. +-------------+--------+-----------+-----------+------------+-----------+
  10. |None | Yes | Yes | Yes | Yes | Yes |
  11. +-------------+--------+-----------+-----------+------------+-----------+
  12. |Cacheline | Yes | Yes | No | No, Only(*)| Yes |
  13. | |CS0 Only| | | {CS0+CS1} | |
  14. +-------------+--------+-----------+-----------+------------+-----------+
  15. |Page | Yes | Yes | No | No, Only(*)| Yes |
  16. | |CS0 Only| | | {CS0+CS1} | |
  17. +-------------+--------+-----------+-----------+------------+-----------+
  18. |Bank | Yes | Yes | No | No, Only(*)| Yes |
  19. | |CS0 Only| | | {CS0+CS1} | |
  20. +-------------+--------+-----------+-----------+------------+-----------+
  21. |Superbank | No | Yes | No | No, Only(*)| Yes |
  22. | | | | | {CS0+CS1} | |
  23. +-------------+--------+-----------+-----------+------------+-----------+
  24. (*) Although the hardware can be configured with memory controller
  25. interleaving using "2x2" rank interleaving, it only interleaves {CS0+CS1}
  26. from each controller. {CS2+CS3} on each controller are only rank
  27. interleaved on that controller.
  28. For memory controller interleaving, identical DIMMs are suggested. Software
  29. doesn't check the size or organization of interleaved DIMMs.
  30. The ways to configure the ddr interleaving mode
  31. ==============================================
  32. 1. In board header file(e.g.MPC8572DS.h), add default interleaving setting
  33. under "CONFIG_EXTRA_ENV_SETTINGS", like:
  34. #define CONFIG_EXTRA_ENV_SETTINGS \
  35. "hwconfig=fsl_ddr:ctlr_intlv=bank" \
  36. ......
  37. 2. Run u-boot "setenv" command to configure the memory interleaving mode.
  38. Either numerical or string value is accepted.
  39. # disable memory controller interleaving
  40. setenv hwconfig "fsl_ddr:ctlr_intlv=null"
  41. # cacheline interleaving
  42. setenv hwconfig "fsl_ddr:ctlr_intlv=cacheline"
  43. # page interleaving
  44. setenv hwconfig "fsl_ddr:ctlr_intlv=page"
  45. # bank interleaving
  46. setenv hwconfig "fsl_ddr:ctlr_intlv=bank"
  47. # superbank
  48. setenv hwconfig "fsl_ddr:ctlr_intlv=superbank"
  49. # disable bank (chip-select) interleaving
  50. setenv hwconfig "fsl_ddr:bank_intlv=null"
  51. # bank(chip-select) interleaving cs0+cs1
  52. setenv hwconfig "fsl_ddr:bank_intlv=cs0_cs1"
  53. # bank(chip-select) interleaving cs2+cs3
  54. setenv hwconfig "fsl_ddr:bank_intlv=cs2_cs3"
  55. # bank(chip-select) interleaving (cs0+cs1) and (cs2+cs3) (2x2)
  56. setenv hwconfig "fsl_ddr:bank_intlv=cs0_cs1_and_cs2_cs3"
  57. # bank(chip-select) interleaving (cs0+cs1+cs2+cs3) (4x1)
  58. setenv hwconfig "fsl_ddr:bank_intlv=cs0_cs1_cs2_cs3"
  59. Memory controller address hashing
  60. ==================================
  61. If the DDR controller supports address hashing, it can be enabled by hwconfig.
  62. Syntax is:
  63. hwconfig=fsl_ddr:addr_hash=true
  64. Memory testing options for mpc85xx
  65. ==================================
  66. 1. Memory test can be done once U-boot prompt comes up using mtest, or
  67. 2. Memory test can be done with Power-On-Self-Test function, activated at
  68. compile time.
  69. In order to enable the POST memory test, CONFIG_POST needs to be
  70. defined in board configuraiton header file. By default, POST memory test
  71. performs a fast test. A slow test can be enabled by changing the flag at
  72. compiling time. To test memory bigger than 2GB, 36BIT support is needed.
  73. Memory is tested within a 2GB window. TLBs are used to map the virtual 2GB
  74. window to physical address so that all physical memory can be tested.
  75. Combination of hwconfig
  76. =======================
  77. Hwconfig can be combined with multiple parameters, for example, on a supported
  78. platform
  79. hwconfig=fsl_ddr:addr_hash=true,ctlr_intlv=cacheline,bank_intlv=cs0_cs1_cs2_cs3