imximage.cfg 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. /*
  2. * Copyright (C) 2014 Freescale Semiconductor, Inc.
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #define __ASSEMBLY__
  7. #include <config.h>
  8. /* image version */
  9. IMAGE_VERSION 2
  10. /*
  11. * Boot Device : one of
  12. * spi/sd/nand/onenand, qspi/nor
  13. */
  14. BOOT_FROM sd
  15. /*
  16. * Device Configuration Data (DCD)
  17. *
  18. * Each entry must have the format:
  19. * Addr-type Address Value
  20. *
  21. * where:
  22. * Addr-type register length (1,2 or 4 bytes)
  23. * Address absolute address of the register
  24. * value value to be stored in the register
  25. */
  26. /* Enable all clocks */
  27. DATA 4 0x020c4068 0xffffffff
  28. DATA 4 0x020c406c 0xffffffff
  29. DATA 4 0x020c4070 0xffffffff
  30. DATA 4 0x020c4074 0xffffffff
  31. DATA 4 0x020c4078 0xffffffff
  32. DATA 4 0x020c407c 0xffffffff
  33. DATA 4 0x020c4080 0xffffffff
  34. DATA 4 0x020c4084 0xffffffff
  35. /* IOMUX - DDR IO Type */
  36. DATA 4 0x020e0618 0x000c0000
  37. DATA 4 0x020e05fc 0x00000000
  38. /* Clock */
  39. DATA 4 0x020e032c 0x00000030
  40. /* Address */
  41. DATA 4 0x020e0300 0x00000030
  42. DATA 4 0x020e02fc 0x00000030
  43. DATA 4 0x020e05f4 0x00000030
  44. /* Control */
  45. DATA 4 0x020e0340 0x00000030
  46. DATA 4 0x020e0320 0x00000000
  47. DATA 4 0x020e0310 0x00000030
  48. DATA 4 0x020e0314 0x00000030
  49. DATA 4 0x020e0614 0x00000030
  50. /* Data Strobe */
  51. DATA 4 0x020e05f8 0x00020000
  52. DATA 4 0x020e0330 0x00000030
  53. DATA 4 0x020e0334 0x00000030
  54. DATA 4 0x020e0338 0x00000030
  55. DATA 4 0x020e033c 0x00000030
  56. /* Data */
  57. DATA 4 0x020e0608 0x00020000
  58. DATA 4 0x020e060c 0x00000030
  59. DATA 4 0x020e0610 0x00000030
  60. DATA 4 0x020e061c 0x00000030
  61. DATA 4 0x020e0620 0x00000030
  62. DATA 4 0x020e02ec 0x00000030
  63. DATA 4 0x020e02f0 0x00000030
  64. DATA 4 0x020e02f4 0x00000030
  65. DATA 4 0x020e02f8 0x00000030
  66. /* Calibrations - ZQ */
  67. DATA 4 0x021b0800 0xa1390003
  68. /* Write leveling */
  69. DATA 4 0x021b080c 0x002C003D
  70. DATA 4 0x021b0810 0x00110046
  71. /* DQS Read Gate */
  72. DATA 4 0x021b083c 0x4160016C
  73. DATA 4 0x021b0840 0x013C016C
  74. /* Read/Write Delay */
  75. DATA 4 0x021b0848 0x46424446
  76. DATA 4 0x021b0850 0x3A3C3C3A
  77. DATA 4 0x021b08c0 0x2492244A
  78. /* read data bit delay */
  79. DATA 4 0x021b081c 0x33333333
  80. DATA 4 0x021b0820 0x33333333
  81. DATA 4 0x021b0824 0x33333333
  82. DATA 4 0x021b0828 0x33333333
  83. /* Complete calibration by forced measurement */
  84. DATA 4 0x021b08b8 0x00000800
  85. /* MMDC init - DDR3, 64-bit mode, only MMDC0 is initiated */
  86. DATA 4 0x021b0004 0x0002002d
  87. DATA 4 0x021b0008 0x00333030
  88. DATA 4 0x021b000c 0x676b52f3
  89. DATA 4 0x021b0010 0xb66d8b63
  90. DATA 4 0x021b0014 0x01ff00db
  91. DATA 4 0x021b0018 0x00011740
  92. DATA 4 0x021b001c 0x00008000
  93. DATA 4 0x021b002c 0x000026d2
  94. DATA 4 0x021b0030 0x006b1023
  95. DATA 4 0x021b0040 0x0000007f
  96. DATA 4 0x021b0000 0x85190000
  97. /* Initialize MT41K256M16HA-125 - MR2 */
  98. DATA 4 0x021b001c 0x04008032
  99. /* MR3 */
  100. DATA 4 0x021b001c 0x00008033
  101. /* MR1 */
  102. DATA 4 0x021b001c 0x00068031
  103. /* MR0 */
  104. DATA 4 0x021b001c 0x05208030
  105. /* DDR device ZQ calibration */
  106. DATA 4 0x021b001c 0x04008040
  107. /* Final DDR setup, before operation start */
  108. DATA 4 0x021b0020 0x00000800
  109. DATA 4 0x021b0818 0x00022227
  110. DATA 4 0x021b0004 0x0002556d
  111. DATA 4 0x021b0404 0x00011006
  112. DATA 4 0x021b001c 0x00000000