ddr-setup.cfg 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. /*
  2. * Copyright (C) 2013 Boundary Devices
  3. *
  4. * See file CREDITS for list of people who contributed to this
  5. * project.
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation; either version 2 of
  10. * the License or (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not write to the Free Software
  19. * Foundation Inc. 51 Franklin Street Fifth Floor Boston,
  20. * MA 02110-1301 USA
  21. *
  22. * Device Configuration Data (DCD)
  23. *
  24. * Each entry must have the format:
  25. * Addr-type Address Value
  26. *
  27. * where:
  28. * Addr-type register length (1,2 or 4 bytes)
  29. * Address absolute address of the register
  30. * value value to be stored in the register
  31. */
  32. /*
  33. * DDR3 settings
  34. * MX6Q ddr is limited to 1066 Mhz currently 1056 MHz(528 MHz clock),
  35. * memory bus width: 64 bits x16/x32/x64
  36. * MX6DL ddr is limited to 800 MHz(400 MHz clock)
  37. * memory bus width: 64 bits x16/x32/x64
  38. * MX6SOLO ddr is limited to 800 MHz(400 MHz clock)
  39. * memory bus width: 32 bits x16/x32
  40. */
  41. DATA 4, MX6_IOM_DRAM_SDQS0, 0x00000030
  42. DATA 4, MX6_IOM_DRAM_SDQS1, 0x00000030
  43. DATA 4, MX6_IOM_DRAM_SDQS2, 0x00000030
  44. DATA 4, MX6_IOM_DRAM_SDQS3, 0x00000030
  45. DATA 4, MX6_IOM_DRAM_SDQS4, 0x00000030
  46. DATA 4, MX6_IOM_DRAM_SDQS5, 0x00000030
  47. DATA 4, MX6_IOM_DRAM_SDQS6, 0x00000030
  48. DATA 4, MX6_IOM_DRAM_SDQS7, 0x00000030
  49. DATA 4, MX6_IOM_GRP_B0DS, 0x00000030
  50. DATA 4, MX6_IOM_GRP_B1DS, 0x00000030
  51. DATA 4, MX6_IOM_GRP_B2DS, 0x00000030
  52. DATA 4, MX6_IOM_GRP_B3DS, 0x00000030
  53. DATA 4, MX6_IOM_GRP_B4DS, 0x00000030
  54. DATA 4, MX6_IOM_GRP_B5DS, 0x00000030
  55. DATA 4, MX6_IOM_GRP_B6DS, 0x00000030
  56. DATA 4, MX6_IOM_GRP_B7DS, 0x00000030
  57. DATA 4, MX6_IOM_GRP_ADDDS, 0x00000030
  58. /* 40 Ohm drive strength for cs0/1,sdba2,cke0/1,sdwe */
  59. DATA 4, MX6_IOM_GRP_CTLDS, 0x00000030
  60. DATA 4, MX6_IOM_DRAM_DQM0, 0x00020030
  61. DATA 4, MX6_IOM_DRAM_DQM1, 0x00020030
  62. DATA 4, MX6_IOM_DRAM_DQM2, 0x00020030
  63. DATA 4, MX6_IOM_DRAM_DQM3, 0x00020030
  64. DATA 4, MX6_IOM_DRAM_DQM4, 0x00020030
  65. DATA 4, MX6_IOM_DRAM_DQM5, 0x00020030
  66. DATA 4, MX6_IOM_DRAM_DQM6, 0x00020030
  67. DATA 4, MX6_IOM_DRAM_DQM7, 0x00020030
  68. DATA 4, MX6_IOM_DRAM_CAS, 0x00020030
  69. DATA 4, MX6_IOM_DRAM_RAS, 0x00020030
  70. DATA 4, MX6_IOM_DRAM_SDCLK_0, 0x00020030
  71. DATA 4, MX6_IOM_DRAM_SDCLK_1, 0x00020030
  72. DATA 4, MX6_IOM_DRAM_RESET, 0x00020030
  73. DATA 4, MX6_IOM_DRAM_SDCKE0, 0x00003000
  74. DATA 4, MX6_IOM_DRAM_SDCKE1, 0x00003000
  75. DATA 4, MX6_IOM_DRAM_SDODT0, 0x00003030
  76. DATA 4, MX6_IOM_DRAM_SDODT1, 0x00003030
  77. /* (differential input) */
  78. DATA 4, MX6_IOM_DDRMODE_CTL, 0x00020000
  79. /* (differential input) */
  80. DATA 4, MX6_IOM_GRP_DDRMODE, 0x00020000
  81. /* disable ddr pullups */
  82. DATA 4, MX6_IOM_GRP_DDRPKE, 0x00000000
  83. DATA 4, MX6_IOM_DRAM_SDBA2, 0x00000000
  84. /* 40 Ohm drive strength for cs0/1,sdba2,cke0/1,sdwe */
  85. DATA 4, MX6_IOM_GRP_DDR_TYPE, 0x000C0000
  86. /* Read data DQ Byte0-3 delay */
  87. DATA 4, MX6_MMDC_P0_MPRDDQBY0DL, 0x33333333
  88. DATA 4, MX6_MMDC_P0_MPRDDQBY1DL, 0x33333333
  89. DATA 4, MX6_MMDC_P0_MPRDDQBY2DL, 0x33333333
  90. DATA 4, MX6_MMDC_P0_MPRDDQBY3DL, 0x33333333
  91. DATA 4, MX6_MMDC_P1_MPRDDQBY0DL, 0x33333333
  92. DATA 4, MX6_MMDC_P1_MPRDDQBY1DL, 0x33333333
  93. DATA 4, MX6_MMDC_P1_MPRDDQBY2DL, 0x33333333
  94. DATA 4, MX6_MMDC_P1_MPRDDQBY3DL, 0x33333333
  95. /*
  96. * MDMISC mirroring interleaved (row/bank/col)
  97. */
  98. DATA 4, MX6_MMDC_P0_MDMISC, 0x00081740
  99. /*
  100. * MDSCR con_req
  101. */
  102. DATA 4, MX6_MMDC_P0_MDSCR, 0x00008000