ast_dram_tables.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. #ifndef AST_DRAM_TABLES_H
  2. #define AST_DRAM_TABLES_H
  3. /* DRAM timing tables */
  4. struct ast_dramstruct {
  5. u16 index;
  6. u32 data;
  7. };
  8. static const struct ast_dramstruct ast2000_dram_table_data[] = {
  9. { 0x0108, 0x00000000 },
  10. { 0x0120, 0x00004a21 },
  11. { 0xFF00, 0x00000043 },
  12. { 0x0000, 0xFFFFFFFF },
  13. { 0x0004, 0x00000089 },
  14. { 0x0008, 0x22331353 },
  15. { 0x000C, 0x0d07000b },
  16. { 0x0010, 0x11113333 },
  17. { 0x0020, 0x00110350 },
  18. { 0x0028, 0x1e0828f0 },
  19. { 0x0024, 0x00000001 },
  20. { 0x001C, 0x00000000 },
  21. { 0x0014, 0x00000003 },
  22. { 0xFF00, 0x00000043 },
  23. { 0x0018, 0x00000131 },
  24. { 0x0014, 0x00000001 },
  25. { 0xFF00, 0x00000043 },
  26. { 0x0018, 0x00000031 },
  27. { 0x0014, 0x00000001 },
  28. { 0xFF00, 0x00000043 },
  29. { 0x0028, 0x1e0828f1 },
  30. { 0x0024, 0x00000003 },
  31. { 0x002C, 0x1f0f28fb },
  32. { 0x0030, 0xFFFFFE01 },
  33. { 0xFFFF, 0xFFFFFFFF }
  34. };
  35. static const struct ast_dramstruct ast1100_dram_table_data[] = {
  36. { 0x2000, 0x1688a8a8 },
  37. { 0x2020, 0x000041f0 },
  38. { 0xFF00, 0x00000043 },
  39. { 0x0000, 0xfc600309 },
  40. { 0x006C, 0x00909090 },
  41. { 0x0064, 0x00050000 },
  42. { 0x0004, 0x00000585 },
  43. { 0x0008, 0x0011030f },
  44. { 0x0010, 0x22201724 },
  45. { 0x0018, 0x1e29011a },
  46. { 0x0020, 0x00c82222 },
  47. { 0x0014, 0x01001523 },
  48. { 0x001C, 0x1024010d },
  49. { 0x0024, 0x00cb2522 },
  50. { 0x0038, 0xffffff82 },
  51. { 0x003C, 0x00000000 },
  52. { 0x0040, 0x00000000 },
  53. { 0x0044, 0x00000000 },
  54. { 0x0048, 0x00000000 },
  55. { 0x004C, 0x00000000 },
  56. { 0x0050, 0x00000000 },
  57. { 0x0054, 0x00000000 },
  58. { 0x0058, 0x00000000 },
  59. { 0x005C, 0x00000000 },
  60. { 0x0060, 0x032aa02a },
  61. { 0x0064, 0x002d3000 },
  62. { 0x0068, 0x00000000 },
  63. { 0x0070, 0x00000000 },
  64. { 0x0074, 0x00000000 },
  65. { 0x0078, 0x00000000 },
  66. { 0x007C, 0x00000000 },
  67. { 0x0034, 0x00000001 },
  68. { 0xFF00, 0x00000043 },
  69. { 0x002C, 0x00000732 },
  70. { 0x0030, 0x00000040 },
  71. { 0x0028, 0x00000005 },
  72. { 0x0028, 0x00000007 },
  73. { 0x0028, 0x00000003 },
  74. { 0x0028, 0x00000001 },
  75. { 0x000C, 0x00005a08 },
  76. { 0x002C, 0x00000632 },
  77. { 0x0028, 0x00000001 },
  78. { 0x0030, 0x000003c0 },
  79. { 0x0028, 0x00000003 },
  80. { 0x0030, 0x00000040 },
  81. { 0x0028, 0x00000003 },
  82. { 0x000C, 0x00005a21 },
  83. { 0x0034, 0x00007c03 },
  84. { 0x0120, 0x00004c41 },
  85. { 0xffff, 0xffffffff },
  86. };
  87. static const struct ast_dramstruct ast2100_dram_table_data[] = {
  88. { 0x2000, 0x1688a8a8 },
  89. { 0x2020, 0x00004120 },
  90. { 0xFF00, 0x00000043 },
  91. { 0x0000, 0xfc600309 },
  92. { 0x006C, 0x00909090 },
  93. { 0x0064, 0x00070000 },
  94. { 0x0004, 0x00000489 },
  95. { 0x0008, 0x0011030f },
  96. { 0x0010, 0x32302926 },
  97. { 0x0018, 0x274c0122 },
  98. { 0x0020, 0x00ce2222 },
  99. { 0x0014, 0x01001523 },
  100. { 0x001C, 0x1024010d },
  101. { 0x0024, 0x00cb2522 },
  102. { 0x0038, 0xffffff82 },
  103. { 0x003C, 0x00000000 },
  104. { 0x0040, 0x00000000 },
  105. { 0x0044, 0x00000000 },
  106. { 0x0048, 0x00000000 },
  107. { 0x004C, 0x00000000 },
  108. { 0x0050, 0x00000000 },
  109. { 0x0054, 0x00000000 },
  110. { 0x0058, 0x00000000 },
  111. { 0x005C, 0x00000000 },
  112. { 0x0060, 0x0f2aa02a },
  113. { 0x0064, 0x003f3005 },
  114. { 0x0068, 0x02020202 },
  115. { 0x0070, 0x00000000 },
  116. { 0x0074, 0x00000000 },
  117. { 0x0078, 0x00000000 },
  118. { 0x007C, 0x00000000 },
  119. { 0x0034, 0x00000001 },
  120. { 0xFF00, 0x00000043 },
  121. { 0x002C, 0x00000942 },
  122. { 0x0030, 0x00000040 },
  123. { 0x0028, 0x00000005 },
  124. { 0x0028, 0x00000007 },
  125. { 0x0028, 0x00000003 },
  126. { 0x0028, 0x00000001 },
  127. { 0x000C, 0x00005a08 },
  128. { 0x002C, 0x00000842 },
  129. { 0x0028, 0x00000001 },
  130. { 0x0030, 0x000003c0 },
  131. { 0x0028, 0x00000003 },
  132. { 0x0030, 0x00000040 },
  133. { 0x0028, 0x00000003 },
  134. { 0x000C, 0x00005a21 },
  135. { 0x0034, 0x00007c03 },
  136. { 0x0120, 0x00005061 },
  137. { 0xffff, 0xffffffff },
  138. };
  139. #endif