init_dram_tbl_m3.h 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468
  1. /*
  2. * Copyright (c) 2015-2023, Renesas Electronics Corporation.
  3. * All rights reserved.
  4. *
  5. * SPDX-License-Identifier: BSD-3-Clause
  6. */
  7. #define DDR_PHY_SLICE_REGSET_OFS_M3 0x0800
  8. #define DDR_PHY_ADR_V_REGSET_OFS_M3 0x0a00
  9. #define DDR_PHY_ADR_I_REGSET_OFS_M3 0x0a80
  10. #define DDR_PHY_ADR_G_REGSET_OFS_M3 0x0b80
  11. #define DDR_PI_REGSET_OFS_M3 0x0200
  12. #define DDR_PHY_SLICE_REGSET_SIZE_M3 0x80
  13. #define DDR_PHY_ADR_V_REGSET_SIZE_M3 0x80
  14. #define DDR_PHY_ADR_I_REGSET_SIZE_M3 0x80
  15. #define DDR_PHY_ADR_G_REGSET_SIZE_M3 0x80
  16. #define DDR_PI_REGSET_SIZE_M3 0x100
  17. #define DDR_PHY_SLICE_REGSET_NUM_M3 89
  18. #define DDR_PHY_ADR_V_REGSET_NUM_M3 37
  19. #define DDR_PHY_ADR_I_REGSET_NUM_M3 37
  20. #define DDR_PHY_ADR_G_REGSET_NUM_M3 64
  21. #define DDR_PI_REGSET_NUM_M3 202
  22. static const uint32_t DDR_PHY_SLICE_REGSET_M3[DDR_PHY_SLICE_REGSET_NUM_M3] = {
  23. /*0800*/ 0x76543210,
  24. /*0801*/ 0x0004f008,
  25. /*0802*/ 0x00000000,
  26. /*0803*/ 0x00000000,
  27. /*0804*/ 0x00010000,
  28. /*0805*/ 0x036e6e0e,
  29. /*0806*/ 0x026e6e0e,
  30. /*0807*/ 0x00010300,
  31. /*0808*/ 0x04000100,
  32. /*0809*/ 0x00000300,
  33. /*080a*/ 0x001700c0,
  34. /*080b*/ 0x00b00201,
  35. /*080c*/ 0x00030020,
  36. /*080d*/ 0x00000000,
  37. /*080e*/ 0x00000000,
  38. /*080f*/ 0x00000000,
  39. /*0810*/ 0x00000000,
  40. /*0811*/ 0x00000000,
  41. /*0812*/ 0x00000000,
  42. /*0813*/ 0x00000000,
  43. /*0814*/ 0x09000000,
  44. /*0815*/ 0x04080000,
  45. /*0816*/ 0x04080400,
  46. /*0817*/ 0x00000000,
  47. /*0818*/ 0x32103210,
  48. /*0819*/ 0x00800708,
  49. /*081a*/ 0x000f000c,
  50. /*081b*/ 0x00000100,
  51. /*081c*/ 0x55aa55aa,
  52. /*081d*/ 0x33cc33cc,
  53. /*081e*/ 0x0ff00ff0,
  54. /*081f*/ 0x0f0ff0f0,
  55. /*0820*/ 0x00018e38,
  56. /*0821*/ 0x00000000,
  57. /*0822*/ 0x00000000,
  58. /*0823*/ 0x00000000,
  59. /*0824*/ 0x00000000,
  60. /*0825*/ 0x00000000,
  61. /*0826*/ 0x00000000,
  62. /*0827*/ 0x00000000,
  63. /*0828*/ 0x00000000,
  64. /*0829*/ 0x00000000,
  65. /*082a*/ 0x00000000,
  66. /*082b*/ 0x00000000,
  67. /*082c*/ 0x00000000,
  68. /*082d*/ 0x00000000,
  69. /*082e*/ 0x00000000,
  70. /*082f*/ 0x00000000,
  71. /*0830*/ 0x00000000,
  72. /*0831*/ 0x00000000,
  73. /*0832*/ 0x00000000,
  74. /*0833*/ 0x00200000,
  75. /*0834*/ 0x08200820,
  76. /*0835*/ 0x08200820,
  77. /*0836*/ 0x08200820,
  78. /*0837*/ 0x08200820,
  79. /*0838*/ 0x08200820,
  80. /*0839*/ 0x00000820,
  81. /*083a*/ 0x03000300,
  82. /*083b*/ 0x03000300,
  83. /*083c*/ 0x03000300,
  84. /*083d*/ 0x03000300,
  85. /*083e*/ 0x00000300,
  86. /*083f*/ 0x00000000,
  87. /*0840*/ 0x00000000,
  88. /*0841*/ 0x00000000,
  89. /*0842*/ 0x00000000,
  90. /*0843*/ 0x00a00000,
  91. /*0844*/ 0x00a000a0,
  92. /*0845*/ 0x00a000a0,
  93. /*0846*/ 0x00a000a0,
  94. /*0847*/ 0x00a000a0,
  95. /*0848*/ 0x00a000a0,
  96. /*0849*/ 0x00a000a0,
  97. /*084a*/ 0x00a000a0,
  98. /*084b*/ 0x00a000a0,
  99. /*084c*/ 0x010900a0,
  100. /*084d*/ 0x02000104,
  101. /*084e*/ 0x00000000,
  102. /*084f*/ 0x00010000,
  103. /*0850*/ 0x00000200,
  104. /*0851*/ 0x4041a151,
  105. /*0852*/ 0xc00141a0,
  106. /*0853*/ 0x0e0100c0,
  107. /*0854*/ 0x0010000c,
  108. /*0855*/ 0x0c064208,
  109. /*0856*/ 0x000f0c18,
  110. /*0857*/ 0x00e00140,
  111. /*0858*/ 0x00000c20
  112. };
  113. static const uint32_t DDR_PHY_ADR_V_REGSET_M3[DDR_PHY_ADR_V_REGSET_NUM_M3] = {
  114. /*0a00*/ 0x00000000,
  115. /*0a01*/ 0x00000000,
  116. /*0a02*/ 0x00000000,
  117. /*0a03*/ 0x00000000,
  118. /*0a04*/ 0x00000000,
  119. /*0a05*/ 0x00000000,
  120. /*0a06*/ 0x00000002,
  121. /*0a07*/ 0x00000000,
  122. /*0a08*/ 0x00000000,
  123. /*0a09*/ 0x00000000,
  124. /*0a0a*/ 0x00400320,
  125. /*0a0b*/ 0x00000040,
  126. /*0a0c*/ 0x00dcba98,
  127. /*0a0d*/ 0x00000000,
  128. /*0a0e*/ 0x00dcba98,
  129. /*0a0f*/ 0x01000000,
  130. /*0a10*/ 0x00020003,
  131. /*0a11*/ 0x00000000,
  132. /*0a12*/ 0x00000000,
  133. /*0a13*/ 0x00000000,
  134. /*0a14*/ 0x0000002a,
  135. /*0a15*/ 0x00000015,
  136. /*0a16*/ 0x00000015,
  137. /*0a17*/ 0x0000002a,
  138. /*0a18*/ 0x00000033,
  139. /*0a19*/ 0x0000000c,
  140. /*0a1a*/ 0x0000000c,
  141. /*0a1b*/ 0x00000033,
  142. /*0a1c*/ 0x0a418820,
  143. /*0a1d*/ 0x003f0000,
  144. /*0a1e*/ 0x0000003f,
  145. /*0a1f*/ 0x0002c06e,
  146. /*0a20*/ 0x02c002c0,
  147. /*0a21*/ 0x02c002c0,
  148. /*0a22*/ 0x000002c0,
  149. /*0a23*/ 0x42080010,
  150. /*0a24*/ 0x00000003
  151. };
  152. static const uint32_t DDR_PHY_ADR_I_REGSET_M3[DDR_PHY_ADR_I_REGSET_NUM_M3] = {
  153. /*0a80*/ 0x04040404,
  154. /*0a81*/ 0x00000404,
  155. /*0a82*/ 0x00000000,
  156. /*0a83*/ 0x00000000,
  157. /*0a84*/ 0x00000000,
  158. /*0a85*/ 0x00000000,
  159. /*0a86*/ 0x00000002,
  160. /*0a87*/ 0x00000000,
  161. /*0a88*/ 0x00000000,
  162. /*0a89*/ 0x00000000,
  163. /*0a8a*/ 0x00400320,
  164. /*0a8b*/ 0x00000040,
  165. /*0a8c*/ 0x00000000,
  166. /*0a8d*/ 0x00000000,
  167. /*0a8e*/ 0x00000000,
  168. /*0a8f*/ 0x01000000,
  169. /*0a90*/ 0x00020003,
  170. /*0a91*/ 0x00000000,
  171. /*0a92*/ 0x00000000,
  172. /*0a93*/ 0x00000000,
  173. /*0a94*/ 0x0000002a,
  174. /*0a95*/ 0x00000015,
  175. /*0a96*/ 0x00000015,
  176. /*0a97*/ 0x0000002a,
  177. /*0a98*/ 0x00000033,
  178. /*0a99*/ 0x0000000c,
  179. /*0a9a*/ 0x0000000c,
  180. /*0a9b*/ 0x00000033,
  181. /*0a9c*/ 0x00000000,
  182. /*0a9d*/ 0x00000000,
  183. /*0a9e*/ 0x00000000,
  184. /*0a9f*/ 0x0002c06e,
  185. /*0aa0*/ 0x02c002c0,
  186. /*0aa1*/ 0x02c002c0,
  187. /*0aa2*/ 0x000002c0,
  188. /*0aa3*/ 0x42080010,
  189. /*0aa4*/ 0x00000003
  190. };
  191. static const uint32_t DDR_PHY_ADR_G_REGSET_M3[DDR_PHY_ADR_G_REGSET_NUM_M3] = {
  192. /*0b80*/ 0x00000001,
  193. /*0b81*/ 0x00000000,
  194. /*0b82*/ 0x00000005,
  195. /*0b83*/ 0x04000f00,
  196. /*0b84*/ 0x00020080,
  197. /*0b85*/ 0x00020055,
  198. /*0b86*/ 0x00000000,
  199. /*0b87*/ 0x00000000,
  200. /*0b88*/ 0x00000000,
  201. /*0b89*/ 0x00000050,
  202. /*0b8a*/ 0x00000000,
  203. /*0b8b*/ 0x01010100,
  204. /*0b8c*/ 0x00000600,
  205. /*0b8d*/ 0x50640000,
  206. /*0b8e*/ 0x03421342,
  207. /*0b8f*/ 0x00000342,
  208. /*0b90*/ 0x00000000,
  209. /*0b91*/ 0x000f1600,
  210. /*0b92*/ 0x0f160f16,
  211. /*0b93*/ 0x0f160f16,
  212. /*0b94*/ 0x00000003,
  213. /*0b95*/ 0x0002c000,
  214. /*0b96*/ 0x02c002c0,
  215. /*0b97*/ 0x000002c0,
  216. /*0b98*/ 0x03421342,
  217. /*0b99*/ 0x00000342,
  218. /*0b9a*/ 0x00000000,
  219. /*0b9b*/ 0x00000000,
  220. /*0b9c*/ 0x05020000,
  221. /*0b9d*/ 0x00000000,
  222. /*0b9e*/ 0x00027f6e,
  223. /*0b9f*/ 0x047f027f,
  224. /*0ba0*/ 0x00027f6e,
  225. /*0ba1*/ 0x00047f6e,
  226. /*0ba2*/ 0x0003554f,
  227. /*0ba3*/ 0x0001554f,
  228. /*0ba4*/ 0x0001554f,
  229. /*0ba5*/ 0x0001554f,
  230. /*0ba6*/ 0x0001554f,
  231. /*0ba7*/ 0x00003fee,
  232. /*0ba8*/ 0x0001554f,
  233. /*0ba9*/ 0x00003fee,
  234. /*0baa*/ 0x0001554f,
  235. /*0bab*/ 0x00027f6e,
  236. /*0bac*/ 0x0001554f,
  237. /*0bad*/ 0x00000000,
  238. /*0bae*/ 0x00000000,
  239. /*0baf*/ 0x00000000,
  240. /*0bb0*/ 0x65000000,
  241. /*0bb1*/ 0x00000000,
  242. /*0bb2*/ 0x00000000,
  243. /*0bb3*/ 0x00000201,
  244. /*0bb4*/ 0x00000000,
  245. /*0bb5*/ 0x00000000,
  246. /*0bb6*/ 0x00000000,
  247. /*0bb7*/ 0x00000000,
  248. /*0bb8*/ 0x00000000,
  249. /*0bb9*/ 0x00000000,
  250. /*0bba*/ 0x00000000,
  251. /*0bbb*/ 0x00000000,
  252. /*0bbc*/ 0x06e40000,
  253. /*0bbd*/ 0x00000000,
  254. /*0bbe*/ 0x00000000,
  255. /*0bbf*/ 0x00010000
  256. };
  257. static const uint32_t DDR_PI_REGSET_M3[DDR_PI_REGSET_NUM_M3] = {
  258. /*0200*/ 0x00000b00,
  259. /*0201*/ 0x00000100,
  260. /*0202*/ 0x00000000,
  261. /*0203*/ 0x0000ffff,
  262. /*0204*/ 0x00000000,
  263. /*0205*/ 0x0000ffff,
  264. /*0206*/ 0x00000000,
  265. /*0207*/ 0x304cffff,
  266. /*0208*/ 0x00000200,
  267. /*0209*/ 0x00000200,
  268. /*020a*/ 0x00000200,
  269. /*020b*/ 0x00000200,
  270. /*020c*/ 0x0000304c,
  271. /*020d*/ 0x00000200,
  272. /*020e*/ 0x00000200,
  273. /*020f*/ 0x00000200,
  274. /*0210*/ 0x00000200,
  275. /*0211*/ 0x0000304c,
  276. /*0212*/ 0x00000200,
  277. /*0213*/ 0x00000200,
  278. /*0214*/ 0x00000200,
  279. /*0215*/ 0x00000200,
  280. /*0216*/ 0x00010000,
  281. /*0217*/ 0x00000003,
  282. /*0218*/ 0x01000001,
  283. /*0219*/ 0x00000000,
  284. /*021a*/ 0x00000000,
  285. /*021b*/ 0x00000000,
  286. /*021c*/ 0x00000000,
  287. /*021d*/ 0x00000000,
  288. /*021e*/ 0x00000000,
  289. /*021f*/ 0x00000000,
  290. /*0220*/ 0x00000000,
  291. /*0221*/ 0x00000000,
  292. /*0222*/ 0x00000000,
  293. /*0223*/ 0x00000000,
  294. /*0224*/ 0x00000000,
  295. /*0225*/ 0x00000000,
  296. /*0226*/ 0x00000000,
  297. /*0227*/ 0x00000000,
  298. /*0228*/ 0x00000000,
  299. /*0229*/ 0x0f000101,
  300. /*022a*/ 0x08492d25,
  301. /*022b*/ 0x0e0c0004,
  302. /*022c*/ 0x000e5000,
  303. /*022d*/ 0x00000250,
  304. /*022e*/ 0x00460003,
  305. /*022f*/ 0x182600cf,
  306. /*0230*/ 0x182600cf,
  307. /*0231*/ 0x00000005,
  308. /*0232*/ 0x00000000,
  309. /*0233*/ 0x00000000,
  310. /*0234*/ 0x00000000,
  311. /*0235*/ 0x00000000,
  312. /*0236*/ 0x00000000,
  313. /*0237*/ 0x00000000,
  314. /*0238*/ 0x00000000,
  315. /*0239*/ 0x01000000,
  316. /*023a*/ 0x00040404,
  317. /*023b*/ 0x01280a00,
  318. /*023c*/ 0x00000000,
  319. /*023d*/ 0x000f0000,
  320. /*023e*/ 0x00001803,
  321. /*023f*/ 0x00000000,
  322. /*0240*/ 0x00000000,
  323. /*0241*/ 0x00060002,
  324. /*0242*/ 0x00010001,
  325. /*0243*/ 0x01000101,
  326. /*0244*/ 0x04020201,
  327. /*0245*/ 0x00080804,
  328. /*0246*/ 0x00000000,
  329. /*0247*/ 0x08030000,
  330. /*0248*/ 0x15150408,
  331. /*0249*/ 0x00000000,
  332. /*024a*/ 0x00000000,
  333. /*024b*/ 0x00000000,
  334. /*024c*/ 0x000f0f00,
  335. /*024d*/ 0x0000001e,
  336. /*024e*/ 0x00000000,
  337. /*024f*/ 0x01000300,
  338. /*0250*/ 0x00000000,
  339. /*0251*/ 0x00000000,
  340. /*0252*/ 0x01000000,
  341. /*0253*/ 0x00010101,
  342. /*0254*/ 0x000e0e0e,
  343. /*0255*/ 0x000c0c0c,
  344. /*0256*/ 0x02060601,
  345. /*0257*/ 0x00000000,
  346. /*0258*/ 0x00000003,
  347. /*0259*/ 0x00181703,
  348. /*025a*/ 0x00280006,
  349. /*025b*/ 0x00280016,
  350. /*025c*/ 0x00000016,
  351. /*025d*/ 0x00000000,
  352. /*025e*/ 0x00000000,
  353. /*025f*/ 0x00000000,
  354. /*0260*/ 0x140a0000,
  355. /*0261*/ 0x0005010a,
  356. /*0262*/ 0x03018d03,
  357. /*0263*/ 0x000a018d,
  358. /*0264*/ 0x00060100,
  359. /*0265*/ 0x01000006,
  360. /*0266*/ 0x018e018e,
  361. /*0267*/ 0x018e0100,
  362. /*0268*/ 0x1111018e,
  363. /*0269*/ 0x10010204,
  364. /*026a*/ 0x09090650,
  365. /*026b*/ 0x20110202,
  366. /*026c*/ 0x00201000,
  367. /*026d*/ 0x00201000,
  368. /*026e*/ 0x04041000,
  369. /*026f*/ 0x18020100,
  370. /*0270*/ 0x00010118,
  371. /*0271*/ 0x004b004a,
  372. /*0272*/ 0x050f0000,
  373. /*0273*/ 0x0c01021e,
  374. /*0274*/ 0x34000000,
  375. /*0275*/ 0x00000000,
  376. /*0276*/ 0x00000000,
  377. /*0277*/ 0x00000000,
  378. /*0278*/ 0x0000d400,
  379. /*0279*/ 0x0031002e,
  380. /*027a*/ 0x00111136,
  381. /*027b*/ 0x002e00d4,
  382. /*027c*/ 0x11360031,
  383. /*027d*/ 0x0000d411,
  384. /*027e*/ 0x0031002e,
  385. /*027f*/ 0x00111136,
  386. /*0280*/ 0x002e00d4,
  387. /*0281*/ 0x11360031,
  388. /*0282*/ 0x0000d411,
  389. /*0283*/ 0x0031002e,
  390. /*0284*/ 0x00111136,
  391. /*0285*/ 0x002e00d4,
  392. /*0286*/ 0x11360031,
  393. /*0287*/ 0x00d40011,
  394. /*0288*/ 0x0031002e,
  395. /*0289*/ 0x00111136,
  396. /*028a*/ 0x002e00d4,
  397. /*028b*/ 0x11360031,
  398. /*028c*/ 0x0000d411,
  399. /*028d*/ 0x0031002e,
  400. /*028e*/ 0x00111136,
  401. /*028f*/ 0x002e00d4,
  402. /*0290*/ 0x11360031,
  403. /*0291*/ 0x0000d411,
  404. /*0292*/ 0x0031002e,
  405. /*0293*/ 0x00111136,
  406. /*0294*/ 0x002e00d4,
  407. /*0295*/ 0x11360031,
  408. /*0296*/ 0x02000011,
  409. /*0297*/ 0x018d018d,
  410. /*0298*/ 0x0c08018d,
  411. /*0299*/ 0x1f121d22,
  412. /*029a*/ 0x4301b344,
  413. /*029b*/ 0x10172006,
  414. /*029c*/ 0x1d220c10,
  415. /*029d*/ 0x00001f12,
  416. /*029e*/ 0x4301b344,
  417. /*029f*/ 0x10172006,
  418. /*02a0*/ 0x1d220c10,
  419. /*02a1*/ 0x00001f12,
  420. /*02a2*/ 0x4301b344,
  421. /*02a3*/ 0x10172006,
  422. /*02a4*/ 0x02000210,
  423. /*02a5*/ 0x02000200,
  424. /*02a6*/ 0x02000200,
  425. /*02a7*/ 0x02000200,
  426. /*02a8*/ 0x02000200,
  427. /*02a9*/ 0x00000000,
  428. /*02aa*/ 0x00000000,
  429. /*02ab*/ 0x00000000,
  430. /*02ac*/ 0x00000000,
  431. /*02ad*/ 0x00000000,
  432. /*02ae*/ 0x00000000,
  433. /*02af*/ 0x00000000,
  434. /*02b0*/ 0x00000000,
  435. /*02b1*/ 0x00000000,
  436. /*02b2*/ 0x00000000,
  437. /*02b3*/ 0x00000000,
  438. /*02b4*/ 0x00000000,
  439. /*02b5*/ 0x00000400,
  440. /*02b6*/ 0x15141312,
  441. /*02b7*/ 0x11100f0e,
  442. /*02b8*/ 0x080b0c0d,
  443. /*02b9*/ 0x05040a09,
  444. /*02ba*/ 0x01000706,
  445. /*02bb*/ 0x00000302,
  446. /*02bc*/ 0x01030201,
  447. /*02bd*/ 0x00304c00,
  448. /*02be*/ 0x0001e2f8,
  449. /*02bf*/ 0x0000304c,
  450. /*02c0*/ 0x0001e2f8,
  451. /*02c1*/ 0x0000304c,
  452. /*02c2*/ 0x0001e2f8,
  453. /*02c3*/ 0x08000000,
  454. /*02c4*/ 0x00000100,
  455. /*02c5*/ 0x00000000,
  456. /*02c6*/ 0x00000000,
  457. /*02c7*/ 0x00000000,
  458. /*02c8*/ 0x00000000,
  459. /*02c9*/ 0x00000002
  460. };