Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | |
| 3 | #include <linux/kernel.h> |
| 4 | #include <asm/arch/ddr.h> |
| 5 | |
| 6 | /* |
| 7 | * Generated code from MX8M_DDR_tool v3.30 using MX8M_Plus RPAv7 |
| 8 | */ |
| 9 | /* ddr phy trained csr */ |
| 10 | static struct dram_cfg_param ddr_ddrphy_trained_csr[] = { |
| 11 | { 0x200b2, 0x0 }, |
| 12 | { 0x1200b2, 0x0 }, |
| 13 | { 0x2200b2, 0x0 }, |
| 14 | { 0x200cb, 0x0 }, |
| 15 | { 0x10043, 0x0 }, |
| 16 | { 0x110043, 0x0 }, |
| 17 | { 0x210043, 0x0 }, |
| 18 | { 0x10143, 0x0 }, |
| 19 | { 0x110143, 0x0 }, |
| 20 | { 0x210143, 0x0 }, |
| 21 | { 0x11043, 0x0 }, |
| 22 | { 0x111043, 0x0 }, |
| 23 | { 0x211043, 0x0 }, |
| 24 | { 0x11143, 0x0 }, |
| 25 | { 0x111143, 0x0 }, |
| 26 | { 0x211143, 0x0 }, |
| 27 | { 0x12043, 0x0 }, |
| 28 | { 0x112043, 0x0 }, |
| 29 | { 0x212043, 0x0 }, |
| 30 | { 0x12143, 0x0 }, |
| 31 | { 0x112143, 0x0 }, |
| 32 | { 0x212143, 0x0 }, |
| 33 | { 0x13043, 0x0 }, |
| 34 | { 0x113043, 0x0 }, |
| 35 | { 0x213043, 0x0 }, |
| 36 | { 0x13143, 0x0 }, |
| 37 | { 0x113143, 0x0 }, |
| 38 | { 0x213143, 0x0 }, |
| 39 | { 0x80, 0x0 }, |
| 40 | { 0x100080, 0x0 }, |
| 41 | { 0x200080, 0x0 }, |
| 42 | { 0x1080, 0x0 }, |
| 43 | { 0x101080, 0x0 }, |
| 44 | { 0x201080, 0x0 }, |
| 45 | { 0x2080, 0x0 }, |
| 46 | { 0x102080, 0x0 }, |
| 47 | { 0x202080, 0x0 }, |
| 48 | { 0x3080, 0x0 }, |
| 49 | { 0x103080, 0x0 }, |
| 50 | { 0x203080, 0x0 }, |
| 51 | { 0x4080, 0x0 }, |
| 52 | { 0x104080, 0x0 }, |
| 53 | { 0x204080, 0x0 }, |
| 54 | { 0x5080, 0x0 }, |
| 55 | { 0x105080, 0x0 }, |
| 56 | { 0x205080, 0x0 }, |
| 57 | { 0x6080, 0x0 }, |
| 58 | { 0x106080, 0x0 }, |
| 59 | { 0x206080, 0x0 }, |
| 60 | { 0x7080, 0x0 }, |
| 61 | { 0x107080, 0x0 }, |
| 62 | { 0x207080, 0x0 }, |
| 63 | { 0x8080, 0x0 }, |
| 64 | { 0x108080, 0x0 }, |
| 65 | { 0x208080, 0x0 }, |
| 66 | { 0x9080, 0x0 }, |
| 67 | { 0x109080, 0x0 }, |
| 68 | { 0x209080, 0x0 }, |
| 69 | { 0x10080, 0x0 }, |
| 70 | { 0x110080, 0x0 }, |
| 71 | { 0x210080, 0x0 }, |
| 72 | { 0x10180, 0x0 }, |
| 73 | { 0x110180, 0x0 }, |
| 74 | { 0x210180, 0x0 }, |
| 75 | { 0x11080, 0x0 }, |
| 76 | { 0x111080, 0x0 }, |
| 77 | { 0x211080, 0x0 }, |
| 78 | { 0x11180, 0x0 }, |
| 79 | { 0x111180, 0x0 }, |
| 80 | { 0x211180, 0x0 }, |
| 81 | { 0x12080, 0x0 }, |
| 82 | { 0x112080, 0x0 }, |
| 83 | { 0x212080, 0x0 }, |
| 84 | { 0x12180, 0x0 }, |
| 85 | { 0x112180, 0x0 }, |
| 86 | { 0x212180, 0x0 }, |
| 87 | { 0x13080, 0x0 }, |
| 88 | { 0x113080, 0x0 }, |
| 89 | { 0x213080, 0x0 }, |
| 90 | { 0x13180, 0x0 }, |
| 91 | { 0x113180, 0x0 }, |
| 92 | { 0x213180, 0x0 }, |
| 93 | { 0x10081, 0x0 }, |
| 94 | { 0x110081, 0x0 }, |
| 95 | { 0x210081, 0x0 }, |
| 96 | { 0x10181, 0x0 }, |
| 97 | { 0x110181, 0x0 }, |
| 98 | { 0x210181, 0x0 }, |
| 99 | { 0x11081, 0x0 }, |
| 100 | { 0x111081, 0x0 }, |
| 101 | { 0x211081, 0x0 }, |
| 102 | { 0x11181, 0x0 }, |
| 103 | { 0x111181, 0x0 }, |
| 104 | { 0x211181, 0x0 }, |
| 105 | { 0x12081, 0x0 }, |
| 106 | { 0x112081, 0x0 }, |
| 107 | { 0x212081, 0x0 }, |
| 108 | { 0x12181, 0x0 }, |
| 109 | { 0x112181, 0x0 }, |
| 110 | { 0x212181, 0x0 }, |
| 111 | { 0x13081, 0x0 }, |
| 112 | { 0x113081, 0x0 }, |
| 113 | { 0x213081, 0x0 }, |
| 114 | { 0x13181, 0x0 }, |
| 115 | { 0x113181, 0x0 }, |
| 116 | { 0x213181, 0x0 }, |
| 117 | { 0x100d0, 0x0 }, |
| 118 | { 0x1100d0, 0x0 }, |
| 119 | { 0x2100d0, 0x0 }, |
| 120 | { 0x101d0, 0x0 }, |
| 121 | { 0x1101d0, 0x0 }, |
| 122 | { 0x2101d0, 0x0 }, |
| 123 | { 0x110d0, 0x0 }, |
| 124 | { 0x1110d0, 0x0 }, |
| 125 | { 0x2110d0, 0x0 }, |
| 126 | { 0x111d0, 0x0 }, |
| 127 | { 0x1111d0, 0x0 }, |
| 128 | { 0x2111d0, 0x0 }, |
| 129 | { 0x120d0, 0x0 }, |
| 130 | { 0x1120d0, 0x0 }, |
| 131 | { 0x2120d0, 0x0 }, |
| 132 | { 0x121d0, 0x0 }, |
| 133 | { 0x1121d0, 0x0 }, |
| 134 | { 0x2121d0, 0x0 }, |
| 135 | { 0x130d0, 0x0 }, |
| 136 | { 0x1130d0, 0x0 }, |
| 137 | { 0x2130d0, 0x0 }, |
| 138 | { 0x131d0, 0x0 }, |
| 139 | { 0x1131d0, 0x0 }, |
| 140 | { 0x2131d0, 0x0 }, |
| 141 | { 0x100d1, 0x0 }, |
| 142 | { 0x1100d1, 0x0 }, |
| 143 | { 0x2100d1, 0x0 }, |
| 144 | { 0x101d1, 0x0 }, |
| 145 | { 0x1101d1, 0x0 }, |
| 146 | { 0x2101d1, 0x0 }, |
| 147 | { 0x110d1, 0x0 }, |
| 148 | { 0x1110d1, 0x0 }, |
| 149 | { 0x2110d1, 0x0 }, |
| 150 | { 0x111d1, 0x0 }, |
| 151 | { 0x1111d1, 0x0 }, |
| 152 | { 0x2111d1, 0x0 }, |
| 153 | { 0x120d1, 0x0 }, |
| 154 | { 0x1120d1, 0x0 }, |
| 155 | { 0x2120d1, 0x0 }, |
| 156 | { 0x121d1, 0x0 }, |
| 157 | { 0x1121d1, 0x0 }, |
| 158 | { 0x2121d1, 0x0 }, |
| 159 | { 0x130d1, 0x0 }, |
| 160 | { 0x1130d1, 0x0 }, |
| 161 | { 0x2130d1, 0x0 }, |
| 162 | { 0x131d1, 0x0 }, |
| 163 | { 0x1131d1, 0x0 }, |
| 164 | { 0x2131d1, 0x0 }, |
| 165 | { 0x10068, 0x0 }, |
| 166 | { 0x10168, 0x0 }, |
| 167 | { 0x10268, 0x0 }, |
| 168 | { 0x10368, 0x0 }, |
| 169 | { 0x10468, 0x0 }, |
| 170 | { 0x10568, 0x0 }, |
| 171 | { 0x10668, 0x0 }, |
| 172 | { 0x10768, 0x0 }, |
| 173 | { 0x10868, 0x0 }, |
| 174 | { 0x11068, 0x0 }, |
| 175 | { 0x11168, 0x0 }, |
| 176 | { 0x11268, 0x0 }, |
| 177 | { 0x11368, 0x0 }, |
| 178 | { 0x11468, 0x0 }, |
| 179 | { 0x11568, 0x0 }, |
| 180 | { 0x11668, 0x0 }, |
| 181 | { 0x11768, 0x0 }, |
| 182 | { 0x11868, 0x0 }, |
| 183 | { 0x12068, 0x0 }, |
| 184 | { 0x12168, 0x0 }, |
| 185 | { 0x12268, 0x0 }, |
| 186 | { 0x12368, 0x0 }, |
| 187 | { 0x12468, 0x0 }, |
| 188 | { 0x12568, 0x0 }, |
| 189 | { 0x12668, 0x0 }, |
| 190 | { 0x12768, 0x0 }, |
| 191 | { 0x12868, 0x0 }, |
| 192 | { 0x13068, 0x0 }, |
| 193 | { 0x13168, 0x0 }, |
| 194 | { 0x13268, 0x0 }, |
| 195 | { 0x13368, 0x0 }, |
| 196 | { 0x13468, 0x0 }, |
| 197 | { 0x13568, 0x0 }, |
| 198 | { 0x13668, 0x0 }, |
| 199 | { 0x13768, 0x0 }, |
| 200 | { 0x13868, 0x0 }, |
| 201 | { 0x10069, 0x0 }, |
| 202 | { 0x10169, 0x0 }, |
| 203 | { 0x10269, 0x0 }, |
| 204 | { 0x10369, 0x0 }, |
| 205 | { 0x10469, 0x0 }, |
| 206 | { 0x10569, 0x0 }, |
| 207 | { 0x10669, 0x0 }, |
| 208 | { 0x10769, 0x0 }, |
| 209 | { 0x10869, 0x0 }, |
| 210 | { 0x11069, 0x0 }, |
| 211 | { 0x11169, 0x0 }, |
| 212 | { 0x11269, 0x0 }, |
| 213 | { 0x11369, 0x0 }, |
| 214 | { 0x11469, 0x0 }, |
| 215 | { 0x11569, 0x0 }, |
| 216 | { 0x11669, 0x0 }, |
| 217 | { 0x11769, 0x0 }, |
| 218 | { 0x11869, 0x0 }, |
| 219 | { 0x12069, 0x0 }, |
| 220 | { 0x12169, 0x0 }, |
| 221 | { 0x12269, 0x0 }, |
| 222 | { 0x12369, 0x0 }, |
| 223 | { 0x12469, 0x0 }, |
| 224 | { 0x12569, 0x0 }, |
| 225 | { 0x12669, 0x0 }, |
| 226 | { 0x12769, 0x0 }, |
| 227 | { 0x12869, 0x0 }, |
| 228 | { 0x13069, 0x0 }, |
| 229 | { 0x13169, 0x0 }, |
| 230 | { 0x13269, 0x0 }, |
| 231 | { 0x13369, 0x0 }, |
| 232 | { 0x13469, 0x0 }, |
| 233 | { 0x13569, 0x0 }, |
| 234 | { 0x13669, 0x0 }, |
| 235 | { 0x13769, 0x0 }, |
| 236 | { 0x13869, 0x0 }, |
| 237 | { 0x1008c, 0x0 }, |
| 238 | { 0x11008c, 0x0 }, |
| 239 | { 0x21008c, 0x0 }, |
| 240 | { 0x1018c, 0x0 }, |
| 241 | { 0x11018c, 0x0 }, |
| 242 | { 0x21018c, 0x0 }, |
| 243 | { 0x1108c, 0x0 }, |
| 244 | { 0x11108c, 0x0 }, |
| 245 | { 0x21108c, 0x0 }, |
| 246 | { 0x1118c, 0x0 }, |
| 247 | { 0x11118c, 0x0 }, |
| 248 | { 0x21118c, 0x0 }, |
| 249 | { 0x1208c, 0x0 }, |
| 250 | { 0x11208c, 0x0 }, |
| 251 | { 0x21208c, 0x0 }, |
| 252 | { 0x1218c, 0x0 }, |
| 253 | { 0x11218c, 0x0 }, |
| 254 | { 0x21218c, 0x0 }, |
| 255 | { 0x1308c, 0x0 }, |
| 256 | { 0x11308c, 0x0 }, |
| 257 | { 0x21308c, 0x0 }, |
| 258 | { 0x1318c, 0x0 }, |
| 259 | { 0x11318c, 0x0 }, |
| 260 | { 0x21318c, 0x0 }, |
| 261 | { 0x1008d, 0x0 }, |
| 262 | { 0x11008d, 0x0 }, |
| 263 | { 0x21008d, 0x0 }, |
| 264 | { 0x1018d, 0x0 }, |
| 265 | { 0x11018d, 0x0 }, |
| 266 | { 0x21018d, 0x0 }, |
| 267 | { 0x1108d, 0x0 }, |
| 268 | { 0x11108d, 0x0 }, |
| 269 | { 0x21108d, 0x0 }, |
| 270 | { 0x1118d, 0x0 }, |
| 271 | { 0x11118d, 0x0 }, |
| 272 | { 0x21118d, 0x0 }, |
| 273 | { 0x1208d, 0x0 }, |
| 274 | { 0x11208d, 0x0 }, |
| 275 | { 0x21208d, 0x0 }, |
| 276 | { 0x1218d, 0x0 }, |
| 277 | { 0x11218d, 0x0 }, |
| 278 | { 0x21218d, 0x0 }, |
| 279 | { 0x1308d, 0x0 }, |
| 280 | { 0x11308d, 0x0 }, |
| 281 | { 0x21308d, 0x0 }, |
| 282 | { 0x1318d, 0x0 }, |
| 283 | { 0x11318d, 0x0 }, |
| 284 | { 0x21318d, 0x0 }, |
| 285 | { 0x100c0, 0x0 }, |
| 286 | { 0x1100c0, 0x0 }, |
| 287 | { 0x2100c0, 0x0 }, |
| 288 | { 0x101c0, 0x0 }, |
| 289 | { 0x1101c0, 0x0 }, |
| 290 | { 0x2101c0, 0x0 }, |
| 291 | { 0x102c0, 0x0 }, |
| 292 | { 0x1102c0, 0x0 }, |
| 293 | { 0x2102c0, 0x0 }, |
| 294 | { 0x103c0, 0x0 }, |
| 295 | { 0x1103c0, 0x0 }, |
| 296 | { 0x2103c0, 0x0 }, |
| 297 | { 0x104c0, 0x0 }, |
| 298 | { 0x1104c0, 0x0 }, |
| 299 | { 0x2104c0, 0x0 }, |
| 300 | { 0x105c0, 0x0 }, |
| 301 | { 0x1105c0, 0x0 }, |
| 302 | { 0x2105c0, 0x0 }, |
| 303 | { 0x106c0, 0x0 }, |
| 304 | { 0x1106c0, 0x0 }, |
| 305 | { 0x2106c0, 0x0 }, |
| 306 | { 0x107c0, 0x0 }, |
| 307 | { 0x1107c0, 0x0 }, |
| 308 | { 0x2107c0, 0x0 }, |
| 309 | { 0x108c0, 0x0 }, |
| 310 | { 0x1108c0, 0x0 }, |
| 311 | { 0x2108c0, 0x0 }, |
| 312 | { 0x110c0, 0x0 }, |
| 313 | { 0x1110c0, 0x0 }, |
| 314 | { 0x2110c0, 0x0 }, |
| 315 | { 0x111c0, 0x0 }, |
| 316 | { 0x1111c0, 0x0 }, |
| 317 | { 0x2111c0, 0x0 }, |
| 318 | { 0x112c0, 0x0 }, |
| 319 | { 0x1112c0, 0x0 }, |
| 320 | { 0x2112c0, 0x0 }, |
| 321 | { 0x113c0, 0x0 }, |
| 322 | { 0x1113c0, 0x0 }, |
| 323 | { 0x2113c0, 0x0 }, |
| 324 | { 0x114c0, 0x0 }, |
| 325 | { 0x1114c0, 0x0 }, |
| 326 | { 0x2114c0, 0x0 }, |
| 327 | { 0x115c0, 0x0 }, |
| 328 | { 0x1115c0, 0x0 }, |
| 329 | { 0x2115c0, 0x0 }, |
| 330 | { 0x116c0, 0x0 }, |
| 331 | { 0x1116c0, 0x0 }, |
| 332 | { 0x2116c0, 0x0 }, |
| 333 | { 0x117c0, 0x0 }, |
| 334 | { 0x1117c0, 0x0 }, |
| 335 | { 0x2117c0, 0x0 }, |
| 336 | { 0x118c0, 0x0 }, |
| 337 | { 0x1118c0, 0x0 }, |
| 338 | { 0x2118c0, 0x0 }, |
| 339 | { 0x120c0, 0x0 }, |
| 340 | { 0x1120c0, 0x0 }, |
| 341 | { 0x2120c0, 0x0 }, |
| 342 | { 0x121c0, 0x0 }, |
| 343 | { 0x1121c0, 0x0 }, |
| 344 | { 0x2121c0, 0x0 }, |
| 345 | { 0x122c0, 0x0 }, |
| 346 | { 0x1122c0, 0x0 }, |
| 347 | { 0x2122c0, 0x0 }, |
| 348 | { 0x123c0, 0x0 }, |
| 349 | { 0x1123c0, 0x0 }, |
| 350 | { 0x2123c0, 0x0 }, |
| 351 | { 0x124c0, 0x0 }, |
| 352 | { 0x1124c0, 0x0 }, |
| 353 | { 0x2124c0, 0x0 }, |
| 354 | { 0x125c0, 0x0 }, |
| 355 | { 0x1125c0, 0x0 }, |
| 356 | { 0x2125c0, 0x0 }, |
| 357 | { 0x126c0, 0x0 }, |
| 358 | { 0x1126c0, 0x0 }, |
| 359 | { 0x2126c0, 0x0 }, |
| 360 | { 0x127c0, 0x0 }, |
| 361 | { 0x1127c0, 0x0 }, |
| 362 | { 0x2127c0, 0x0 }, |
| 363 | { 0x128c0, 0x0 }, |
| 364 | { 0x1128c0, 0x0 }, |
| 365 | { 0x2128c0, 0x0 }, |
| 366 | { 0x130c0, 0x0 }, |
| 367 | { 0x1130c0, 0x0 }, |
| 368 | { 0x2130c0, 0x0 }, |
| 369 | { 0x131c0, 0x0 }, |
| 370 | { 0x1131c0, 0x0 }, |
| 371 | { 0x2131c0, 0x0 }, |
| 372 | { 0x132c0, 0x0 }, |
| 373 | { 0x1132c0, 0x0 }, |
| 374 | { 0x2132c0, 0x0 }, |
| 375 | { 0x133c0, 0x0 }, |
| 376 | { 0x1133c0, 0x0 }, |
| 377 | { 0x2133c0, 0x0 }, |
| 378 | { 0x134c0, 0x0 }, |
| 379 | { 0x1134c0, 0x0 }, |
| 380 | { 0x2134c0, 0x0 }, |
| 381 | { 0x135c0, 0x0 }, |
| 382 | { 0x1135c0, 0x0 }, |
| 383 | { 0x2135c0, 0x0 }, |
| 384 | { 0x136c0, 0x0 }, |
| 385 | { 0x1136c0, 0x0 }, |
| 386 | { 0x2136c0, 0x0 }, |
| 387 | { 0x137c0, 0x0 }, |
| 388 | { 0x1137c0, 0x0 }, |
| 389 | { 0x2137c0, 0x0 }, |
| 390 | { 0x138c0, 0x0 }, |
| 391 | { 0x1138c0, 0x0 }, |
| 392 | { 0x2138c0, 0x0 }, |
| 393 | { 0x100c1, 0x0 }, |
| 394 | { 0x1100c1, 0x0 }, |
| 395 | { 0x2100c1, 0x0 }, |
| 396 | { 0x101c1, 0x0 }, |
| 397 | { 0x1101c1, 0x0 }, |
| 398 | { 0x2101c1, 0x0 }, |
| 399 | { 0x102c1, 0x0 }, |
| 400 | { 0x1102c1, 0x0 }, |
| 401 | { 0x2102c1, 0x0 }, |
| 402 | { 0x103c1, 0x0 }, |
| 403 | { 0x1103c1, 0x0 }, |
| 404 | { 0x2103c1, 0x0 }, |
| 405 | { 0x104c1, 0x0 }, |
| 406 | { 0x1104c1, 0x0 }, |
| 407 | { 0x2104c1, 0x0 }, |
| 408 | { 0x105c1, 0x0 }, |
| 409 | { 0x1105c1, 0x0 }, |
| 410 | { 0x2105c1, 0x0 }, |
| 411 | { 0x106c1, 0x0 }, |
| 412 | { 0x1106c1, 0x0 }, |
| 413 | { 0x2106c1, 0x0 }, |
| 414 | { 0x107c1, 0x0 }, |
| 415 | { 0x1107c1, 0x0 }, |
| 416 | { 0x2107c1, 0x0 }, |
| 417 | { 0x108c1, 0x0 }, |
| 418 | { 0x1108c1, 0x0 }, |
| 419 | { 0x2108c1, 0x0 }, |
| 420 | { 0x110c1, 0x0 }, |
| 421 | { 0x1110c1, 0x0 }, |
| 422 | { 0x2110c1, 0x0 }, |
| 423 | { 0x111c1, 0x0 }, |
| 424 | { 0x1111c1, 0x0 }, |
| 425 | { 0x2111c1, 0x0 }, |
| 426 | { 0x112c1, 0x0 }, |
| 427 | { 0x1112c1, 0x0 }, |
| 428 | { 0x2112c1, 0x0 }, |
| 429 | { 0x113c1, 0x0 }, |
| 430 | { 0x1113c1, 0x0 }, |
| 431 | { 0x2113c1, 0x0 }, |
| 432 | { 0x114c1, 0x0 }, |
| 433 | { 0x1114c1, 0x0 }, |
| 434 | { 0x2114c1, 0x0 }, |
| 435 | { 0x115c1, 0x0 }, |
| 436 | { 0x1115c1, 0x0 }, |
| 437 | { 0x2115c1, 0x0 }, |
| 438 | { 0x116c1, 0x0 }, |
| 439 | { 0x1116c1, 0x0 }, |
| 440 | { 0x2116c1, 0x0 }, |
| 441 | { 0x117c1, 0x0 }, |
| 442 | { 0x1117c1, 0x0 }, |
| 443 | { 0x2117c1, 0x0 }, |
| 444 | { 0x118c1, 0x0 }, |
| 445 | { 0x1118c1, 0x0 }, |
| 446 | { 0x2118c1, 0x0 }, |
| 447 | { 0x120c1, 0x0 }, |
| 448 | { 0x1120c1, 0x0 }, |
| 449 | { 0x2120c1, 0x0 }, |
| 450 | { 0x121c1, 0x0 }, |
| 451 | { 0x1121c1, 0x0 }, |
| 452 | { 0x2121c1, 0x0 }, |
| 453 | { 0x122c1, 0x0 }, |
| 454 | { 0x1122c1, 0x0 }, |
| 455 | { 0x2122c1, 0x0 }, |
| 456 | { 0x123c1, 0x0 }, |
| 457 | { 0x1123c1, 0x0 }, |
| 458 | { 0x2123c1, 0x0 }, |
| 459 | { 0x124c1, 0x0 }, |
| 460 | { 0x1124c1, 0x0 }, |
| 461 | { 0x2124c1, 0x0 }, |
| 462 | { 0x125c1, 0x0 }, |
| 463 | { 0x1125c1, 0x0 }, |
| 464 | { 0x2125c1, 0x0 }, |
| 465 | { 0x126c1, 0x0 }, |
| 466 | { 0x1126c1, 0x0 }, |
| 467 | { 0x2126c1, 0x0 }, |
| 468 | { 0x127c1, 0x0 }, |
| 469 | { 0x1127c1, 0x0 }, |
| 470 | { 0x2127c1, 0x0 }, |
| 471 | { 0x128c1, 0x0 }, |
| 472 | { 0x1128c1, 0x0 }, |
| 473 | { 0x2128c1, 0x0 }, |
| 474 | { 0x130c1, 0x0 }, |
| 475 | { 0x1130c1, 0x0 }, |
| 476 | { 0x2130c1, 0x0 }, |
| 477 | { 0x131c1, 0x0 }, |
| 478 | { 0x1131c1, 0x0 }, |
| 479 | { 0x2131c1, 0x0 }, |
| 480 | { 0x132c1, 0x0 }, |
| 481 | { 0x1132c1, 0x0 }, |
| 482 | { 0x2132c1, 0x0 }, |
| 483 | { 0x133c1, 0x0 }, |
| 484 | { 0x1133c1, 0x0 }, |
| 485 | { 0x2133c1, 0x0 }, |
| 486 | { 0x134c1, 0x0 }, |
| 487 | { 0x1134c1, 0x0 }, |
| 488 | { 0x2134c1, 0x0 }, |
| 489 | { 0x135c1, 0x0 }, |
| 490 | { 0x1135c1, 0x0 }, |
| 491 | { 0x2135c1, 0x0 }, |
| 492 | { 0x136c1, 0x0 }, |
| 493 | { 0x1136c1, 0x0 }, |
| 494 | { 0x2136c1, 0x0 }, |
| 495 | { 0x137c1, 0x0 }, |
| 496 | { 0x1137c1, 0x0 }, |
| 497 | { 0x2137c1, 0x0 }, |
| 498 | { 0x138c1, 0x0 }, |
| 499 | { 0x1138c1, 0x0 }, |
| 500 | { 0x2138c1, 0x0 }, |
| 501 | { 0x10020, 0x0 }, |
| 502 | { 0x110020, 0x0 }, |
| 503 | { 0x210020, 0x0 }, |
| 504 | { 0x11020, 0x0 }, |
| 505 | { 0x111020, 0x0 }, |
| 506 | { 0x211020, 0x0 }, |
| 507 | { 0x12020, 0x0 }, |
| 508 | { 0x112020, 0x0 }, |
| 509 | { 0x212020, 0x0 }, |
| 510 | { 0x13020, 0x0 }, |
| 511 | { 0x113020, 0x0 }, |
| 512 | { 0x213020, 0x0 }, |
| 513 | { 0x20072, 0x0 }, |
| 514 | { 0x20073, 0x0 }, |
| 515 | { 0x20074, 0x0 }, |
| 516 | { 0x100aa, 0x0 }, |
| 517 | { 0x110aa, 0x0 }, |
| 518 | { 0x120aa, 0x0 }, |
| 519 | { 0x130aa, 0x0 }, |
| 520 | { 0x20010, 0x0 }, |
| 521 | { 0x120010, 0x0 }, |
| 522 | { 0x220010, 0x0 }, |
| 523 | { 0x20011, 0x0 }, |
| 524 | { 0x120011, 0x0 }, |
| 525 | { 0x220011, 0x0 }, |
| 526 | { 0x100ae, 0x0 }, |
| 527 | { 0x1100ae, 0x0 }, |
| 528 | { 0x2100ae, 0x0 }, |
| 529 | { 0x100af, 0x0 }, |
| 530 | { 0x1100af, 0x0 }, |
| 531 | { 0x2100af, 0x0 }, |
| 532 | { 0x110ae, 0x0 }, |
| 533 | { 0x1110ae, 0x0 }, |
| 534 | { 0x2110ae, 0x0 }, |
| 535 | { 0x110af, 0x0 }, |
| 536 | { 0x1110af, 0x0 }, |
| 537 | { 0x2110af, 0x0 }, |
| 538 | { 0x120ae, 0x0 }, |
| 539 | { 0x1120ae, 0x0 }, |
| 540 | { 0x2120ae, 0x0 }, |
| 541 | { 0x120af, 0x0 }, |
| 542 | { 0x1120af, 0x0 }, |
| 543 | { 0x2120af, 0x0 }, |
| 544 | { 0x130ae, 0x0 }, |
| 545 | { 0x1130ae, 0x0 }, |
| 546 | { 0x2130ae, 0x0 }, |
| 547 | { 0x130af, 0x0 }, |
| 548 | { 0x1130af, 0x0 }, |
| 549 | { 0x2130af, 0x0 }, |
| 550 | { 0x20020, 0x0 }, |
| 551 | { 0x120020, 0x0 }, |
| 552 | { 0x220020, 0x0 }, |
| 553 | { 0x100a0, 0x0 }, |
| 554 | { 0x100a1, 0x0 }, |
| 555 | { 0x100a2, 0x0 }, |
| 556 | { 0x100a3, 0x0 }, |
| 557 | { 0x100a4, 0x0 }, |
| 558 | { 0x100a5, 0x0 }, |
| 559 | { 0x100a6, 0x0 }, |
| 560 | { 0x100a7, 0x0 }, |
| 561 | { 0x110a0, 0x0 }, |
| 562 | { 0x110a1, 0x0 }, |
| 563 | { 0x110a2, 0x0 }, |
| 564 | { 0x110a3, 0x0 }, |
| 565 | { 0x110a4, 0x0 }, |
| 566 | { 0x110a5, 0x0 }, |
| 567 | { 0x110a6, 0x0 }, |
| 568 | { 0x110a7, 0x0 }, |
| 569 | { 0x120a0, 0x0 }, |
| 570 | { 0x120a1, 0x0 }, |
| 571 | { 0x120a2, 0x0 }, |
| 572 | { 0x120a3, 0x0 }, |
| 573 | { 0x120a4, 0x0 }, |
| 574 | { 0x120a5, 0x0 }, |
| 575 | { 0x120a6, 0x0 }, |
| 576 | { 0x120a7, 0x0 }, |
| 577 | { 0x130a0, 0x0 }, |
| 578 | { 0x130a1, 0x0 }, |
| 579 | { 0x130a2, 0x0 }, |
| 580 | { 0x130a3, 0x0 }, |
| 581 | { 0x130a4, 0x0 }, |
| 582 | { 0x130a5, 0x0 }, |
| 583 | { 0x130a6, 0x0 }, |
| 584 | { 0x130a7, 0x0 }, |
| 585 | { 0x2007c, 0x0 }, |
| 586 | { 0x12007c, 0x0 }, |
| 587 | { 0x22007c, 0x0 }, |
| 588 | { 0x2007d, 0x0 }, |
| 589 | { 0x12007d, 0x0 }, |
| 590 | { 0x22007d, 0x0 }, |
| 591 | { 0x400fd, 0x0 }, |
| 592 | { 0x400c0, 0x0 }, |
| 593 | { 0x90201, 0x0 }, |
| 594 | { 0x190201, 0x0 }, |
| 595 | { 0x290201, 0x0 }, |
| 596 | { 0x90202, 0x0 }, |
| 597 | { 0x190202, 0x0 }, |
| 598 | { 0x290202, 0x0 }, |
| 599 | { 0x90203, 0x0 }, |
| 600 | { 0x190203, 0x0 }, |
| 601 | { 0x290203, 0x0 }, |
| 602 | { 0x90204, 0x0 }, |
| 603 | { 0x190204, 0x0 }, |
| 604 | { 0x290204, 0x0 }, |
| 605 | { 0x90205, 0x0 }, |
| 606 | { 0x190205, 0x0 }, |
| 607 | { 0x290205, 0x0 }, |
| 608 | { 0x90206, 0x0 }, |
| 609 | { 0x190206, 0x0 }, |
| 610 | { 0x290206, 0x0 }, |
| 611 | { 0x90207, 0x0 }, |
| 612 | { 0x190207, 0x0 }, |
| 613 | { 0x290207, 0x0 }, |
| 614 | { 0x90208, 0x0 }, |
| 615 | { 0x190208, 0x0 }, |
| 616 | { 0x290208, 0x0 }, |
| 617 | { 0x10062, 0x0 }, |
| 618 | { 0x10162, 0x0 }, |
| 619 | { 0x10262, 0x0 }, |
| 620 | { 0x10362, 0x0 }, |
| 621 | { 0x10462, 0x0 }, |
| 622 | { 0x10562, 0x0 }, |
| 623 | { 0x10662, 0x0 }, |
| 624 | { 0x10762, 0x0 }, |
| 625 | { 0x10862, 0x0 }, |
| 626 | { 0x11062, 0x0 }, |
| 627 | { 0x11162, 0x0 }, |
| 628 | { 0x11262, 0x0 }, |
| 629 | { 0x11362, 0x0 }, |
| 630 | { 0x11462, 0x0 }, |
| 631 | { 0x11562, 0x0 }, |
| 632 | { 0x11662, 0x0 }, |
| 633 | { 0x11762, 0x0 }, |
| 634 | { 0x11862, 0x0 }, |
| 635 | { 0x12062, 0x0 }, |
| 636 | { 0x12162, 0x0 }, |
| 637 | { 0x12262, 0x0 }, |
| 638 | { 0x12362, 0x0 }, |
| 639 | { 0x12462, 0x0 }, |
| 640 | { 0x12562, 0x0 }, |
| 641 | { 0x12662, 0x0 }, |
| 642 | { 0x12762, 0x0 }, |
| 643 | { 0x12862, 0x0 }, |
| 644 | { 0x13062, 0x0 }, |
| 645 | { 0x13162, 0x0 }, |
| 646 | { 0x13262, 0x0 }, |
| 647 | { 0x13362, 0x0 }, |
| 648 | { 0x13462, 0x0 }, |
| 649 | { 0x13562, 0x0 }, |
| 650 | { 0x13662, 0x0 }, |
| 651 | { 0x13762, 0x0 }, |
| 652 | { 0x13862, 0x0 }, |
| 653 | { 0x20077, 0x0 }, |
| 654 | { 0x10001, 0x0 }, |
| 655 | { 0x11001, 0x0 }, |
| 656 | { 0x12001, 0x0 }, |
| 657 | { 0x13001, 0x0 }, |
| 658 | { 0x10040, 0x0 }, |
| 659 | { 0x10140, 0x0 }, |
| 660 | { 0x10240, 0x0 }, |
| 661 | { 0x10340, 0x0 }, |
| 662 | { 0x10440, 0x0 }, |
| 663 | { 0x10540, 0x0 }, |
| 664 | { 0x10640, 0x0 }, |
| 665 | { 0x10740, 0x0 }, |
| 666 | { 0x10840, 0x0 }, |
| 667 | { 0x10030, 0x0 }, |
| 668 | { 0x10130, 0x0 }, |
| 669 | { 0x10230, 0x0 }, |
| 670 | { 0x10330, 0x0 }, |
| 671 | { 0x10430, 0x0 }, |
| 672 | { 0x10530, 0x0 }, |
| 673 | { 0x10630, 0x0 }, |
| 674 | { 0x10730, 0x0 }, |
| 675 | { 0x10830, 0x0 }, |
| 676 | { 0x11040, 0x0 }, |
| 677 | { 0x11140, 0x0 }, |
| 678 | { 0x11240, 0x0 }, |
| 679 | { 0x11340, 0x0 }, |
| 680 | { 0x11440, 0x0 }, |
| 681 | { 0x11540, 0x0 }, |
| 682 | { 0x11640, 0x0 }, |
| 683 | { 0x11740, 0x0 }, |
| 684 | { 0x11840, 0x0 }, |
| 685 | { 0x11030, 0x0 }, |
| 686 | { 0x11130, 0x0 }, |
| 687 | { 0x11230, 0x0 }, |
| 688 | { 0x11330, 0x0 }, |
| 689 | { 0x11430, 0x0 }, |
| 690 | { 0x11530, 0x0 }, |
| 691 | { 0x11630, 0x0 }, |
| 692 | { 0x11730, 0x0 }, |
| 693 | { 0x11830, 0x0 }, |
| 694 | { 0x12040, 0x0 }, |
| 695 | { 0x12140, 0x0 }, |
| 696 | { 0x12240, 0x0 }, |
| 697 | { 0x12340, 0x0 }, |
| 698 | { 0x12440, 0x0 }, |
| 699 | { 0x12540, 0x0 }, |
| 700 | { 0x12640, 0x0 }, |
| 701 | { 0x12740, 0x0 }, |
| 702 | { 0x12840, 0x0 }, |
| 703 | { 0x12030, 0x0 }, |
| 704 | { 0x12130, 0x0 }, |
| 705 | { 0x12230, 0x0 }, |
| 706 | { 0x12330, 0x0 }, |
| 707 | { 0x12430, 0x0 }, |
| 708 | { 0x12530, 0x0 }, |
| 709 | { 0x12630, 0x0 }, |
| 710 | { 0x12730, 0x0 }, |
| 711 | { 0x12830, 0x0 }, |
| 712 | { 0x13040, 0x0 }, |
| 713 | { 0x13140, 0x0 }, |
| 714 | { 0x13240, 0x0 }, |
| 715 | { 0x13340, 0x0 }, |
| 716 | { 0x13440, 0x0 }, |
| 717 | { 0x13540, 0x0 }, |
| 718 | { 0x13640, 0x0 }, |
| 719 | { 0x13740, 0x0 }, |
| 720 | { 0x13840, 0x0 }, |
| 721 | { 0x13030, 0x0 }, |
| 722 | { 0x13130, 0x0 }, |
| 723 | { 0x13230, 0x0 }, |
| 724 | { 0x13330, 0x0 }, |
| 725 | { 0x13430, 0x0 }, |
| 726 | { 0x13530, 0x0 }, |
| 727 | { 0x13630, 0x0 }, |
| 728 | { 0x13730, 0x0 }, |
| 729 | { 0x13830, 0x0 }, |
| 730 | }; |
| 731 | |
| 732 | /* DRAM PHY init engine image */ |
| 733 | static struct dram_cfg_param ddr_phy_pie[] = { |
| 734 | { 0xd0000, 0x0 }, |
| 735 | { 0x90000, 0x10 }, |
| 736 | { 0x90001, 0x400 }, |
| 737 | { 0x90002, 0x10e }, |
| 738 | { 0x90003, 0x0 }, |
| 739 | { 0x90004, 0x0 }, |
| 740 | { 0x90005, 0x8 }, |
| 741 | { 0x90029, 0xb }, |
| 742 | { 0x9002a, 0x480 }, |
| 743 | { 0x9002b, 0x109 }, |
| 744 | { 0x9002c, 0x8 }, |
| 745 | { 0x9002d, 0x448 }, |
| 746 | { 0x9002e, 0x139 }, |
| 747 | { 0x9002f, 0x8 }, |
| 748 | { 0x90030, 0x478 }, |
| 749 | { 0x90031, 0x109 }, |
| 750 | { 0x90032, 0x0 }, |
| 751 | { 0x90033, 0xe8 }, |
| 752 | { 0x90034, 0x109 }, |
| 753 | { 0x90035, 0x2 }, |
| 754 | { 0x90036, 0x10 }, |
| 755 | { 0x90037, 0x139 }, |
| 756 | { 0x90038, 0xb }, |
| 757 | { 0x90039, 0x7c0 }, |
| 758 | { 0x9003a, 0x139 }, |
| 759 | { 0x9003b, 0x44 }, |
| 760 | { 0x9003c, 0x633 }, |
| 761 | { 0x9003d, 0x159 }, |
| 762 | { 0x9003e, 0x14f }, |
| 763 | { 0x9003f, 0x630 }, |
| 764 | { 0x90040, 0x159 }, |
| 765 | { 0x90041, 0x47 }, |
| 766 | { 0x90042, 0x633 }, |
| 767 | { 0x90043, 0x149 }, |
| 768 | { 0x90044, 0x4f }, |
| 769 | { 0x90045, 0x633 }, |
| 770 | { 0x90046, 0x179 }, |
| 771 | { 0x90047, 0x8 }, |
| 772 | { 0x90048, 0xe0 }, |
| 773 | { 0x90049, 0x109 }, |
| 774 | { 0x9004a, 0x0 }, |
| 775 | { 0x9004b, 0x7c8 }, |
| 776 | { 0x9004c, 0x109 }, |
| 777 | { 0x9004d, 0x0 }, |
| 778 | { 0x9004e, 0x1 }, |
| 779 | { 0x9004f, 0x8 }, |
| 780 | { 0x90050, 0x0 }, |
| 781 | { 0x90051, 0x45a }, |
| 782 | { 0x90052, 0x9 }, |
| 783 | { 0x90053, 0x0 }, |
| 784 | { 0x90054, 0x448 }, |
| 785 | { 0x90055, 0x109 }, |
| 786 | { 0x90056, 0x40 }, |
| 787 | { 0x90057, 0x633 }, |
| 788 | { 0x90058, 0x179 }, |
| 789 | { 0x90059, 0x1 }, |
| 790 | { 0x9005a, 0x618 }, |
| 791 | { 0x9005b, 0x109 }, |
| 792 | { 0x9005c, 0x40c0 }, |
| 793 | { 0x9005d, 0x633 }, |
| 794 | { 0x9005e, 0x149 }, |
| 795 | { 0x9005f, 0x8 }, |
| 796 | { 0x90060, 0x4 }, |
| 797 | { 0x90061, 0x48 }, |
| 798 | { 0x90062, 0x4040 }, |
| 799 | { 0x90063, 0x633 }, |
| 800 | { 0x90064, 0x149 }, |
| 801 | { 0x90065, 0x0 }, |
| 802 | { 0x90066, 0x4 }, |
| 803 | { 0x90067, 0x48 }, |
| 804 | { 0x90068, 0x40 }, |
| 805 | { 0x90069, 0x633 }, |
| 806 | { 0x9006a, 0x149 }, |
| 807 | { 0x9006b, 0x10 }, |
| 808 | { 0x9006c, 0x4 }, |
| 809 | { 0x9006d, 0x18 }, |
| 810 | { 0x9006e, 0x0 }, |
| 811 | { 0x9006f, 0x4 }, |
| 812 | { 0x90070, 0x78 }, |
| 813 | { 0x90071, 0x549 }, |
| 814 | { 0x90072, 0x633 }, |
| 815 | { 0x90073, 0x159 }, |
| 816 | { 0x90074, 0xd49 }, |
| 817 | { 0x90075, 0x633 }, |
| 818 | { 0x90076, 0x159 }, |
| 819 | { 0x90077, 0x94a }, |
| 820 | { 0x90078, 0x633 }, |
| 821 | { 0x90079, 0x159 }, |
| 822 | { 0x9007a, 0x441 }, |
| 823 | { 0x9007b, 0x633 }, |
| 824 | { 0x9007c, 0x149 }, |
| 825 | { 0x9007d, 0x42 }, |
| 826 | { 0x9007e, 0x633 }, |
| 827 | { 0x9007f, 0x149 }, |
| 828 | { 0x90080, 0x1 }, |
| 829 | { 0x90081, 0x633 }, |
| 830 | { 0x90082, 0x149 }, |
| 831 | { 0x90083, 0x0 }, |
| 832 | { 0x90084, 0xe0 }, |
| 833 | { 0x90085, 0x109 }, |
| 834 | { 0x90086, 0xa }, |
| 835 | { 0x90087, 0x10 }, |
| 836 | { 0x90088, 0x109 }, |
| 837 | { 0x90089, 0x9 }, |
| 838 | { 0x9008a, 0x3c0 }, |
| 839 | { 0x9008b, 0x149 }, |
| 840 | { 0x9008c, 0x9 }, |
| 841 | { 0x9008d, 0x3c0 }, |
| 842 | { 0x9008e, 0x159 }, |
| 843 | { 0x9008f, 0x18 }, |
| 844 | { 0x90090, 0x10 }, |
| 845 | { 0x90091, 0x109 }, |
| 846 | { 0x90092, 0x0 }, |
| 847 | { 0x90093, 0x3c0 }, |
| 848 | { 0x90094, 0x109 }, |
| 849 | { 0x90095, 0x18 }, |
| 850 | { 0x90096, 0x4 }, |
| 851 | { 0x90097, 0x48 }, |
| 852 | { 0x90098, 0x18 }, |
| 853 | { 0x90099, 0x4 }, |
| 854 | { 0x9009a, 0x58 }, |
| 855 | { 0x9009b, 0xb }, |
| 856 | { 0x9009c, 0x10 }, |
| 857 | { 0x9009d, 0x109 }, |
| 858 | { 0x9009e, 0x1 }, |
| 859 | { 0x9009f, 0x10 }, |
| 860 | { 0x900a0, 0x109 }, |
| 861 | { 0x900a1, 0x5 }, |
| 862 | { 0x900a2, 0x7c0 }, |
| 863 | { 0x900a3, 0x109 }, |
| 864 | { 0x40000, 0x811 }, |
| 865 | { 0x40020, 0x880 }, |
| 866 | { 0x40040, 0x0 }, |
| 867 | { 0x40060, 0x0 }, |
| 868 | { 0x40001, 0x4008 }, |
| 869 | { 0x40021, 0x83 }, |
| 870 | { 0x40041, 0x4f }, |
| 871 | { 0x40061, 0x0 }, |
| 872 | { 0x40002, 0x4040 }, |
| 873 | { 0x40022, 0x83 }, |
| 874 | { 0x40042, 0x51 }, |
| 875 | { 0x40062, 0x0 }, |
| 876 | { 0x40003, 0x811 }, |
| 877 | { 0x40023, 0x880 }, |
| 878 | { 0x40043, 0x0 }, |
| 879 | { 0x40063, 0x0 }, |
| 880 | { 0x40004, 0x720 }, |
| 881 | { 0x40024, 0xf }, |
| 882 | { 0x40044, 0x1740 }, |
| 883 | { 0x40064, 0x0 }, |
| 884 | { 0x40005, 0x16 }, |
| 885 | { 0x40025, 0x83 }, |
| 886 | { 0x40045, 0x4b }, |
| 887 | { 0x40065, 0x0 }, |
| 888 | { 0x40006, 0x716 }, |
| 889 | { 0x40026, 0xf }, |
| 890 | { 0x40046, 0x2001 }, |
| 891 | { 0x40066, 0x0 }, |
| 892 | { 0x40007, 0x716 }, |
| 893 | { 0x40027, 0xf }, |
| 894 | { 0x40047, 0x2800 }, |
| 895 | { 0x40067, 0x0 }, |
| 896 | { 0x40008, 0x716 }, |
| 897 | { 0x40028, 0xf }, |
| 898 | { 0x40048, 0xf00 }, |
| 899 | { 0x40068, 0x0 }, |
| 900 | { 0x40009, 0x720 }, |
| 901 | { 0x40029, 0xf }, |
| 902 | { 0x40049, 0x1400 }, |
| 903 | { 0x40069, 0x0 }, |
| 904 | { 0x4000a, 0xe08 }, |
| 905 | { 0x4002a, 0xc15 }, |
| 906 | { 0x4004a, 0x0 }, |
| 907 | { 0x4006a, 0x0 }, |
| 908 | { 0x4000b, 0x625 }, |
| 909 | { 0x4002b, 0x15 }, |
| 910 | { 0x4004b, 0x0 }, |
| 911 | { 0x4006b, 0x0 }, |
| 912 | { 0x4000c, 0x4028 }, |
| 913 | { 0x4002c, 0x80 }, |
| 914 | { 0x4004c, 0x0 }, |
| 915 | { 0x4006c, 0x0 }, |
| 916 | { 0x4000d, 0xe08 }, |
| 917 | { 0x4002d, 0xc1a }, |
| 918 | { 0x4004d, 0x0 }, |
| 919 | { 0x4006d, 0x0 }, |
| 920 | { 0x4000e, 0x625 }, |
| 921 | { 0x4002e, 0x1a }, |
| 922 | { 0x4004e, 0x0 }, |
| 923 | { 0x4006e, 0x0 }, |
| 924 | { 0x4000f, 0x4040 }, |
| 925 | { 0x4002f, 0x80 }, |
| 926 | { 0x4004f, 0x0 }, |
| 927 | { 0x4006f, 0x0 }, |
| 928 | { 0x40010, 0x2604 }, |
| 929 | { 0x40030, 0x15 }, |
| 930 | { 0x40050, 0x0 }, |
| 931 | { 0x40070, 0x0 }, |
| 932 | { 0x40011, 0x708 }, |
| 933 | { 0x40031, 0x5 }, |
| 934 | { 0x40051, 0x0 }, |
| 935 | { 0x40071, 0x2002 }, |
| 936 | { 0x40012, 0x8 }, |
| 937 | { 0x40032, 0x80 }, |
| 938 | { 0x40052, 0x0 }, |
| 939 | { 0x40072, 0x0 }, |
| 940 | { 0x40013, 0x2604 }, |
| 941 | { 0x40033, 0x1a }, |
| 942 | { 0x40053, 0x0 }, |
| 943 | { 0x40073, 0x0 }, |
| 944 | { 0x40014, 0x708 }, |
| 945 | { 0x40034, 0xa }, |
| 946 | { 0x40054, 0x0 }, |
| 947 | { 0x40074, 0x2002 }, |
| 948 | { 0x40015, 0x4040 }, |
| 949 | { 0x40035, 0x80 }, |
| 950 | { 0x40055, 0x0 }, |
| 951 | { 0x40075, 0x0 }, |
| 952 | { 0x40016, 0x60a }, |
| 953 | { 0x40036, 0x15 }, |
| 954 | { 0x40056, 0x1200 }, |
| 955 | { 0x40076, 0x0 }, |
| 956 | { 0x40017, 0x61a }, |
| 957 | { 0x40037, 0x15 }, |
| 958 | { 0x40057, 0x1300 }, |
| 959 | { 0x40077, 0x0 }, |
| 960 | { 0x40018, 0x60a }, |
| 961 | { 0x40038, 0x1a }, |
| 962 | { 0x40058, 0x1200 }, |
| 963 | { 0x40078, 0x0 }, |
| 964 | { 0x40019, 0x642 }, |
| 965 | { 0x40039, 0x1a }, |
| 966 | { 0x40059, 0x1300 }, |
| 967 | { 0x40079, 0x0 }, |
| 968 | { 0x4001a, 0x4808 }, |
| 969 | { 0x4003a, 0x880 }, |
| 970 | { 0x4005a, 0x0 }, |
| 971 | { 0x4007a, 0x0 }, |
| 972 | { 0x900a4, 0x0 }, |
| 973 | { 0x900a5, 0x790 }, |
| 974 | { 0x900a6, 0x11a }, |
| 975 | { 0x900a7, 0x8 }, |
| 976 | { 0x900a8, 0x7aa }, |
| 977 | { 0x900a9, 0x2a }, |
| 978 | { 0x900aa, 0x10 }, |
| 979 | { 0x900ab, 0x7b2 }, |
| 980 | { 0x900ac, 0x2a }, |
| 981 | { 0x900ad, 0x0 }, |
| 982 | { 0x900ae, 0x7c8 }, |
| 983 | { 0x900af, 0x109 }, |
| 984 | { 0x900b0, 0x10 }, |
| 985 | { 0x900b1, 0x10 }, |
| 986 | { 0x900b2, 0x109 }, |
| 987 | { 0x900b3, 0x10 }, |
| 988 | { 0x900b4, 0x2a8 }, |
| 989 | { 0x900b5, 0x129 }, |
| 990 | { 0x900b6, 0x8 }, |
| 991 | { 0x900b7, 0x370 }, |
| 992 | { 0x900b8, 0x129 }, |
| 993 | { 0x900b9, 0xa }, |
| 994 | { 0x900ba, 0x3c8 }, |
| 995 | { 0x900bb, 0x1a9 }, |
| 996 | { 0x900bc, 0xc }, |
| 997 | { 0x900bd, 0x408 }, |
| 998 | { 0x900be, 0x199 }, |
| 999 | { 0x900bf, 0x14 }, |
| 1000 | { 0x900c0, 0x790 }, |
| 1001 | { 0x900c1, 0x11a }, |
| 1002 | { 0x900c2, 0x8 }, |
| 1003 | { 0x900c3, 0x4 }, |
| 1004 | { 0x900c4, 0x18 }, |
| 1005 | { 0x900c5, 0xe }, |
| 1006 | { 0x900c6, 0x408 }, |
| 1007 | { 0x900c7, 0x199 }, |
| 1008 | { 0x900c8, 0x8 }, |
| 1009 | { 0x900c9, 0x8568 }, |
| 1010 | { 0x900ca, 0x108 }, |
| 1011 | { 0x900cb, 0x18 }, |
| 1012 | { 0x900cc, 0x790 }, |
| 1013 | { 0x900cd, 0x16a }, |
| 1014 | { 0x900ce, 0x8 }, |
| 1015 | { 0x900cf, 0x1d8 }, |
| 1016 | { 0x900d0, 0x169 }, |
| 1017 | { 0x900d1, 0x10 }, |
| 1018 | { 0x900d2, 0x8558 }, |
| 1019 | { 0x900d3, 0x168 }, |
| 1020 | { 0x900d4, 0x70 }, |
| 1021 | { 0x900d5, 0x788 }, |
| 1022 | { 0x900d6, 0x16a }, |
| 1023 | { 0x900d7, 0x1ff8 }, |
| 1024 | { 0x900d8, 0x85a8 }, |
| 1025 | { 0x900d9, 0x1e8 }, |
| 1026 | { 0x900da, 0x50 }, |
| 1027 | { 0x900db, 0x798 }, |
| 1028 | { 0x900dc, 0x16a }, |
| 1029 | { 0x900dd, 0x60 }, |
| 1030 | { 0x900de, 0x7a0 }, |
| 1031 | { 0x900df, 0x16a }, |
| 1032 | { 0x900e0, 0x8 }, |
| 1033 | { 0x900e1, 0x8310 }, |
| 1034 | { 0x900e2, 0x168 }, |
| 1035 | { 0x900e3, 0x8 }, |
| 1036 | { 0x900e4, 0xa310 }, |
| 1037 | { 0x900e5, 0x168 }, |
| 1038 | { 0x900e6, 0xa }, |
| 1039 | { 0x900e7, 0x408 }, |
| 1040 | { 0x900e8, 0x169 }, |
| 1041 | { 0x900e9, 0x6e }, |
| 1042 | { 0x900ea, 0x0 }, |
| 1043 | { 0x900eb, 0x68 }, |
| 1044 | { 0x900ec, 0x0 }, |
| 1045 | { 0x900ed, 0x408 }, |
| 1046 | { 0x900ee, 0x169 }, |
| 1047 | { 0x900ef, 0x0 }, |
| 1048 | { 0x900f0, 0x8310 }, |
| 1049 | { 0x900f1, 0x168 }, |
| 1050 | { 0x900f2, 0x0 }, |
| 1051 | { 0x900f3, 0xa310 }, |
| 1052 | { 0x900f4, 0x168 }, |
| 1053 | { 0x900f5, 0x1ff8 }, |
| 1054 | { 0x900f6, 0x85a8 }, |
| 1055 | { 0x900f7, 0x1e8 }, |
| 1056 | { 0x900f8, 0x68 }, |
| 1057 | { 0x900f9, 0x798 }, |
| 1058 | { 0x900fa, 0x16a }, |
| 1059 | { 0x900fb, 0x78 }, |
| 1060 | { 0x900fc, 0x7a0 }, |
| 1061 | { 0x900fd, 0x16a }, |
| 1062 | { 0x900fe, 0x68 }, |
| 1063 | { 0x900ff, 0x790 }, |
| 1064 | { 0x90100, 0x16a }, |
| 1065 | { 0x90101, 0x8 }, |
| 1066 | { 0x90102, 0x8b10 }, |
| 1067 | { 0x90103, 0x168 }, |
| 1068 | { 0x90104, 0x8 }, |
| 1069 | { 0x90105, 0xab10 }, |
| 1070 | { 0x90106, 0x168 }, |
| 1071 | { 0x90107, 0xa }, |
| 1072 | { 0x90108, 0x408 }, |
| 1073 | { 0x90109, 0x169 }, |
| 1074 | { 0x9010a, 0x58 }, |
| 1075 | { 0x9010b, 0x0 }, |
| 1076 | { 0x9010c, 0x68 }, |
| 1077 | { 0x9010d, 0x0 }, |
| 1078 | { 0x9010e, 0x408 }, |
| 1079 | { 0x9010f, 0x169 }, |
| 1080 | { 0x90110, 0x0 }, |
| 1081 | { 0x90111, 0x8b10 }, |
| 1082 | { 0x90112, 0x168 }, |
| 1083 | { 0x90113, 0x1 }, |
| 1084 | { 0x90114, 0xab10 }, |
| 1085 | { 0x90115, 0x168 }, |
| 1086 | { 0x90116, 0x0 }, |
| 1087 | { 0x90117, 0x1d8 }, |
| 1088 | { 0x90118, 0x169 }, |
| 1089 | { 0x90119, 0x80 }, |
| 1090 | { 0x9011a, 0x790 }, |
| 1091 | { 0x9011b, 0x16a }, |
| 1092 | { 0x9011c, 0x18 }, |
| 1093 | { 0x9011d, 0x7aa }, |
| 1094 | { 0x9011e, 0x6a }, |
| 1095 | { 0x9011f, 0xa }, |
| 1096 | { 0x90120, 0x0 }, |
| 1097 | { 0x90121, 0x1e9 }, |
| 1098 | { 0x90122, 0x8 }, |
| 1099 | { 0x90123, 0x8080 }, |
| 1100 | { 0x90124, 0x108 }, |
| 1101 | { 0x90125, 0xf }, |
| 1102 | { 0x90126, 0x408 }, |
| 1103 | { 0x90127, 0x169 }, |
| 1104 | { 0x90128, 0xc }, |
| 1105 | { 0x90129, 0x0 }, |
| 1106 | { 0x9012a, 0x68 }, |
| 1107 | { 0x9012b, 0x9 }, |
| 1108 | { 0x9012c, 0x0 }, |
| 1109 | { 0x9012d, 0x1a9 }, |
| 1110 | { 0x9012e, 0x0 }, |
| 1111 | { 0x9012f, 0x408 }, |
| 1112 | { 0x90130, 0x169 }, |
| 1113 | { 0x90131, 0x0 }, |
| 1114 | { 0x90132, 0x8080 }, |
| 1115 | { 0x90133, 0x108 }, |
| 1116 | { 0x90134, 0x8 }, |
| 1117 | { 0x90135, 0x7aa }, |
| 1118 | { 0x90136, 0x6a }, |
| 1119 | { 0x90137, 0x0 }, |
| 1120 | { 0x90138, 0x8568 }, |
| 1121 | { 0x90139, 0x108 }, |
| 1122 | { 0x9013a, 0xb7 }, |
| 1123 | { 0x9013b, 0x790 }, |
| 1124 | { 0x9013c, 0x16a }, |
| 1125 | { 0x9013d, 0x1f }, |
| 1126 | { 0x9013e, 0x0 }, |
| 1127 | { 0x9013f, 0x68 }, |
| 1128 | { 0x90140, 0x8 }, |
| 1129 | { 0x90141, 0x8558 }, |
| 1130 | { 0x90142, 0x168 }, |
| 1131 | { 0x90143, 0xf }, |
| 1132 | { 0x90144, 0x408 }, |
| 1133 | { 0x90145, 0x169 }, |
| 1134 | { 0x90146, 0xd }, |
| 1135 | { 0x90147, 0x0 }, |
| 1136 | { 0x90148, 0x68 }, |
| 1137 | { 0x90149, 0x0 }, |
| 1138 | { 0x9014a, 0x408 }, |
| 1139 | { 0x9014b, 0x169 }, |
| 1140 | { 0x9014c, 0x0 }, |
| 1141 | { 0x9014d, 0x8558 }, |
| 1142 | { 0x9014e, 0x168 }, |
| 1143 | { 0x9014f, 0x8 }, |
| 1144 | { 0x90150, 0x3c8 }, |
| 1145 | { 0x90151, 0x1a9 }, |
| 1146 | { 0x90152, 0x3 }, |
| 1147 | { 0x90153, 0x370 }, |
| 1148 | { 0x90154, 0x129 }, |
| 1149 | { 0x90155, 0x20 }, |
| 1150 | { 0x90156, 0x2aa }, |
| 1151 | { 0x90157, 0x9 }, |
| 1152 | { 0x90158, 0x8 }, |
| 1153 | { 0x90159, 0xe8 }, |
| 1154 | { 0x9015a, 0x109 }, |
| 1155 | { 0x9015b, 0x0 }, |
| 1156 | { 0x9015c, 0x8140 }, |
| 1157 | { 0x9015d, 0x10c }, |
| 1158 | { 0x9015e, 0x10 }, |
| 1159 | { 0x9015f, 0x8138 }, |
| 1160 | { 0x90160, 0x104 }, |
| 1161 | { 0x90161, 0x8 }, |
| 1162 | { 0x90162, 0x448 }, |
| 1163 | { 0x90163, 0x109 }, |
| 1164 | { 0x90164, 0xf }, |
| 1165 | { 0x90165, 0x7c0 }, |
| 1166 | { 0x90166, 0x109 }, |
| 1167 | { 0x90167, 0x0 }, |
| 1168 | { 0x90168, 0xe8 }, |
| 1169 | { 0x90169, 0x109 }, |
| 1170 | { 0x9016a, 0x47 }, |
| 1171 | { 0x9016b, 0x630 }, |
| 1172 | { 0x9016c, 0x109 }, |
| 1173 | { 0x9016d, 0x8 }, |
| 1174 | { 0x9016e, 0x618 }, |
| 1175 | { 0x9016f, 0x109 }, |
| 1176 | { 0x90170, 0x8 }, |
| 1177 | { 0x90171, 0xe0 }, |
| 1178 | { 0x90172, 0x109 }, |
| 1179 | { 0x90173, 0x0 }, |
| 1180 | { 0x90174, 0x7c8 }, |
| 1181 | { 0x90175, 0x109 }, |
| 1182 | { 0x90176, 0x8 }, |
| 1183 | { 0x90177, 0x8140 }, |
| 1184 | { 0x90178, 0x10c }, |
| 1185 | { 0x90179, 0x0 }, |
| 1186 | { 0x9017a, 0x478 }, |
| 1187 | { 0x9017b, 0x109 }, |
| 1188 | { 0x9017c, 0x0 }, |
| 1189 | { 0x9017d, 0x1 }, |
| 1190 | { 0x9017e, 0x8 }, |
| 1191 | { 0x9017f, 0x8 }, |
| 1192 | { 0x90180, 0x4 }, |
| 1193 | { 0x90181, 0x0 }, |
| 1194 | { 0x90006, 0x8 }, |
| 1195 | { 0x90007, 0x7c8 }, |
| 1196 | { 0x90008, 0x109 }, |
| 1197 | { 0x90009, 0x0 }, |
| 1198 | { 0x9000a, 0x400 }, |
| 1199 | { 0x9000b, 0x106 }, |
| 1200 | { 0xd00e7, 0x400 }, |
| 1201 | { 0x90017, 0x0 }, |
| 1202 | { 0x9001f, 0x29 }, |
| 1203 | { 0x90026, 0x68 }, |
| 1204 | { 0x400d0, 0x0 }, |
| 1205 | { 0x400d1, 0x101 }, |
| 1206 | { 0x400d2, 0x105 }, |
| 1207 | { 0x400d3, 0x107 }, |
| 1208 | { 0x400d4, 0x10f }, |
| 1209 | { 0x400d5, 0x202 }, |
| 1210 | { 0x400d6, 0x20a }, |
| 1211 | { 0x400d7, 0x20b }, |
| 1212 | { 0x2003a, 0x2 }, |
| 1213 | { 0x200be, 0x3 }, |
| 1214 | { 0x2000b, 0x34b }, |
| 1215 | { 0x2000c, 0xbb }, |
| 1216 | { 0x2000d, 0x753 }, |
| 1217 | { 0x2000e, 0x2c }, |
| 1218 | { 0x12000b, 0x70 }, |
| 1219 | { 0x12000c, 0x19 }, |
| 1220 | { 0x12000d, 0xfa }, |
| 1221 | { 0x12000e, 0x10 }, |
| 1222 | { 0x22000b, 0x1c }, |
| 1223 | { 0x22000c, 0x6 }, |
| 1224 | { 0x22000d, 0x3e }, |
| 1225 | { 0x22000e, 0x10 }, |
| 1226 | { 0x9000c, 0x0 }, |
| 1227 | { 0x9000d, 0x173 }, |
| 1228 | { 0x9000e, 0x60 }, |
| 1229 | { 0x9000f, 0x6110 }, |
| 1230 | { 0x90010, 0x2152 }, |
| 1231 | { 0x90011, 0xdfbd }, |
| 1232 | { 0x90012, 0x2060 }, |
| 1233 | { 0x90013, 0x6152 }, |
| 1234 | { 0x20010, 0x5a }, |
| 1235 | { 0x20011, 0x3 }, |
| 1236 | { 0x40080, 0xe0 }, |
| 1237 | { 0x40081, 0x12 }, |
| 1238 | { 0x40082, 0xe0 }, |
| 1239 | { 0x40083, 0x12 }, |
| 1240 | { 0x40084, 0xe0 }, |
| 1241 | { 0x40085, 0x12 }, |
| 1242 | { 0x140080, 0xe0 }, |
| 1243 | { 0x140081, 0x12 }, |
| 1244 | { 0x140082, 0xe0 }, |
| 1245 | { 0x140083, 0x12 }, |
| 1246 | { 0x140084, 0xe0 }, |
| 1247 | { 0x140085, 0x12 }, |
| 1248 | { 0x240080, 0xe0 }, |
| 1249 | { 0x240081, 0x12 }, |
| 1250 | { 0x240082, 0xe0 }, |
| 1251 | { 0x240083, 0x12 }, |
| 1252 | { 0x240084, 0xe0 }, |
| 1253 | { 0x240085, 0x12 }, |
| 1254 | { 0x400fd, 0xf }, |
| 1255 | { 0x10011, 0x1 }, |
| 1256 | { 0x10012, 0x1 }, |
| 1257 | { 0x10013, 0x180 }, |
| 1258 | { 0x10018, 0x1 }, |
| 1259 | { 0x10002, 0x6209 }, |
| 1260 | { 0x100b2, 0x1 }, |
| 1261 | { 0x101b4, 0x1 }, |
| 1262 | { 0x102b4, 0x1 }, |
| 1263 | { 0x103b4, 0x1 }, |
| 1264 | { 0x104b4, 0x1 }, |
| 1265 | { 0x105b4, 0x1 }, |
| 1266 | { 0x106b4, 0x1 }, |
| 1267 | { 0x107b4, 0x1 }, |
| 1268 | { 0x108b4, 0x1 }, |
| 1269 | { 0x11011, 0x1 }, |
| 1270 | { 0x11012, 0x1 }, |
| 1271 | { 0x11013, 0x180 }, |
| 1272 | { 0x11018, 0x1 }, |
| 1273 | { 0x11002, 0x6209 }, |
| 1274 | { 0x110b2, 0x1 }, |
| 1275 | { 0x111b4, 0x1 }, |
| 1276 | { 0x112b4, 0x1 }, |
| 1277 | { 0x113b4, 0x1 }, |
| 1278 | { 0x114b4, 0x1 }, |
| 1279 | { 0x115b4, 0x1 }, |
| 1280 | { 0x116b4, 0x1 }, |
| 1281 | { 0x117b4, 0x1 }, |
| 1282 | { 0x118b4, 0x1 }, |
| 1283 | { 0x12011, 0x1 }, |
| 1284 | { 0x12012, 0x1 }, |
| 1285 | { 0x12013, 0x180 }, |
| 1286 | { 0x12018, 0x1 }, |
| 1287 | { 0x12002, 0x6209 }, |
| 1288 | { 0x120b2, 0x1 }, |
| 1289 | { 0x121b4, 0x1 }, |
| 1290 | { 0x122b4, 0x1 }, |
| 1291 | { 0x123b4, 0x1 }, |
| 1292 | { 0x124b4, 0x1 }, |
| 1293 | { 0x125b4, 0x1 }, |
| 1294 | { 0x126b4, 0x1 }, |
| 1295 | { 0x127b4, 0x1 }, |
| 1296 | { 0x128b4, 0x1 }, |
| 1297 | { 0x13011, 0x1 }, |
| 1298 | { 0x13012, 0x1 }, |
| 1299 | { 0x13013, 0x180 }, |
| 1300 | { 0x13018, 0x1 }, |
| 1301 | { 0x13002, 0x6209 }, |
| 1302 | { 0x130b2, 0x1 }, |
| 1303 | { 0x131b4, 0x1 }, |
| 1304 | { 0x132b4, 0x1 }, |
| 1305 | { 0x133b4, 0x1 }, |
| 1306 | { 0x134b4, 0x1 }, |
| 1307 | { 0x135b4, 0x1 }, |
| 1308 | { 0x136b4, 0x1 }, |
| 1309 | { 0x137b4, 0x1 }, |
| 1310 | { 0x138b4, 0x1 }, |
| 1311 | { 0x20089, 0x1 }, |
| 1312 | { 0x20088, 0x19 }, |
| 1313 | { 0xc0080, 0x2 }, |
| 1314 | { 0xd0000, 0x1 } |
| 1315 | }; |
| 1316 | |
| 1317 | /* |
Tim Harvey | 08ac93c | 2023-06-09 09:54:51 -0700 | [diff] [blame] | 1318 | * Generated code from MX8M_DDR_tool v3.30 using MX8MP Plus RPAv9 |
| 1319 | * - 1GiB: ixm8mp-gw7020 1x Micron MT53E256M32D2DS 2-ch single-die per channel |
| 1320 | */ |
| 1321 | struct dram_cfg_param ddr_ddrc_cfg_1gb_single_die[] = { |
| 1322 | /** Initialize DDRC registers **/ |
| 1323 | { 0x3d400304, 0x1 }, |
| 1324 | { 0x3d400030, 0x1 }, |
| 1325 | { 0x3d400000, 0xa1080020 }, |
| 1326 | { 0x3d400020, 0x1203 }, |
| 1327 | { 0x3d400024, 0x16e3600 }, |
| 1328 | { 0x3d400064, 0x5b0087 }, |
| 1329 | { 0x3d400070, 0x7027f90 }, |
| 1330 | { 0x3d400074, 0x790 }, |
| 1331 | { 0x3d4000d0, 0xc00305ba }, |
| 1332 | { 0x3d4000d4, 0x940000 }, |
| 1333 | { 0x3d4000dc, 0xd4002d }, |
| 1334 | { 0x3d4000e0, 0x310000 }, |
| 1335 | { 0x3d4000e8, 0x660048 }, |
| 1336 | { 0x3d4000ec, 0x160048 }, |
| 1337 | { 0x3d400100, 0x191e1920 }, |
| 1338 | { 0x3d400104, 0x60630 }, |
| 1339 | { 0x3d40010c, 0xb0b000 }, |
| 1340 | { 0x3d400110, 0xe04080e }, |
| 1341 | { 0x3d400114, 0x2040c0c }, |
| 1342 | { 0x3d400118, 0x1010007 }, |
| 1343 | { 0x3d40011c, 0x402 }, |
| 1344 | { 0x3d400130, 0x20600 }, |
| 1345 | { 0x3d400134, 0xc100002 }, |
| 1346 | { 0x3d400138, 0x8d }, |
| 1347 | { 0x3d400144, 0x96004b }, |
| 1348 | { 0x3d400180, 0x2ee0017 }, |
| 1349 | { 0x3d400184, 0x2605b8e }, |
| 1350 | { 0x3d400188, 0x0 }, |
| 1351 | { 0x3d400190, 0x497820a }, |
| 1352 | { 0x3d400194, 0x80303 }, |
| 1353 | { 0x3d4001b4, 0x170a }, |
| 1354 | { 0x3d4001a0, 0xe0400018 }, |
| 1355 | { 0x3d4001a4, 0xdf00e4 }, |
| 1356 | { 0x3d4001a8, 0x80000000 }, |
| 1357 | { 0x3d4001b0, 0x11 }, |
| 1358 | { 0x3d4001c0, 0x1 }, |
| 1359 | { 0x3d4001c4, 0x1 }, |
| 1360 | { 0x3d4000f4, 0x699 }, |
| 1361 | { 0x3d400108, 0x70e1617 }, |
| 1362 | { 0x3d400200, 0x1f }, |
| 1363 | { 0x3d400208, 0x0 }, |
| 1364 | { 0x3d40020c, 0x0 }, |
| 1365 | { 0x3d400210, 0x1f1f }, |
| 1366 | { 0x3d400204, 0x80808 }, |
| 1367 | { 0x3d400214, 0x7070707 }, |
| 1368 | { 0x3d400218, 0xf070707 }, |
| 1369 | { 0x3d40021c, 0xf0f }, |
| 1370 | { 0x3d400250, 0x1705 }, |
| 1371 | { 0x3d400254, 0x2c }, |
| 1372 | { 0x3d40025c, 0x4000030 }, |
| 1373 | { 0x3d400264, 0x900093e7 }, |
| 1374 | { 0x3d40026c, 0x2005574 }, |
| 1375 | { 0x3d400400, 0x111 }, |
| 1376 | { 0x3d400404, 0x72ff }, |
| 1377 | { 0x3d400408, 0x72ff }, |
| 1378 | { 0x3d400494, 0x2100e07 }, |
| 1379 | { 0x3d400498, 0x620096 }, |
| 1380 | { 0x3d40049c, 0x1100e07 }, |
| 1381 | { 0x3d4004a0, 0xc8012c }, |
| 1382 | { 0x3d402020, 0x1001 }, |
| 1383 | { 0x3d402024, 0x30d400 }, |
| 1384 | { 0x3d402050, 0x20d000 }, |
| 1385 | { 0x3d402064, 0xc0012 }, |
| 1386 | { 0x3d4020dc, 0x840000 }, |
| 1387 | { 0x3d4020e0, 0x330000 }, |
| 1388 | { 0x3d4020e8, 0x660048 }, |
| 1389 | { 0x3d4020ec, 0x160048 }, |
| 1390 | { 0x3d402100, 0xa040305 }, |
| 1391 | { 0x3d402104, 0x30407 }, |
| 1392 | { 0x3d402108, 0x203060b }, |
| 1393 | { 0x3d40210c, 0x505000 }, |
| 1394 | { 0x3d402110, 0x2040202 }, |
| 1395 | { 0x3d402114, 0x2030202 }, |
| 1396 | { 0x3d402118, 0x1010004 }, |
| 1397 | { 0x3d40211c, 0x302 }, |
| 1398 | { 0x3d402130, 0x20300 }, |
| 1399 | { 0x3d402134, 0xa100002 }, |
| 1400 | { 0x3d402138, 0x13 }, |
| 1401 | { 0x3d402144, 0x14000a }, |
| 1402 | { 0x3d402180, 0x640004 }, |
| 1403 | { 0x3d402190, 0x3818200 }, |
| 1404 | { 0x3d402194, 0x80303 }, |
| 1405 | { 0x3d4021b4, 0x100 }, |
| 1406 | { 0x3d4020f4, 0x599 }, |
| 1407 | { 0x3d403020, 0x1001 }, |
| 1408 | { 0x3d403024, 0xc3500 }, |
| 1409 | { 0x3d403050, 0x20d000 }, |
| 1410 | { 0x3d403064, 0x30005 }, |
| 1411 | { 0x3d4030dc, 0x840000 }, |
| 1412 | { 0x3d4030e0, 0x330000 }, |
| 1413 | { 0x3d4030e8, 0x660048 }, |
| 1414 | { 0x3d4030ec, 0x160048 }, |
| 1415 | { 0x3d403100, 0xa010102 }, |
| 1416 | { 0x3d403104, 0x30404 }, |
| 1417 | { 0x3d403108, 0x203060b }, |
| 1418 | { 0x3d40310c, 0x505000 }, |
| 1419 | { 0x3d403110, 0x2040202 }, |
| 1420 | { 0x3d403114, 0x2030202 }, |
| 1421 | { 0x3d403118, 0x1010004 }, |
| 1422 | { 0x3d40311c, 0x302 }, |
| 1423 | { 0x3d403130, 0x20300 }, |
| 1424 | { 0x3d403134, 0xa100002 }, |
| 1425 | { 0x3d403138, 0x5 }, |
| 1426 | { 0x3d403144, 0x50003 }, |
| 1427 | { 0x3d403180, 0x190004 }, |
| 1428 | { 0x3d403190, 0x3818200 }, |
| 1429 | { 0x3d403194, 0x80303 }, |
| 1430 | { 0x3d4031b4, 0x100 }, |
| 1431 | { 0x3d4030f4, 0x599 }, |
| 1432 | { 0x3d400028, 0x0 }, |
| 1433 | }; |
| 1434 | |
| 1435 | /* PHY Initialize Configuration */ |
| 1436 | struct dram_cfg_param ddr_ddrphy_cfg_1gb_single_die[] = { |
| 1437 | { 0x100a0, 0x0 }, |
| 1438 | { 0x100a1, 0x1 }, |
| 1439 | { 0x100a2, 0x3 }, |
| 1440 | { 0x100a3, 0x2 }, |
| 1441 | { 0x100a4, 0x5 }, |
| 1442 | { 0x100a5, 0x4 }, |
| 1443 | { 0x100a6, 0x7 }, |
| 1444 | { 0x100a7, 0x6 }, |
| 1445 | { 0x110a0, 0x0 }, |
| 1446 | { 0x110a1, 0x1 }, |
| 1447 | { 0x110a2, 0x2 }, |
| 1448 | { 0x110a3, 0x3 }, |
| 1449 | { 0x110a4, 0x4 }, |
| 1450 | { 0x110a5, 0x5 }, |
| 1451 | { 0x110a6, 0x6 }, |
| 1452 | { 0x110a7, 0x7 }, |
| 1453 | { 0x120a0, 0x0 }, |
| 1454 | { 0x120a1, 0x1 }, |
| 1455 | { 0x120a2, 0x2 }, |
| 1456 | { 0x120a3, 0x3 }, |
| 1457 | { 0x120a4, 0x4 }, |
| 1458 | { 0x120a5, 0x5 }, |
| 1459 | { 0x120a6, 0x6 }, |
| 1460 | { 0x120a7, 0x7 }, |
| 1461 | { 0x130a0, 0x0 }, |
| 1462 | { 0x130a1, 0x1 }, |
| 1463 | { 0x130a2, 0x3 }, |
| 1464 | { 0x130a3, 0x4 }, |
| 1465 | { 0x130a4, 0x5 }, |
| 1466 | { 0x130a5, 0x2 }, |
| 1467 | { 0x130a6, 0x7 }, |
| 1468 | { 0x130a7, 0x6 }, |
| 1469 | { 0x1005f, 0x1ff }, |
| 1470 | { 0x1015f, 0x1ff }, |
| 1471 | { 0x1105f, 0x1ff }, |
| 1472 | { 0x1115f, 0x1ff }, |
| 1473 | { 0x1205f, 0x1ff }, |
| 1474 | { 0x1215f, 0x1ff }, |
| 1475 | { 0x1305f, 0x1ff }, |
| 1476 | { 0x1315f, 0x1ff }, |
| 1477 | { 0x11005f, 0x1ff }, |
| 1478 | { 0x11015f, 0x1ff }, |
| 1479 | { 0x11105f, 0x1ff }, |
| 1480 | { 0x11115f, 0x1ff }, |
| 1481 | { 0x11205f, 0x1ff }, |
| 1482 | { 0x11215f, 0x1ff }, |
| 1483 | { 0x11305f, 0x1ff }, |
| 1484 | { 0x11315f, 0x1ff }, |
| 1485 | { 0x21005f, 0x1ff }, |
| 1486 | { 0x21015f, 0x1ff }, |
| 1487 | { 0x21105f, 0x1ff }, |
| 1488 | { 0x21115f, 0x1ff }, |
| 1489 | { 0x21205f, 0x1ff }, |
| 1490 | { 0x21215f, 0x1ff }, |
| 1491 | { 0x21305f, 0x1ff }, |
| 1492 | { 0x21315f, 0x1ff }, |
| 1493 | { 0x55, 0x1ff }, |
| 1494 | { 0x1055, 0x1ff }, |
| 1495 | { 0x2055, 0x1ff }, |
| 1496 | { 0x3055, 0x1ff }, |
| 1497 | { 0x4055, 0x1ff }, |
| 1498 | { 0x5055, 0x1ff }, |
| 1499 | { 0x6055, 0x1ff }, |
| 1500 | { 0x7055, 0x1ff }, |
| 1501 | { 0x8055, 0x1ff }, |
| 1502 | { 0x9055, 0x1ff }, |
| 1503 | { 0x200c5, 0x19 }, |
| 1504 | { 0x1200c5, 0x7 }, |
| 1505 | { 0x2200c5, 0x7 }, |
| 1506 | { 0x2002e, 0x2 }, |
| 1507 | { 0x12002e, 0x2 }, |
| 1508 | { 0x22002e, 0x2 }, |
| 1509 | { 0x90204, 0x0 }, |
| 1510 | { 0x190204, 0x0 }, |
| 1511 | { 0x290204, 0x0 }, |
| 1512 | { 0x20024, 0x1a3 }, |
| 1513 | { 0x2003a, 0x2 }, |
| 1514 | { 0x120024, 0x1a3 }, |
| 1515 | { 0x2003a, 0x2 }, |
| 1516 | { 0x220024, 0x1a3 }, |
| 1517 | { 0x2003a, 0x2 }, |
| 1518 | { 0x20056, 0x3 }, |
| 1519 | { 0x120056, 0x3 }, |
| 1520 | { 0x220056, 0x3 }, |
| 1521 | { 0x1004d, 0xe00 }, |
| 1522 | { 0x1014d, 0xe00 }, |
| 1523 | { 0x1104d, 0xe00 }, |
| 1524 | { 0x1114d, 0xe00 }, |
| 1525 | { 0x1204d, 0xe00 }, |
| 1526 | { 0x1214d, 0xe00 }, |
| 1527 | { 0x1304d, 0xe00 }, |
| 1528 | { 0x1314d, 0xe00 }, |
| 1529 | { 0x11004d, 0xe00 }, |
| 1530 | { 0x11014d, 0xe00 }, |
| 1531 | { 0x11104d, 0xe00 }, |
| 1532 | { 0x11114d, 0xe00 }, |
| 1533 | { 0x11204d, 0xe00 }, |
| 1534 | { 0x11214d, 0xe00 }, |
| 1535 | { 0x11304d, 0xe00 }, |
| 1536 | { 0x11314d, 0xe00 }, |
| 1537 | { 0x21004d, 0xe00 }, |
| 1538 | { 0x21014d, 0xe00 }, |
| 1539 | { 0x21104d, 0xe00 }, |
| 1540 | { 0x21114d, 0xe00 }, |
| 1541 | { 0x21204d, 0xe00 }, |
| 1542 | { 0x21214d, 0xe00 }, |
| 1543 | { 0x21304d, 0xe00 }, |
| 1544 | { 0x21314d, 0xe00 }, |
| 1545 | { 0x10049, 0xeba }, |
| 1546 | { 0x10149, 0xeba }, |
| 1547 | { 0x11049, 0xeba }, |
| 1548 | { 0x11149, 0xeba }, |
| 1549 | { 0x12049, 0xeba }, |
| 1550 | { 0x12149, 0xeba }, |
| 1551 | { 0x13049, 0xeba }, |
| 1552 | { 0x13149, 0xeba }, |
| 1553 | { 0x110049, 0xeba }, |
| 1554 | { 0x110149, 0xeba }, |
| 1555 | { 0x111049, 0xeba }, |
| 1556 | { 0x111149, 0xeba }, |
| 1557 | { 0x112049, 0xeba }, |
| 1558 | { 0x112149, 0xeba }, |
| 1559 | { 0x113049, 0xeba }, |
| 1560 | { 0x113149, 0xeba }, |
| 1561 | { 0x210049, 0xeba }, |
| 1562 | { 0x210149, 0xeba }, |
| 1563 | { 0x211049, 0xeba }, |
| 1564 | { 0x211149, 0xeba }, |
| 1565 | { 0x212049, 0xeba }, |
| 1566 | { 0x212149, 0xeba }, |
| 1567 | { 0x213049, 0xeba }, |
| 1568 | { 0x213149, 0xeba }, |
| 1569 | { 0x43, 0x63 }, |
| 1570 | { 0x1043, 0x63 }, |
| 1571 | { 0x2043, 0x63 }, |
| 1572 | { 0x3043, 0x63 }, |
| 1573 | { 0x4043, 0x63 }, |
| 1574 | { 0x5043, 0x63 }, |
| 1575 | { 0x6043, 0x63 }, |
| 1576 | { 0x7043, 0x63 }, |
| 1577 | { 0x8043, 0x63 }, |
| 1578 | { 0x9043, 0x63 }, |
| 1579 | { 0x20018, 0x3 }, |
| 1580 | { 0x20075, 0x4 }, |
| 1581 | { 0x20050, 0x0 }, |
| 1582 | { 0x20008, 0x2ee }, |
| 1583 | { 0x120008, 0x64 }, |
| 1584 | { 0x220008, 0x19 }, |
| 1585 | { 0x20088, 0x9 }, |
| 1586 | { 0x200b2, 0x104 }, |
| 1587 | { 0x10043, 0x5a1 }, |
| 1588 | { 0x10143, 0x5a1 }, |
| 1589 | { 0x11043, 0x5a1 }, |
| 1590 | { 0x11143, 0x5a1 }, |
| 1591 | { 0x12043, 0x5a1 }, |
| 1592 | { 0x12143, 0x5a1 }, |
| 1593 | { 0x13043, 0x5a1 }, |
| 1594 | { 0x13143, 0x5a1 }, |
| 1595 | { 0x1200b2, 0x104 }, |
| 1596 | { 0x110043, 0x5a1 }, |
| 1597 | { 0x110143, 0x5a1 }, |
| 1598 | { 0x111043, 0x5a1 }, |
| 1599 | { 0x111143, 0x5a1 }, |
| 1600 | { 0x112043, 0x5a1 }, |
| 1601 | { 0x112143, 0x5a1 }, |
| 1602 | { 0x113043, 0x5a1 }, |
| 1603 | { 0x113143, 0x5a1 }, |
| 1604 | { 0x2200b2, 0x104 }, |
| 1605 | { 0x210043, 0x5a1 }, |
| 1606 | { 0x210143, 0x5a1 }, |
| 1607 | { 0x211043, 0x5a1 }, |
| 1608 | { 0x211143, 0x5a1 }, |
| 1609 | { 0x212043, 0x5a1 }, |
| 1610 | { 0x212143, 0x5a1 }, |
| 1611 | { 0x213043, 0x5a1 }, |
| 1612 | { 0x213143, 0x5a1 }, |
| 1613 | { 0x200fa, 0x1 }, |
| 1614 | { 0x1200fa, 0x1 }, |
| 1615 | { 0x2200fa, 0x1 }, |
| 1616 | { 0x20019, 0x1 }, |
| 1617 | { 0x120019, 0x1 }, |
| 1618 | { 0x220019, 0x1 }, |
| 1619 | { 0x200f0, 0x660 }, |
| 1620 | { 0x200f1, 0x0 }, |
| 1621 | { 0x200f2, 0x4444 }, |
| 1622 | { 0x200f3, 0x8888 }, |
| 1623 | { 0x200f4, 0x5665 }, |
| 1624 | { 0x200f5, 0x0 }, |
| 1625 | { 0x200f6, 0x0 }, |
| 1626 | { 0x200f7, 0xf000 }, |
| 1627 | { 0x20025, 0x0 }, |
| 1628 | { 0x2002d, 0x0 }, |
| 1629 | { 0x12002d, 0x0 }, |
| 1630 | { 0x22002d, 0x0 }, |
| 1631 | { 0x2007d, 0x212 }, |
| 1632 | { 0x12007d, 0x212 }, |
| 1633 | { 0x22007d, 0x212 }, |
| 1634 | { 0x2007c, 0x61 }, |
| 1635 | { 0x12007c, 0x61 }, |
| 1636 | { 0x22007c, 0x61 }, |
| 1637 | { 0x1004a, 0x500 }, |
| 1638 | { 0x1104a, 0x500 }, |
| 1639 | { 0x1204a, 0x500 }, |
| 1640 | { 0x1304a, 0x500 }, |
| 1641 | { 0x2002c, 0x0 }, |
| 1642 | }; |
| 1643 | |
| 1644 | /* P0 message block paremeter for training firmware */ |
| 1645 | struct dram_cfg_param ddr_fsp0_cfg_1gb_single_die[] = { |
| 1646 | { 0xd0000, 0x0 }, |
| 1647 | { 0x54003, 0xbb8 }, |
| 1648 | { 0x54004, 0x2 }, |
| 1649 | { 0x54005, 0x2228 }, |
| 1650 | { 0x54006, 0x14 }, |
| 1651 | { 0x54008, 0x131f }, |
| 1652 | { 0x54009, 0xc8 }, |
| 1653 | { 0x5400b, 0x2 }, |
| 1654 | { 0x5400f, 0x100 }, |
| 1655 | { 0x54012, 0x110 }, |
| 1656 | { 0x54019, 0x2dd4 }, |
| 1657 | { 0x5401a, 0x31 }, |
| 1658 | { 0x5401b, 0x4866 }, |
| 1659 | { 0x5401c, 0x4800 }, |
| 1660 | { 0x5401e, 0x16 }, |
| 1661 | { 0x5401f, 0x2dd4 }, |
| 1662 | { 0x54020, 0x31 }, |
| 1663 | { 0x54021, 0x4866 }, |
| 1664 | { 0x54022, 0x4800 }, |
| 1665 | { 0x54024, 0x16 }, |
| 1666 | { 0x5402b, 0x1000 }, |
| 1667 | { 0x5402c, 0x1 }, |
| 1668 | { 0x54032, 0xd400 }, |
| 1669 | { 0x54033, 0x312d }, |
| 1670 | { 0x54034, 0x6600 }, |
| 1671 | { 0x54035, 0x48 }, |
| 1672 | { 0x54036, 0x48 }, |
| 1673 | { 0x54037, 0x1600 }, |
| 1674 | { 0x54038, 0xd400 }, |
| 1675 | { 0x54039, 0x312d }, |
| 1676 | { 0x5403a, 0x6600 }, |
| 1677 | { 0x5403b, 0x48 }, |
| 1678 | { 0x5403c, 0x48 }, |
| 1679 | { 0x5403d, 0x1600 }, |
| 1680 | { 0xd0000, 0x1 }, |
| 1681 | }; |
| 1682 | |
| 1683 | /* P1 message block paremeter for training firmware */ |
| 1684 | struct dram_cfg_param ddr_fsp1_cfg_1gb_single_die[] = { |
| 1685 | { 0xd0000, 0x0 }, |
| 1686 | { 0x54002, 0x101 }, |
| 1687 | { 0x54003, 0x190 }, |
| 1688 | { 0x54004, 0x2 }, |
| 1689 | { 0x54005, 0x2228 }, |
| 1690 | { 0x54006, 0x14 }, |
| 1691 | { 0x54008, 0x121f }, |
| 1692 | { 0x54009, 0xc8 }, |
| 1693 | { 0x5400b, 0x2 }, |
| 1694 | { 0x5400f, 0x100 }, |
| 1695 | { 0x54012, 0x110 }, |
| 1696 | { 0x54019, 0x84 }, |
| 1697 | { 0x5401a, 0x33 }, |
| 1698 | { 0x5401b, 0x4866 }, |
| 1699 | { 0x5401c, 0x4800 }, |
| 1700 | { 0x5401e, 0x16 }, |
| 1701 | { 0x5401f, 0x84 }, |
| 1702 | { 0x54020, 0x33 }, |
| 1703 | { 0x54021, 0x4866 }, |
| 1704 | { 0x54022, 0x4800 }, |
| 1705 | { 0x54024, 0x16 }, |
| 1706 | { 0x5402b, 0x1000 }, |
| 1707 | { 0x5402c, 0x1 }, |
| 1708 | { 0x54032, 0x8400 }, |
| 1709 | { 0x54033, 0x3300 }, |
| 1710 | { 0x54034, 0x6600 }, |
| 1711 | { 0x54035, 0x48 }, |
| 1712 | { 0x54036, 0x48 }, |
| 1713 | { 0x54037, 0x1600 }, |
| 1714 | { 0x54038, 0x8400 }, |
| 1715 | { 0x54039, 0x3300 }, |
| 1716 | { 0x5403a, 0x6600 }, |
| 1717 | { 0x5403b, 0x48 }, |
| 1718 | { 0x5403c, 0x48 }, |
| 1719 | { 0x5403d, 0x1600 }, |
| 1720 | { 0xd0000, 0x1 }, |
| 1721 | }; |
| 1722 | |
| 1723 | /* P2 message block paremeter for training firmware */ |
| 1724 | struct dram_cfg_param ddr_fsp2_cfg_1gb_single_die[] = { |
| 1725 | { 0xd0000, 0x0 }, |
| 1726 | { 0x54002, 0x102 }, |
| 1727 | { 0x54003, 0x64 }, |
| 1728 | { 0x54004, 0x2 }, |
| 1729 | { 0x54005, 0x2228 }, |
| 1730 | { 0x54006, 0x14 }, |
| 1731 | { 0x54008, 0x121f }, |
| 1732 | { 0x54009, 0xc8 }, |
| 1733 | { 0x5400b, 0x2 }, |
| 1734 | { 0x5400f, 0x100 }, |
| 1735 | { 0x54012, 0x110 }, |
| 1736 | { 0x54019, 0x84 }, |
| 1737 | { 0x5401a, 0x33 }, |
| 1738 | { 0x5401b, 0x4866 }, |
| 1739 | { 0x5401c, 0x4800 }, |
| 1740 | { 0x5401e, 0x16 }, |
| 1741 | { 0x5401f, 0x84 }, |
| 1742 | { 0x54020, 0x33 }, |
| 1743 | { 0x54021, 0x4866 }, |
| 1744 | { 0x54022, 0x4800 }, |
| 1745 | { 0x54024, 0x16 }, |
| 1746 | { 0x5402b, 0x1000 }, |
| 1747 | { 0x5402c, 0x1 }, |
| 1748 | { 0x54032, 0x8400 }, |
| 1749 | { 0x54033, 0x3300 }, |
| 1750 | { 0x54034, 0x6600 }, |
| 1751 | { 0x54035, 0x48 }, |
| 1752 | { 0x54036, 0x48 }, |
| 1753 | { 0x54037, 0x1600 }, |
| 1754 | { 0x54038, 0x8400 }, |
| 1755 | { 0x54039, 0x3300 }, |
| 1756 | { 0x5403a, 0x6600 }, |
| 1757 | { 0x5403b, 0x48 }, |
| 1758 | { 0x5403c, 0x48 }, |
| 1759 | { 0x5403d, 0x1600 }, |
| 1760 | { 0xd0000, 0x1 }, |
| 1761 | }; |
| 1762 | |
| 1763 | /* P0 2D message block paremeter for training firmware */ |
| 1764 | struct dram_cfg_param ddr_fsp0_2d_cfg_1gb_single_die[] = { |
| 1765 | { 0xd0000, 0x0 }, |
| 1766 | { 0x54003, 0xbb8 }, |
| 1767 | { 0x54004, 0x2 }, |
| 1768 | { 0x54005, 0x2228 }, |
| 1769 | { 0x54006, 0x14 }, |
| 1770 | { 0x54008, 0x61 }, |
| 1771 | { 0x54009, 0xc8 }, |
| 1772 | { 0x5400b, 0x2 }, |
| 1773 | { 0x5400f, 0x100 }, |
| 1774 | { 0x54010, 0x1f7f }, |
| 1775 | { 0x54012, 0x110 }, |
| 1776 | { 0x54019, 0x2dd4 }, |
| 1777 | { 0x5401a, 0x31 }, |
| 1778 | { 0x5401b, 0x4866 }, |
| 1779 | { 0x5401c, 0x4800 }, |
| 1780 | { 0x5401e, 0x16 }, |
| 1781 | { 0x5401f, 0x2dd4 }, |
| 1782 | { 0x54020, 0x31 }, |
| 1783 | { 0x54021, 0x4866 }, |
| 1784 | { 0x54022, 0x4800 }, |
| 1785 | { 0x54024, 0x16 }, |
| 1786 | { 0x5402b, 0x1000 }, |
| 1787 | { 0x5402c, 0x1 }, |
| 1788 | { 0x54032, 0xd400 }, |
| 1789 | { 0x54033, 0x312d }, |
| 1790 | { 0x54034, 0x6600 }, |
| 1791 | { 0x54035, 0x48 }, |
| 1792 | { 0x54036, 0x48 }, |
| 1793 | { 0x54037, 0x1600 }, |
| 1794 | { 0x54038, 0xd400 }, |
| 1795 | { 0x54039, 0x312d }, |
| 1796 | { 0x5403a, 0x6600 }, |
| 1797 | { 0x5403b, 0x48 }, |
| 1798 | { 0x5403c, 0x48 }, |
| 1799 | { 0x5403d, 0x1600 }, |
| 1800 | { 0xd0000, 0x1 }, |
| 1801 | }; |
| 1802 | |
| 1803 | struct dram_fsp_msg ddr_dram_fsp_msg_1gb_single_die[] = { |
| 1804 | { |
| 1805 | /* P0 3000mts 1D */ |
| 1806 | .drate = 3000, |
| 1807 | .fw_type = FW_1D_IMAGE, |
| 1808 | .fsp_cfg = ddr_fsp0_cfg_1gb_single_die, |
| 1809 | .fsp_cfg_num = ARRAY_SIZE(ddr_fsp0_cfg_1gb_single_die), |
| 1810 | }, |
| 1811 | { |
| 1812 | /* P1 400mts 1D */ |
| 1813 | .drate = 400, |
| 1814 | .fw_type = FW_1D_IMAGE, |
| 1815 | .fsp_cfg = ddr_fsp1_cfg_1gb_single_die, |
| 1816 | .fsp_cfg_num = ARRAY_SIZE(ddr_fsp1_cfg_1gb_single_die), |
| 1817 | }, |
| 1818 | { |
| 1819 | /* P2 100mts 1D */ |
| 1820 | .drate = 100, |
| 1821 | .fw_type = FW_1D_IMAGE, |
| 1822 | .fsp_cfg = ddr_fsp2_cfg_1gb_single_die, |
| 1823 | .fsp_cfg_num = ARRAY_SIZE(ddr_fsp2_cfg_1gb_single_die), |
| 1824 | }, |
| 1825 | { |
| 1826 | /* P0 3000mts 2D */ |
| 1827 | .drate = 3000, |
| 1828 | .fw_type = FW_2D_IMAGE, |
| 1829 | .fsp_cfg = ddr_fsp0_2d_cfg_1gb_single_die, |
| 1830 | .fsp_cfg_num = ARRAY_SIZE(ddr_fsp0_2d_cfg_1gb_single_die), |
| 1831 | }, |
| 1832 | }; |
| 1833 | |
| 1834 | /* ddr timing config params */ |
| 1835 | struct dram_timing_info dram_timing_1gb_single_die = { |
| 1836 | .ddrc_cfg = ddr_ddrc_cfg_1gb_single_die, |
| 1837 | .ddrc_cfg_num = ARRAY_SIZE(ddr_ddrc_cfg_1gb_single_die), |
| 1838 | .ddrphy_cfg = ddr_ddrphy_cfg_1gb_single_die, |
| 1839 | .ddrphy_cfg_num = ARRAY_SIZE(ddr_ddrphy_cfg_1gb_single_die), |
| 1840 | .fsp_msg = ddr_dram_fsp_msg_1gb_single_die, |
| 1841 | .fsp_msg_num = ARRAY_SIZE(ddr_dram_fsp_msg_1gb_single_die), |
| 1842 | .ddrphy_trained_csr = ddr_ddrphy_trained_csr, |
| 1843 | .ddrphy_trained_csr_num = ARRAY_SIZE(ddr_ddrphy_trained_csr), |
| 1844 | .ddrphy_pie = ddr_phy_pie, |
| 1845 | .ddrphy_pie_num = ARRAY_SIZE(ddr_phy_pie), |
| 1846 | .fsp_table = { 3000, 400, 100, }, |
| 1847 | }; |
| 1848 | |
| 1849 | /* |
Tim Harvey | 0f5717f | 2022-04-13 11:31:09 -0700 | [diff] [blame] | 1850 | * Generated code from MX8M_DDR_tool v3.30 using MX8M Plus RPAv7 |
| 1851 | * - 4GiB: imx8mp-gw7401 1x Micron MT53D1024M32D4DT 2-ch dual-die per channel |
| 1852 | */ |
| 1853 | /* P0 message block paremeter for training firmware */ |
| 1854 | static struct dram_cfg_param ddr_ddrc_cfg_4gb_dual_die[] = { |
| 1855 | /** Initialize DDRC registers **/ |
| 1856 | { 0x3d400304, 0x1 }, |
| 1857 | { 0x3d400030, 0x1 }, |
| 1858 | { 0x3d400000, 0xa3080020 }, |
| 1859 | { 0x3d400020, 0x1203 }, |
| 1860 | { 0x3d400024, 0x16e3600 }, |
| 1861 | { 0x3d400064, 0x5b00d2 }, |
| 1862 | { 0x3d400070, 0x7027f90 }, |
| 1863 | { 0x3d400074, 0x790 }, |
| 1864 | { 0x3d4000d0, 0xc00305ba }, |
| 1865 | { 0x3d4000d4, 0x940000 }, |
| 1866 | { 0x3d4000dc, 0xd4002d }, |
| 1867 | { 0x3d4000e0, 0x310000 }, |
| 1868 | { 0x3d4000e8, 0x660048 }, |
| 1869 | { 0x3d4000ec, 0x160048 }, |
| 1870 | { 0x3d400100, 0x191e1920 }, |
| 1871 | { 0x3d400104, 0x60630 }, |
| 1872 | { 0x3d40010c, 0xb0b000 }, |
| 1873 | { 0x3d400110, 0xe04080e }, |
| 1874 | { 0x3d400114, 0x2040c0c }, |
| 1875 | { 0x3d400118, 0x1010007 }, |
| 1876 | { 0x3d40011c, 0x401 }, |
| 1877 | { 0x3d400130, 0x20600 }, |
| 1878 | { 0x3d400134, 0xc100002 }, |
| 1879 | { 0x3d400138, 0xd8 }, |
| 1880 | { 0x3d400144, 0x96004b }, |
| 1881 | { 0x3d400180, 0x2ee0017 }, |
| 1882 | { 0x3d400184, 0x2605b8e }, |
| 1883 | { 0x3d400188, 0x0 }, |
| 1884 | { 0x3d400190, 0x497820a }, |
| 1885 | { 0x3d400194, 0x80303 }, |
| 1886 | { 0x3d4001b4, 0x170a }, |
| 1887 | { 0x3d4001a0, 0xe0400018 }, |
| 1888 | { 0x3d4001a4, 0xdf00e4 }, |
| 1889 | { 0x3d4001a8, 0x80000000 }, |
| 1890 | { 0x3d4001b0, 0x11 }, |
| 1891 | { 0x3d4001c0, 0x1 }, |
| 1892 | { 0x3d4001c4, 0x1 }, |
| 1893 | { 0x3d4000f4, 0xc99 }, |
| 1894 | { 0x3d400108, 0x70e1617 }, |
| 1895 | { 0x3d400200, 0x17 }, |
| 1896 | { 0x3d40020c, 0x0 }, |
| 1897 | { 0x3d400210, 0x1f1f }, |
| 1898 | { 0x3d400204, 0x80808 }, |
| 1899 | { 0x3d400214, 0x7070707 }, |
| 1900 | { 0x3d400218, 0x7070707 }, |
| 1901 | { 0x3d40021c, 0xf0f }, |
| 1902 | { 0x3d400250, 0x1705 }, |
| 1903 | { 0x3d400254, 0x2c }, |
| 1904 | { 0x3d40025c, 0x4000030 }, |
| 1905 | { 0x3d400264, 0x900093e7 }, |
| 1906 | { 0x3d40026c, 0x2005574 }, |
| 1907 | { 0x3d400400, 0x111 }, |
| 1908 | { 0x3d400404, 0x72ff }, |
| 1909 | { 0x3d400408, 0x72ff }, |
| 1910 | { 0x3d400494, 0x2100e07 }, |
| 1911 | { 0x3d400498, 0x620096 }, |
| 1912 | { 0x3d40049c, 0x1100e07 }, |
| 1913 | { 0x3d4004a0, 0xc8012c }, |
| 1914 | { 0x3d402020, 0x1001 }, |
| 1915 | { 0x3d402024, 0x30d400 }, |
| 1916 | { 0x3d402050, 0x20d000 }, |
| 1917 | { 0x3d402064, 0xc001c }, |
| 1918 | { 0x3d4020dc, 0x840000 }, |
| 1919 | { 0x3d4020e0, 0x330000 }, |
| 1920 | { 0x3d4020e8, 0x660048 }, |
| 1921 | { 0x3d4020ec, 0x160048 }, |
| 1922 | { 0x3d402100, 0xa040305 }, |
| 1923 | { 0x3d402104, 0x30407 }, |
| 1924 | { 0x3d402108, 0x203060b }, |
| 1925 | { 0x3d40210c, 0x505000 }, |
| 1926 | { 0x3d402110, 0x2040202 }, |
| 1927 | { 0x3d402114, 0x2030202 }, |
| 1928 | { 0x3d402118, 0x1010004 }, |
| 1929 | { 0x3d40211c, 0x301 }, |
| 1930 | { 0x3d402130, 0x20300 }, |
| 1931 | { 0x3d402134, 0xa100002 }, |
| 1932 | { 0x3d402138, 0x1d }, |
| 1933 | { 0x3d402144, 0x14000a }, |
| 1934 | { 0x3d402180, 0x640004 }, |
| 1935 | { 0x3d402190, 0x3818200 }, |
| 1936 | { 0x3d402194, 0x80303 }, |
| 1937 | { 0x3d4021b4, 0x100 }, |
| 1938 | { 0x3d4020f4, 0xc99 }, |
| 1939 | { 0x3d403020, 0x1001 }, |
| 1940 | { 0x3d403024, 0xc3500 }, |
| 1941 | { 0x3d403050, 0x20d000 }, |
| 1942 | { 0x3d403064, 0x30007 }, |
| 1943 | { 0x3d4030dc, 0x840000 }, |
| 1944 | { 0x3d4030e0, 0x330000 }, |
| 1945 | { 0x3d4030e8, 0x660048 }, |
| 1946 | { 0x3d4030ec, 0x160048 }, |
| 1947 | { 0x3d403100, 0xa010102 }, |
| 1948 | { 0x3d403104, 0x30404 }, |
| 1949 | { 0x3d403108, 0x203060b }, |
| 1950 | { 0x3d40310c, 0x505000 }, |
| 1951 | { 0x3d403110, 0x2040202 }, |
| 1952 | { 0x3d403114, 0x2030202 }, |
| 1953 | { 0x3d403118, 0x1010004 }, |
| 1954 | { 0x3d40311c, 0x301 }, |
| 1955 | { 0x3d403130, 0x20300 }, |
| 1956 | { 0x3d403134, 0xa100002 }, |
| 1957 | { 0x3d403138, 0x8 }, |
| 1958 | { 0x3d403144, 0x50003 }, |
| 1959 | { 0x3d403180, 0x190004 }, |
| 1960 | { 0x3d403190, 0x3818200 }, |
| 1961 | { 0x3d403194, 0x80303 }, |
| 1962 | { 0x3d4031b4, 0x100 }, |
| 1963 | { 0x3d4030f4, 0xc99 }, |
| 1964 | { 0x3d400028, 0x0 }, |
| 1965 | }; |
| 1966 | |
| 1967 | /* PHY Initialize Configuration */ |
| 1968 | static struct dram_cfg_param ddr_ddrphy_cfg_4gb_dual_die[] = { |
| 1969 | { 0x100a0, 0x0 }, |
| 1970 | { 0x100a1, 0x1 }, |
| 1971 | { 0x100a2, 0x3 }, |
| 1972 | { 0x100a3, 0x2 }, |
| 1973 | { 0x100a4, 0x5 }, |
| 1974 | { 0x100a5, 0x4 }, |
| 1975 | { 0x100a6, 0x7 }, |
| 1976 | { 0x100a7, 0x6 }, |
| 1977 | { 0x110a0, 0x0 }, |
| 1978 | { 0x110a1, 0x1 }, |
| 1979 | { 0x110a2, 0x2 }, |
| 1980 | { 0x110a3, 0x3 }, |
| 1981 | { 0x110a4, 0x4 }, |
| 1982 | { 0x110a5, 0x5 }, |
| 1983 | { 0x110a6, 0x6 }, |
| 1984 | { 0x110a7, 0x7 }, |
| 1985 | { 0x120a0, 0x0 }, |
| 1986 | { 0x120a1, 0x1 }, |
| 1987 | { 0x120a2, 0x2 }, |
| 1988 | { 0x120a3, 0x3 }, |
| 1989 | { 0x120a4, 0x4 }, |
| 1990 | { 0x120a5, 0x5 }, |
| 1991 | { 0x120a6, 0x6 }, |
| 1992 | { 0x120a7, 0x7 }, |
| 1993 | { 0x130a0, 0x0 }, |
| 1994 | { 0x130a1, 0x1 }, |
| 1995 | { 0x130a2, 0x3 }, |
| 1996 | { 0x130a3, 0x4 }, |
| 1997 | { 0x130a4, 0x5 }, |
| 1998 | { 0x130a5, 0x2 }, |
| 1999 | { 0x130a6, 0x7 }, |
| 2000 | { 0x130a7, 0x6 }, |
| 2001 | { 0x1005f, 0x1ff }, |
| 2002 | { 0x1015f, 0x1ff }, |
| 2003 | { 0x1105f, 0x1ff }, |
| 2004 | { 0x1115f, 0x1ff }, |
| 2005 | { 0x1205f, 0x1ff }, |
| 2006 | { 0x1215f, 0x1ff }, |
| 2007 | { 0x1305f, 0x1ff }, |
| 2008 | { 0x1315f, 0x1ff }, |
| 2009 | { 0x11005f, 0x1ff }, |
| 2010 | { 0x11015f, 0x1ff }, |
| 2011 | { 0x11105f, 0x1ff }, |
| 2012 | { 0x11115f, 0x1ff }, |
| 2013 | { 0x11205f, 0x1ff }, |
| 2014 | { 0x11215f, 0x1ff }, |
| 2015 | { 0x11305f, 0x1ff }, |
| 2016 | { 0x11315f, 0x1ff }, |
| 2017 | { 0x21005f, 0x1ff }, |
| 2018 | { 0x21015f, 0x1ff }, |
| 2019 | { 0x21105f, 0x1ff }, |
| 2020 | { 0x21115f, 0x1ff }, |
| 2021 | { 0x21205f, 0x1ff }, |
| 2022 | { 0x21215f, 0x1ff }, |
| 2023 | { 0x21305f, 0x1ff }, |
| 2024 | { 0x21315f, 0x1ff }, |
| 2025 | { 0x55, 0x1ff }, |
| 2026 | { 0x1055, 0x1ff }, |
| 2027 | { 0x2055, 0x1ff }, |
| 2028 | { 0x3055, 0x1ff }, |
| 2029 | { 0x4055, 0x1ff }, |
| 2030 | { 0x5055, 0x1ff }, |
| 2031 | { 0x6055, 0x1ff }, |
| 2032 | { 0x7055, 0x1ff }, |
| 2033 | { 0x8055, 0x1ff }, |
| 2034 | { 0x9055, 0x1ff }, |
| 2035 | { 0x200c5, 0x19 }, |
| 2036 | { 0x1200c5, 0x7 }, |
| 2037 | { 0x2200c5, 0x7 }, |
| 2038 | { 0x2002e, 0x2 }, |
| 2039 | { 0x12002e, 0x2 }, |
| 2040 | { 0x22002e, 0x2 }, |
| 2041 | { 0x90204, 0x0 }, |
| 2042 | { 0x190204, 0x0 }, |
| 2043 | { 0x290204, 0x0 }, |
| 2044 | { 0x20024, 0x1a3 }, |
| 2045 | { 0x2003a, 0x2 }, |
| 2046 | { 0x120024, 0x1a3 }, |
| 2047 | { 0x2003a, 0x2 }, |
| 2048 | { 0x220024, 0x1a3 }, |
| 2049 | { 0x2003a, 0x2 }, |
| 2050 | { 0x20056, 0x3 }, |
| 2051 | { 0x120056, 0x3 }, |
| 2052 | { 0x220056, 0x3 }, |
| 2053 | { 0x1004d, 0xe00 }, |
| 2054 | { 0x1014d, 0xe00 }, |
| 2055 | { 0x1104d, 0xe00 }, |
| 2056 | { 0x1114d, 0xe00 }, |
| 2057 | { 0x1204d, 0xe00 }, |
| 2058 | { 0x1214d, 0xe00 }, |
| 2059 | { 0x1304d, 0xe00 }, |
| 2060 | { 0x1314d, 0xe00 }, |
| 2061 | { 0x11004d, 0xe00 }, |
| 2062 | { 0x11014d, 0xe00 }, |
| 2063 | { 0x11104d, 0xe00 }, |
| 2064 | { 0x11114d, 0xe00 }, |
| 2065 | { 0x11204d, 0xe00 }, |
| 2066 | { 0x11214d, 0xe00 }, |
| 2067 | { 0x11304d, 0xe00 }, |
| 2068 | { 0x11314d, 0xe00 }, |
| 2069 | { 0x21004d, 0xe00 }, |
| 2070 | { 0x21014d, 0xe00 }, |
| 2071 | { 0x21104d, 0xe00 }, |
| 2072 | { 0x21114d, 0xe00 }, |
| 2073 | { 0x21204d, 0xe00 }, |
| 2074 | { 0x21214d, 0xe00 }, |
| 2075 | { 0x21304d, 0xe00 }, |
| 2076 | { 0x21314d, 0xe00 }, |
| 2077 | { 0x10049, 0xeba }, |
| 2078 | { 0x10149, 0xeba }, |
| 2079 | { 0x11049, 0xeba }, |
| 2080 | { 0x11149, 0xeba }, |
| 2081 | { 0x12049, 0xeba }, |
| 2082 | { 0x12149, 0xeba }, |
| 2083 | { 0x13049, 0xeba }, |
| 2084 | { 0x13149, 0xeba }, |
| 2085 | { 0x110049, 0xeba }, |
| 2086 | { 0x110149, 0xeba }, |
| 2087 | { 0x111049, 0xeba }, |
| 2088 | { 0x111149, 0xeba }, |
| 2089 | { 0x112049, 0xeba }, |
| 2090 | { 0x112149, 0xeba }, |
| 2091 | { 0x113049, 0xeba }, |
| 2092 | { 0x113149, 0xeba }, |
| 2093 | { 0x210049, 0xeba }, |
| 2094 | { 0x210149, 0xeba }, |
| 2095 | { 0x211049, 0xeba }, |
| 2096 | { 0x211149, 0xeba }, |
| 2097 | { 0x212049, 0xeba }, |
| 2098 | { 0x212149, 0xeba }, |
| 2099 | { 0x213049, 0xeba }, |
| 2100 | { 0x213149, 0xeba }, |
| 2101 | { 0x43, 0x63 }, |
| 2102 | { 0x1043, 0x63 }, |
| 2103 | { 0x2043, 0x63 }, |
| 2104 | { 0x3043, 0x63 }, |
| 2105 | { 0x4043, 0x63 }, |
| 2106 | { 0x5043, 0x63 }, |
| 2107 | { 0x6043, 0x63 }, |
| 2108 | { 0x7043, 0x63 }, |
| 2109 | { 0x8043, 0x63 }, |
| 2110 | { 0x9043, 0x63 }, |
| 2111 | { 0x20018, 0x3 }, |
| 2112 | { 0x20075, 0x4 }, |
| 2113 | { 0x20050, 0x0 }, |
| 2114 | { 0x20008, 0x2ee }, |
| 2115 | { 0x120008, 0x64 }, |
| 2116 | { 0x220008, 0x19 }, |
| 2117 | { 0x20088, 0x9 }, |
| 2118 | { 0x200b2, 0x104 }, |
| 2119 | { 0x10043, 0x5a1 }, |
| 2120 | { 0x10143, 0x5a1 }, |
| 2121 | { 0x11043, 0x5a1 }, |
| 2122 | { 0x11143, 0x5a1 }, |
| 2123 | { 0x12043, 0x5a1 }, |
| 2124 | { 0x12143, 0x5a1 }, |
| 2125 | { 0x13043, 0x5a1 }, |
| 2126 | { 0x13143, 0x5a1 }, |
| 2127 | { 0x1200b2, 0x104 }, |
| 2128 | { 0x110043, 0x5a1 }, |
| 2129 | { 0x110143, 0x5a1 }, |
| 2130 | { 0x111043, 0x5a1 }, |
| 2131 | { 0x111143, 0x5a1 }, |
| 2132 | { 0x112043, 0x5a1 }, |
| 2133 | { 0x112143, 0x5a1 }, |
| 2134 | { 0x113043, 0x5a1 }, |
| 2135 | { 0x113143, 0x5a1 }, |
| 2136 | { 0x2200b2, 0x104 }, |
| 2137 | { 0x210043, 0x5a1 }, |
| 2138 | { 0x210143, 0x5a1 }, |
| 2139 | { 0x211043, 0x5a1 }, |
| 2140 | { 0x211143, 0x5a1 }, |
| 2141 | { 0x212043, 0x5a1 }, |
| 2142 | { 0x212143, 0x5a1 }, |
| 2143 | { 0x213043, 0x5a1 }, |
| 2144 | { 0x213143, 0x5a1 }, |
| 2145 | { 0x200fa, 0x1 }, |
| 2146 | { 0x1200fa, 0x1 }, |
| 2147 | { 0x2200fa, 0x1 }, |
| 2148 | { 0x20019, 0x1 }, |
| 2149 | { 0x120019, 0x1 }, |
| 2150 | { 0x220019, 0x1 }, |
| 2151 | { 0x200f0, 0x660 }, |
| 2152 | { 0x200f1, 0x0 }, |
| 2153 | { 0x200f2, 0x4444 }, |
| 2154 | { 0x200f3, 0x8888 }, |
| 2155 | { 0x200f4, 0x5665 }, |
| 2156 | { 0x200f5, 0x0 }, |
| 2157 | { 0x200f6, 0x0 }, |
| 2158 | { 0x200f7, 0xf000 }, |
| 2159 | { 0x20025, 0x0 }, |
| 2160 | { 0x2002d, 0x0 }, |
| 2161 | { 0x12002d, 0x0 }, |
| 2162 | { 0x22002d, 0x0 }, |
| 2163 | { 0x2007d, 0x212 }, |
| 2164 | { 0x12007d, 0x212 }, |
| 2165 | { 0x22007d, 0x212 }, |
| 2166 | { 0x2007c, 0x61 }, |
| 2167 | { 0x12007c, 0x61 }, |
| 2168 | { 0x22007c, 0x61 }, |
| 2169 | { 0x1004a, 0x500 }, |
| 2170 | { 0x1104a, 0x500 }, |
| 2171 | { 0x1204a, 0x500 }, |
| 2172 | { 0x1304a, 0x500 }, |
| 2173 | { 0x2002c, 0x0 }, |
| 2174 | }; |
| 2175 | |
| 2176 | static struct dram_cfg_param ddr_fsp0_cfg_4gb_dual_die[] = { |
| 2177 | { 0xd0000, 0x0 }, |
| 2178 | { 0x54003, 0xbb8 }, |
| 2179 | { 0x54004, 0x2 }, |
| 2180 | { 0x54005, 0x2228 }, |
| 2181 | { 0x54006, 0x14 }, |
| 2182 | { 0x54008, 0x131f }, |
| 2183 | { 0x54009, 0xc8 }, |
| 2184 | { 0x5400b, 0x2 }, |
| 2185 | { 0x5400f, 0x100 }, |
| 2186 | { 0x54012, 0x310 }, |
| 2187 | { 0x54019, 0x2dd4 }, |
| 2188 | { 0x5401a, 0x31 }, |
| 2189 | { 0x5401b, 0x4866 }, |
| 2190 | { 0x5401c, 0x4800 }, |
| 2191 | { 0x5401e, 0x16 }, |
| 2192 | { 0x5401f, 0x2dd4 }, |
| 2193 | { 0x54020, 0x31 }, |
| 2194 | { 0x54021, 0x4866 }, |
| 2195 | { 0x54022, 0x4800 }, |
| 2196 | { 0x54024, 0x16 }, |
| 2197 | { 0x5402b, 0x1000 }, |
| 2198 | { 0x5402c, 0x3 }, |
| 2199 | { 0x54032, 0xd400 }, |
| 2200 | { 0x54033, 0x312d }, |
| 2201 | { 0x54034, 0x6600 }, |
| 2202 | { 0x54035, 0x48 }, |
| 2203 | { 0x54036, 0x48 }, |
| 2204 | { 0x54037, 0x1600 }, |
| 2205 | { 0x54038, 0xd400 }, |
| 2206 | { 0x54039, 0x312d }, |
| 2207 | { 0x5403a, 0x6600 }, |
| 2208 | { 0x5403b, 0x48 }, |
| 2209 | { 0x5403c, 0x48 }, |
| 2210 | { 0x5403d, 0x1600 }, |
| 2211 | { 0xd0000, 0x1 }, |
| 2212 | }; |
| 2213 | |
| 2214 | /* P1 message block paremeter for training firmware */ |
| 2215 | static struct dram_cfg_param ddr_fsp1_cfg_4gb_dual_die[] = { |
| 2216 | { 0xd0000, 0x0 }, |
| 2217 | { 0x54002, 0x101 }, |
| 2218 | { 0x54003, 0x190 }, |
| 2219 | { 0x54004, 0x2 }, |
| 2220 | { 0x54005, 0x2228 }, |
| 2221 | { 0x54006, 0x14 }, |
| 2222 | { 0x54008, 0x121f }, |
| 2223 | { 0x54009, 0xc8 }, |
| 2224 | { 0x5400b, 0x2 }, |
| 2225 | { 0x5400f, 0x100 }, |
| 2226 | { 0x54012, 0x310 }, |
| 2227 | { 0x54019, 0x84 }, |
| 2228 | { 0x5401a, 0x33 }, |
| 2229 | { 0x5401b, 0x4866 }, |
| 2230 | { 0x5401c, 0x4800 }, |
| 2231 | { 0x5401e, 0x16 }, |
| 2232 | { 0x5401f, 0x84 }, |
| 2233 | { 0x54020, 0x33 }, |
| 2234 | { 0x54021, 0x4866 }, |
| 2235 | { 0x54022, 0x4800 }, |
| 2236 | { 0x54024, 0x16 }, |
| 2237 | { 0x5402b, 0x1000 }, |
| 2238 | { 0x5402c, 0x3 }, |
| 2239 | { 0x54032, 0x8400 }, |
| 2240 | { 0x54033, 0x3300 }, |
| 2241 | { 0x54034, 0x6600 }, |
| 2242 | { 0x54035, 0x48 }, |
| 2243 | { 0x54036, 0x48 }, |
| 2244 | { 0x54037, 0x1600 }, |
| 2245 | { 0x54038, 0x8400 }, |
| 2246 | { 0x54039, 0x3300 }, |
| 2247 | { 0x5403a, 0x6600 }, |
| 2248 | { 0x5403b, 0x48 }, |
| 2249 | { 0x5403c, 0x48 }, |
| 2250 | { 0x5403d, 0x1600 }, |
| 2251 | { 0xd0000, 0x1 }, |
| 2252 | }; |
| 2253 | |
| 2254 | /* P2 message block paremeter for training firmware */ |
| 2255 | static struct dram_cfg_param ddr_fsp2_cfg_4gb_dual_die[] = { |
| 2256 | { 0xd0000, 0x0 }, |
| 2257 | { 0x54002, 0x102 }, |
| 2258 | { 0x54003, 0x64 }, |
| 2259 | { 0x54004, 0x2 }, |
| 2260 | { 0x54005, 0x2228 }, |
| 2261 | { 0x54006, 0x14 }, |
| 2262 | { 0x54008, 0x121f }, |
| 2263 | { 0x54009, 0xc8 }, |
| 2264 | { 0x5400b, 0x2 }, |
| 2265 | { 0x5400f, 0x100 }, |
| 2266 | { 0x54012, 0x310 }, |
| 2267 | { 0x54019, 0x84 }, |
| 2268 | { 0x5401a, 0x33 }, |
| 2269 | { 0x5401b, 0x4866 }, |
| 2270 | { 0x5401c, 0x4800 }, |
| 2271 | { 0x5401e, 0x16 }, |
| 2272 | { 0x5401f, 0x84 }, |
| 2273 | { 0x54020, 0x33 }, |
| 2274 | { 0x54021, 0x4866 }, |
| 2275 | { 0x54022, 0x4800 }, |
| 2276 | { 0x54024, 0x16 }, |
| 2277 | { 0x5402b, 0x1000 }, |
| 2278 | { 0x5402c, 0x3 }, |
| 2279 | { 0x54032, 0x8400 }, |
| 2280 | { 0x54033, 0x3300 }, |
| 2281 | { 0x54034, 0x6600 }, |
| 2282 | { 0x54035, 0x48 }, |
| 2283 | { 0x54036, 0x48 }, |
| 2284 | { 0x54037, 0x1600 }, |
| 2285 | { 0x54038, 0x8400 }, |
| 2286 | { 0x54039, 0x3300 }, |
| 2287 | { 0x5403a, 0x6600 }, |
| 2288 | { 0x5403b, 0x48 }, |
| 2289 | { 0x5403c, 0x48 }, |
| 2290 | { 0x5403d, 0x1600 }, |
| 2291 | { 0xd0000, 0x1 }, |
| 2292 | }; |
| 2293 | |
| 2294 | /* P0 2D message block paremeter for training firmware */ |
| 2295 | static struct dram_cfg_param ddr_fsp0_2d_cfg_4gb_dual_die[] = { |
| 2296 | { 0xd0000, 0x0 }, |
| 2297 | { 0x54003, 0xbb8 }, |
| 2298 | { 0x54004, 0x2 }, |
| 2299 | { 0x54005, 0x2228 }, |
| 2300 | { 0x54006, 0x14 }, |
| 2301 | { 0x54008, 0x61 }, |
| 2302 | { 0x54009, 0xc8 }, |
| 2303 | { 0x5400b, 0x2 }, |
| 2304 | { 0x5400f, 0x100 }, |
| 2305 | { 0x54010, 0x1f7f }, |
| 2306 | { 0x54012, 0x310 }, |
| 2307 | { 0x54019, 0x2dd4 }, |
| 2308 | { 0x5401a, 0x31 }, |
| 2309 | { 0x5401b, 0x4866 }, |
| 2310 | { 0x5401c, 0x4800 }, |
| 2311 | { 0x5401e, 0x16 }, |
| 2312 | { 0x5401f, 0x2dd4 }, |
| 2313 | { 0x54020, 0x31 }, |
| 2314 | { 0x54021, 0x4866 }, |
| 2315 | { 0x54022, 0x4800 }, |
| 2316 | { 0x54024, 0x16 }, |
| 2317 | { 0x5402b, 0x1000 }, |
| 2318 | { 0x5402c, 0x3 }, |
| 2319 | { 0x54032, 0xd400 }, |
| 2320 | { 0x54033, 0x312d }, |
| 2321 | { 0x54034, 0x6600 }, |
| 2322 | { 0x54035, 0x48 }, |
| 2323 | { 0x54036, 0x48 }, |
| 2324 | { 0x54037, 0x1600 }, |
| 2325 | { 0x54038, 0xd400 }, |
| 2326 | { 0x54039, 0x312d }, |
| 2327 | { 0x5403a, 0x6600 }, |
| 2328 | { 0x5403b, 0x48 }, |
| 2329 | { 0x5403c, 0x48 }, |
| 2330 | { 0x5403d, 0x1600 }, |
| 2331 | { 0xd0000, 0x1 }, |
| 2332 | }; |
| 2333 | |
| 2334 | static struct dram_fsp_msg ddr_dram_fsp_msg_4gb_dual_die[] = { |
| 2335 | { |
| 2336 | /* P0 3000mts 1D */ |
| 2337 | .drate = 3000, |
| 2338 | .fw_type = FW_1D_IMAGE, |
| 2339 | .fsp_cfg = ddr_fsp0_cfg_4gb_dual_die, |
| 2340 | .fsp_cfg_num = ARRAY_SIZE(ddr_fsp0_cfg_4gb_dual_die), |
| 2341 | }, |
| 2342 | { |
| 2343 | /* P1 400mts 1D */ |
| 2344 | .drate = 400, |
| 2345 | .fw_type = FW_1D_IMAGE, |
| 2346 | .fsp_cfg = ddr_fsp1_cfg_4gb_dual_die, |
| 2347 | .fsp_cfg_num = ARRAY_SIZE(ddr_fsp1_cfg_4gb_dual_die), |
| 2348 | }, |
| 2349 | { |
| 2350 | /* P2 100mts 1D */ |
| 2351 | .drate = 100, |
| 2352 | .fw_type = FW_1D_IMAGE, |
| 2353 | .fsp_cfg = ddr_fsp2_cfg_4gb_dual_die, |
| 2354 | .fsp_cfg_num = ARRAY_SIZE(ddr_fsp2_cfg_4gb_dual_die), |
| 2355 | }, |
| 2356 | { |
| 2357 | /* P0 3000mts 2D */ |
| 2358 | .drate = 3000, |
| 2359 | .fw_type = FW_2D_IMAGE, |
| 2360 | .fsp_cfg = ddr_fsp0_2d_cfg_4gb_dual_die, |
| 2361 | .fsp_cfg_num = ARRAY_SIZE(ddr_fsp0_2d_cfg_4gb_dual_die), |
| 2362 | }, |
| 2363 | }; |
| 2364 | |
| 2365 | /* ddr timing config params */ |
| 2366 | struct dram_timing_info dram_timing_4gb_dual_die = { |
| 2367 | .ddrc_cfg = ddr_ddrc_cfg_4gb_dual_die, |
| 2368 | .ddrc_cfg_num = ARRAY_SIZE(ddr_ddrc_cfg_4gb_dual_die), |
| 2369 | .ddrphy_cfg = ddr_ddrphy_cfg_4gb_dual_die, |
| 2370 | .ddrphy_cfg_num = ARRAY_SIZE(ddr_ddrphy_cfg_4gb_dual_die), |
| 2371 | .fsp_msg = ddr_dram_fsp_msg_4gb_dual_die, |
| 2372 | .fsp_msg_num = ARRAY_SIZE(ddr_dram_fsp_msg_4gb_dual_die), |
| 2373 | .ddrphy_trained_csr = ddr_ddrphy_trained_csr, |
| 2374 | .ddrphy_trained_csr_num = ARRAY_SIZE(ddr_ddrphy_trained_csr), |
| 2375 | .ddrphy_pie = ddr_phy_pie, |
| 2376 | .ddrphy_pie_num = ARRAY_SIZE(ddr_phy_pie), |
| 2377 | .fsp_table = { 3000, 400, 100, }, |
| 2378 | }; |