init_dram_tbl_h3.h 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  1. /*
  2. * Copyright (c) 2015-2019, Renesas Electronics Corporation.
  3. * All rights reserved.
  4. *
  5. * SPDX-License-Identifier: BSD-3-Clause
  6. */
  7. #define DDR_PHY_SLICE_REGSET_OFS_H3 0x0400
  8. #define DDR_PHY_ADR_V_REGSET_OFS_H3 0x0600
  9. #define DDR_PHY_ADR_I_REGSET_OFS_H3 0x0680
  10. #define DDR_PHY_ADR_G_REGSET_OFS_H3 0x0700
  11. #define DDR_PI_REGSET_OFS_H3 0x0200
  12. #define DDR_PHY_SLICE_REGSET_SIZE_H3 0x80
  13. #define DDR_PHY_ADR_V_REGSET_SIZE_H3 0x80
  14. #define DDR_PHY_ADR_I_REGSET_SIZE_H3 0x80
  15. #define DDR_PHY_ADR_G_REGSET_SIZE_H3 0x80
  16. #define DDR_PI_REGSET_SIZE_H3 0x100
  17. #define DDR_PHY_SLICE_REGSET_NUM_H3 88
  18. #define DDR_PHY_ADR_V_REGSET_NUM_H3 37
  19. #define DDR_PHY_ADR_I_REGSET_NUM_H3 37
  20. #define DDR_PHY_ADR_G_REGSET_NUM_H3 59
  21. #define DDR_PI_REGSET_NUM_H3 181
  22. static const uint32_t DDR_PHY_SLICE_REGSET_H3[DDR_PHY_SLICE_REGSET_NUM_H3] = {
  23. /*0400*/ 0x000004f0,
  24. /*0401*/ 0x00000000,
  25. /*0402*/ 0x00000000,
  26. /*0403*/ 0x00000100,
  27. /*0404*/ 0x01003c0c,
  28. /*0405*/ 0x02003c0c,
  29. /*0406*/ 0x00010300,
  30. /*0407*/ 0x04000100,
  31. /*0408*/ 0x00000300,
  32. /*0409*/ 0x000700c0,
  33. /*040a*/ 0x00b00201,
  34. /*040b*/ 0x00000020,
  35. /*040c*/ 0x00000000,
  36. /*040d*/ 0x00000000,
  37. /*040e*/ 0x00000000,
  38. /*040f*/ 0x00000000,
  39. /*0410*/ 0x00000000,
  40. /*0411*/ 0x00000000,
  41. /*0412*/ 0x00000000,
  42. /*0413*/ 0x09000000,
  43. /*0414*/ 0x04080000,
  44. /*0415*/ 0x04080400,
  45. /*0416*/ 0x00000000,
  46. /*0417*/ 0x32103210,
  47. /*0418*/ 0x00800708,
  48. /*0419*/ 0x000f000c,
  49. /*041a*/ 0x00000100,
  50. /*041b*/ 0x55aa55aa,
  51. /*041c*/ 0x33cc33cc,
  52. /*041d*/ 0x0ff00ff0,
  53. /*041e*/ 0x0f0ff0f0,
  54. /*041f*/ 0x00008e38,
  55. /*0420*/ 0x76543210,
  56. /*0421*/ 0x00000001,
  57. /*0422*/ 0x00000000,
  58. /*0423*/ 0x00000000,
  59. /*0424*/ 0x00000000,
  60. /*0425*/ 0x00000000,
  61. /*0426*/ 0x00000000,
  62. /*0427*/ 0x00000000,
  63. /*0428*/ 0x00000000,
  64. /*0429*/ 0x00000000,
  65. /*042a*/ 0x00000000,
  66. /*042b*/ 0x00000000,
  67. /*042c*/ 0x00000000,
  68. /*042d*/ 0x00000000,
  69. /*042e*/ 0x00000000,
  70. /*042f*/ 0x00000000,
  71. /*0430*/ 0x00000000,
  72. /*0431*/ 0x00000000,
  73. /*0432*/ 0x00000000,
  74. /*0433*/ 0x00200000,
  75. /*0434*/ 0x08200820,
  76. /*0435*/ 0x08200820,
  77. /*0436*/ 0x08200820,
  78. /*0437*/ 0x08200820,
  79. /*0438*/ 0x08200820,
  80. /*0439*/ 0x00000820,
  81. /*043a*/ 0x03000300,
  82. /*043b*/ 0x03000300,
  83. /*043c*/ 0x03000300,
  84. /*043d*/ 0x03000300,
  85. /*043e*/ 0x00000300,
  86. /*043f*/ 0x00000000,
  87. /*0440*/ 0x00000000,
  88. /*0441*/ 0x00000000,
  89. /*0442*/ 0x00000000,
  90. /*0443*/ 0x00a000a0,
  91. /*0444*/ 0x00a000a0,
  92. /*0445*/ 0x00a000a0,
  93. /*0446*/ 0x00a000a0,
  94. /*0447*/ 0x00a000a0,
  95. /*0448*/ 0x00a000a0,
  96. /*0449*/ 0x00a000a0,
  97. /*044a*/ 0x00a000a0,
  98. /*044b*/ 0x00a000a0,
  99. /*044c*/ 0x01040109,
  100. /*044d*/ 0x00000200,
  101. /*044e*/ 0x01000000,
  102. /*044f*/ 0x00000200,
  103. /*0450*/ 0x4041a151,
  104. /*0451*/ 0xc00141a0,
  105. /*0452*/ 0x0e0100c0,
  106. /*0453*/ 0x0010000c,
  107. /*0454*/ 0x0c064208,
  108. /*0455*/ 0x000f0c18,
  109. /*0456*/ 0x00e00140,
  110. /*0457*/ 0x00000c20
  111. };
  112. static const uint32_t DDR_PHY_ADR_V_REGSET_H3[DDR_PHY_ADR_V_REGSET_NUM_H3] = {
  113. /*0600*/ 0x00000000,
  114. /*0601*/ 0x00000000,
  115. /*0602*/ 0x00000000,
  116. /*0603*/ 0x00000000,
  117. /*0604*/ 0x00000000,
  118. /*0605*/ 0x00000000,
  119. /*0606*/ 0x00000002,
  120. /*0607*/ 0x00000000,
  121. /*0608*/ 0x00000000,
  122. /*0609*/ 0x00000000,
  123. /*060a*/ 0x00400320,
  124. /*060b*/ 0x00000040,
  125. /*060c*/ 0x00dcba98,
  126. /*060d*/ 0x00000000,
  127. /*060e*/ 0x00dcba98,
  128. /*060f*/ 0x01000000,
  129. /*0610*/ 0x00020003,
  130. /*0611*/ 0x00000000,
  131. /*0612*/ 0x00000000,
  132. /*0613*/ 0x00000000,
  133. /*0614*/ 0x00002a01,
  134. /*0615*/ 0x00000015,
  135. /*0616*/ 0x00000015,
  136. /*0617*/ 0x0000002a,
  137. /*0618*/ 0x00000033,
  138. /*0619*/ 0x0000000c,
  139. /*061a*/ 0x0000000c,
  140. /*061b*/ 0x00000033,
  141. /*061c*/ 0x00418820,
  142. /*061d*/ 0x003f0000,
  143. /*061e*/ 0x0000003f,
  144. /*061f*/ 0x0002006e,
  145. /*0620*/ 0x02000200,
  146. /*0621*/ 0x02000200,
  147. /*0622*/ 0x00000200,
  148. /*0623*/ 0x42080010,
  149. /*0624*/ 0x00000003
  150. };
  151. static const uint32_t DDR_PHY_ADR_I_REGSET_H3[DDR_PHY_ADR_I_REGSET_NUM_H3] = {
  152. /*0680*/ 0x04040404,
  153. /*0681*/ 0x00000404,
  154. /*0682*/ 0x00000000,
  155. /*0683*/ 0x00000000,
  156. /*0684*/ 0x00000000,
  157. /*0685*/ 0x00000000,
  158. /*0686*/ 0x00000002,
  159. /*0687*/ 0x00000000,
  160. /*0688*/ 0x00000000,
  161. /*0689*/ 0x00000000,
  162. /*068a*/ 0x00400320,
  163. /*068b*/ 0x00000040,
  164. /*068c*/ 0x00000000,
  165. /*068d*/ 0x00000000,
  166. /*068e*/ 0x00000000,
  167. /*068f*/ 0x01000000,
  168. /*0690*/ 0x00020003,
  169. /*0691*/ 0x00000000,
  170. /*0692*/ 0x00000000,
  171. /*0693*/ 0x00000000,
  172. /*0694*/ 0x00002a01,
  173. /*0695*/ 0x00000015,
  174. /*0696*/ 0x00000015,
  175. /*0697*/ 0x0000002a,
  176. /*0698*/ 0x00000033,
  177. /*0699*/ 0x0000000c,
  178. /*069a*/ 0x0000000c,
  179. /*069b*/ 0x00000033,
  180. /*069c*/ 0x00000000,
  181. /*069d*/ 0x00000000,
  182. /*069e*/ 0x00000000,
  183. /*069f*/ 0x0002006e,
  184. /*06a0*/ 0x02000200,
  185. /*06a1*/ 0x02000200,
  186. /*06a2*/ 0x00000200,
  187. /*06a3*/ 0x42080010,
  188. /*06a4*/ 0x00000003
  189. };
  190. static const uint32_t DDR_PHY_ADR_G_REGSET_H3[DDR_PHY_ADR_G_REGSET_NUM_H3] = {
  191. /*0700*/ 0x00000001,
  192. /*0701*/ 0x00000000,
  193. /*0702*/ 0x00000005,
  194. /*0703*/ 0x04000f00,
  195. /*0704*/ 0x00020080,
  196. /*0705*/ 0x00020055,
  197. /*0706*/ 0x00000000,
  198. /*0707*/ 0x00000000,
  199. /*0708*/ 0x00000000,
  200. /*0709*/ 0x00000050,
  201. /*070a*/ 0x00000000,
  202. /*070b*/ 0x01010100,
  203. /*070c*/ 0x00000200,
  204. /*070d*/ 0x00001102,
  205. /*070e*/ 0x00000000,
  206. /*070f*/ 0x000f1f00,
  207. /*0710*/ 0x0f1f0f1f,
  208. /*0711*/ 0x0f1f0f1f,
  209. /*0712*/ 0x00020003,
  210. /*0713*/ 0x02000200,
  211. /*0714*/ 0x00000200,
  212. /*0715*/ 0x00001102,
  213. /*0716*/ 0x00000064,
  214. /*0717*/ 0x00000000,
  215. /*0718*/ 0x00000000,
  216. /*0719*/ 0x00000502,
  217. /*071a*/ 0x027f6e00,
  218. /*071b*/ 0x007f007f,
  219. /*071c*/ 0x00007f3c,
  220. /*071d*/ 0x00047f6e,
  221. /*071e*/ 0x0003154f,
  222. /*071f*/ 0x0001154f,
  223. /*0720*/ 0x0001154f,
  224. /*0721*/ 0x0001154f,
  225. /*0722*/ 0x0001154f,
  226. /*0723*/ 0x00003fee,
  227. /*0724*/ 0x0001154f,
  228. /*0725*/ 0x00003fee,
  229. /*0726*/ 0x0001154f,
  230. /*0727*/ 0x00007f3c,
  231. /*0728*/ 0x0001154f,
  232. /*0729*/ 0x00000000,
  233. /*072a*/ 0x00000000,
  234. /*072b*/ 0x00000000,
  235. /*072c*/ 0x65000000,
  236. /*072d*/ 0x00000000,
  237. /*072e*/ 0x00000000,
  238. /*072f*/ 0x00000201,
  239. /*0730*/ 0x00000000,
  240. /*0731*/ 0x00000000,
  241. /*0732*/ 0x00000000,
  242. /*0733*/ 0x00000000,
  243. /*0734*/ 0x00000000,
  244. /*0735*/ 0x00000000,
  245. /*0736*/ 0x00000000,
  246. /*0737*/ 0x00000000,
  247. /*0738*/ 0x00000000,
  248. /*0739*/ 0x00000000,
  249. /*073a*/ 0x00000000
  250. };
  251. static const uint32_t DDR_PI_REGSET_H3[DDR_PI_REGSET_NUM_H3] = {
  252. /*0200*/ 0x00000b00,
  253. /*0201*/ 0x00000100,
  254. /*0202*/ 0x00000000,
  255. /*0203*/ 0x0000ffff,
  256. /*0204*/ 0x00000000,
  257. /*0205*/ 0x0000ffff,
  258. /*0206*/ 0x00000000,
  259. /*0207*/ 0x304cffff,
  260. /*0208*/ 0x00000200,
  261. /*0209*/ 0x00000200,
  262. /*020a*/ 0x00000200,
  263. /*020b*/ 0x00000200,
  264. /*020c*/ 0x0000304c,
  265. /*020d*/ 0x00000200,
  266. /*020e*/ 0x00000200,
  267. /*020f*/ 0x00000200,
  268. /*0210*/ 0x00000200,
  269. /*0211*/ 0x0000304c,
  270. /*0212*/ 0x00000200,
  271. /*0213*/ 0x00000200,
  272. /*0214*/ 0x00000200,
  273. /*0215*/ 0x00000200,
  274. /*0216*/ 0x00010000,
  275. /*0217*/ 0x00000003,
  276. /*0218*/ 0x01000001,
  277. /*0219*/ 0x00000000,
  278. /*021a*/ 0x00000000,
  279. /*021b*/ 0x00000000,
  280. /*021c*/ 0x00000000,
  281. /*021d*/ 0x00000000,
  282. /*021e*/ 0x00000000,
  283. /*021f*/ 0x00000000,
  284. /*0220*/ 0x00000000,
  285. /*0221*/ 0x00000000,
  286. /*0222*/ 0x00000000,
  287. /*0223*/ 0x00000000,
  288. /*0224*/ 0x00000000,
  289. /*0225*/ 0x00000000,
  290. /*0226*/ 0x00000000,
  291. /*0227*/ 0x00000000,
  292. /*0228*/ 0x00000000,
  293. /*0229*/ 0x0f000101,
  294. /*022a*/ 0x08492d25,
  295. /*022b*/ 0x500e0c04,
  296. /*022c*/ 0x0002500e,
  297. /*022d*/ 0x00460003,
  298. /*022e*/ 0x182600cf,
  299. /*022f*/ 0x182600cf,
  300. /*0230*/ 0x00000005,
  301. /*0231*/ 0x00000000,
  302. /*0232*/ 0x00000000,
  303. /*0233*/ 0x00000000,
  304. /*0234*/ 0x00000000,
  305. /*0235*/ 0x00000000,
  306. /*0236*/ 0x00000000,
  307. /*0237*/ 0x00000000,
  308. /*0238*/ 0x01000000,
  309. /*0239*/ 0x00040404,
  310. /*023a*/ 0x01280a00,
  311. /*023b*/ 0x00000000,
  312. /*023c*/ 0x000f0000,
  313. /*023d*/ 0x00001803,
  314. /*023e*/ 0x00000000,
  315. /*023f*/ 0x00000000,
  316. /*0240*/ 0x00060002,
  317. /*0241*/ 0x00010001,
  318. /*0242*/ 0x01000101,
  319. /*0243*/ 0x04020201,
  320. /*0244*/ 0x00080804,
  321. /*0245*/ 0x00000000,
  322. /*0246*/ 0x08030000,
  323. /*0247*/ 0x15150408,
  324. /*0248*/ 0x00000000,
  325. /*0249*/ 0x00000000,
  326. /*024a*/ 0x00000000,
  327. /*024b*/ 0x001e0f0f,
  328. /*024c*/ 0x00000000,
  329. /*024d*/ 0x01000300,
  330. /*024e*/ 0x00000000,
  331. /*024f*/ 0x00000000,
  332. /*0250*/ 0x01000000,
  333. /*0251*/ 0x00010101,
  334. /*0252*/ 0x000e0e0e,
  335. /*0253*/ 0x000c0c0c,
  336. /*0254*/ 0x02060601,
  337. /*0255*/ 0x00000000,
  338. /*0256*/ 0x00000003,
  339. /*0257*/ 0x00181703,
  340. /*0258*/ 0x00280006,
  341. /*0259*/ 0x00280016,
  342. /*025a*/ 0x00000016,
  343. /*025b*/ 0x00000000,
  344. /*025c*/ 0x00000000,
  345. /*025d*/ 0x00000000,
  346. /*025e*/ 0x140a0000,
  347. /*025f*/ 0x0005010a,
  348. /*0260*/ 0x03018d03,
  349. /*0261*/ 0x000a018d,
  350. /*0262*/ 0x00060100,
  351. /*0263*/ 0x01000006,
  352. /*0264*/ 0x018e018e,
  353. /*0265*/ 0x018e0100,
  354. /*0266*/ 0x1111018e,
  355. /*0267*/ 0x10010204,
  356. /*0268*/ 0x09090650,
  357. /*0269*/ 0x20110202,
  358. /*026a*/ 0x00201000,
  359. /*026b*/ 0x00201000,
  360. /*026c*/ 0x04041000,
  361. /*026d*/ 0x18020100,
  362. /*026e*/ 0x00010118,
  363. /*026f*/ 0x004b004a,
  364. /*0270*/ 0x050f0000,
  365. /*0271*/ 0x0c01021e,
  366. /*0272*/ 0x34000000,
  367. /*0273*/ 0x00000000,
  368. /*0274*/ 0x00000000,
  369. /*0275*/ 0x00000000,
  370. /*0276*/ 0x312ed400,
  371. /*0277*/ 0xd4111132,
  372. /*0278*/ 0x1132312e,
  373. /*0279*/ 0x312ed411,
  374. /*027a*/ 0x00111132,
  375. /*027b*/ 0x32312ed4,
  376. /*027c*/ 0x2ed41111,
  377. /*027d*/ 0x11113231,
  378. /*027e*/ 0x32312ed4,
  379. /*027f*/ 0xd4001111,
  380. /*0280*/ 0x1132312e,
  381. /*0281*/ 0x312ed411,
  382. /*0282*/ 0xd4111132,
  383. /*0283*/ 0x1132312e,
  384. /*0284*/ 0x2ed40011,
  385. /*0285*/ 0x11113231,
  386. /*0286*/ 0x32312ed4,
  387. /*0287*/ 0x2ed41111,
  388. /*0288*/ 0x11113231,
  389. /*0289*/ 0x00020000,
  390. /*028a*/ 0x018d018d,
  391. /*028b*/ 0x0c08018d,
  392. /*028c*/ 0x1f121d22,
  393. /*028d*/ 0x4301b344,
  394. /*028e*/ 0x10172006,
  395. /*028f*/ 0x121d220c,
  396. /*0290*/ 0x01b3441f,
  397. /*0291*/ 0x17200643,
  398. /*0292*/ 0x1d220c10,
  399. /*0293*/ 0x00001f12,
  400. /*0294*/ 0x4301b344,
  401. /*0295*/ 0x10172006,
  402. /*0296*/ 0x00020002,
  403. /*0297*/ 0x00020002,
  404. /*0298*/ 0x00020002,
  405. /*0299*/ 0x00020002,
  406. /*029a*/ 0x00020002,
  407. /*029b*/ 0x00000000,
  408. /*029c*/ 0x00000000,
  409. /*029d*/ 0x00000000,
  410. /*029e*/ 0x00000000,
  411. /*029f*/ 0x00000000,
  412. /*02a0*/ 0x00000000,
  413. /*02a1*/ 0x00000000,
  414. /*02a2*/ 0x00000000,
  415. /*02a3*/ 0x00000000,
  416. /*02a4*/ 0x00000000,
  417. /*02a5*/ 0x00000000,
  418. /*02a6*/ 0x00000000,
  419. /*02a7*/ 0x01000400,
  420. /*02a8*/ 0x00304c00,
  421. /*02a9*/ 0x0001e2f8,
  422. /*02aa*/ 0x0000304c,
  423. /*02ab*/ 0x0001e2f8,
  424. /*02ac*/ 0x0000304c,
  425. /*02ad*/ 0x0001e2f8,
  426. /*02ae*/ 0x08000000,
  427. /*02af*/ 0x00000100,
  428. /*02b0*/ 0x00000000,
  429. /*02b1*/ 0x00000000,
  430. /*02b2*/ 0x00000000,
  431. /*02b3*/ 0x00000000,
  432. /*02b4*/ 0x00000002
  433. };