imximage.cfg 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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 0x00000020
  42. DATA 4 0x020e02fc 0x00000020
  43. DATA 4 0x020e05f4 0x00000020
  44. /* Control */
  45. DATA 4 0x020e0340 0x00000020
  46. DATA 4 0x020e0320 0x00000000
  47. DATA 4 0x020e0310 0x00000020
  48. DATA 4 0x020e0314 0x00000020
  49. DATA 4 0x020e0614 0x00000020
  50. /* Data Strobe */
  51. DATA 4 0x020e05f8 0x00020000
  52. DATA 4 0x020e0330 0x00000028
  53. DATA 4 0x020e0334 0x00000028
  54. DATA 4 0x020e0338 0x00000028
  55. DATA 4 0x020e033c 0x00000028
  56. /* Data */
  57. DATA 4 0x020e0608 0x00020000
  58. DATA 4 0x020e060c 0x00000028
  59. DATA 4 0x020e0610 0x00000028
  60. DATA 4 0x020e061c 0x00000028
  61. DATA 4 0x020e0620 0x00000028
  62. DATA 4 0x020e02ec 0x00000028
  63. DATA 4 0x020e02f0 0x00000028
  64. DATA 4 0x020e02f4 0x00000028
  65. DATA 4 0x020e02f8 0x00000028
  66. /* Calibrations - ZQ */
  67. DATA 4 0x021b0800 0xa1390003
  68. /* Write leveling */
  69. DATA 4 0x021b080c 0x00290025
  70. DATA 4 0x021b0810 0x00220022
  71. /* DQS Read Gate */
  72. DATA 4 0x021b083c 0x41480144
  73. DATA 4 0x021b0840 0x01340130
  74. /* Read/Write Delay */
  75. DATA 4 0x021b0848 0x3C3E4244
  76. DATA 4 0x021b0850 0x34363638
  77. /* Read data bit delay */
  78. DATA 4 0x021b081c 0x33333333
  79. DATA 4 0x021b0820 0x33333333
  80. DATA 4 0x021b0824 0x33333333
  81. DATA 4 0x021b0828 0x33333333
  82. /* Complete calibration by forced measurement */
  83. DATA 4 0x021b08b8 0x00000800
  84. /* MMDC init - DDR3, 64-bit mode, only MMDC0 is initiated */
  85. DATA 4 0x021b0004 0x0002002d
  86. DATA 4 0x021b0008 0x00333030
  87. DATA 4 0x021b000c 0x676b52f3
  88. DATA 4 0x021b0010 0xb66d8b63
  89. DATA 4 0x021b0014 0x01ff00db
  90. DATA 4 0x021b0018 0x00011740
  91. DATA 4 0x021b001c 0x00008000
  92. DATA 4 0x021b002c 0x000026d2
  93. DATA 4 0x021b0030 0x006b1023
  94. DATA 4 0x021b0040 0x0000005f
  95. DATA 4 0x021b0000 0x84190000
  96. /* Initialize MT41K256M16HA-125 - MR2 */
  97. DATA 4 0x021b001c 0x04008032
  98. /* MR3 */
  99. DATA 4 0x021b001c 0x00008033
  100. /* MR1 */
  101. DATA 4 0x021b001c 0x00048031
  102. /* MR0 */
  103. DATA 4 0x021b001c 0x05208030
  104. /* DDR device ZQ calibration */
  105. DATA 4 0x021b001c 0x04008040
  106. /* Final DDR setup, before operation start */
  107. DATA 4 0x021b0020 0x00000800
  108. DATA 4 0x021b0818 0x00011117
  109. DATA 4 0x021b001c 0x00000000