]> Git Repo - J-u-boot.git/blob - drivers/ram/starfive/ddrphy_utils.c
d6dd6ee7a859af770da5c3ecf5cbad4beaa4adc2
[J-u-boot.git] / drivers / ram / starfive / ddrphy_utils.c
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Copyright (C) 2022 StarFive Technology Co., Ltd.
4  * Author: Yanhong Wang<[email protected]>
5  */
6
7 #include <linux/kernel.h>
8 #include <asm/io.h>
9
10 static const  u32 ddr_phy_data[] = {
11         0x4f0,
12         0x0,
13         0x1030200,
14         0x0,
15         0x0,
16         0x3000000,
17         0x1000001,
18         0x3000400,
19         0x1000001,
20         0x0,
21         0x0,
22         0x1000001,
23         0x0,
24         0xc00004,
25         0xcc0008,
26         0x660601,
27         0x3,
28         0x0,
29         0x1,
30         0xaaaa,
31         0x5555,
32         0xb5b5,
33         0x4a4a,
34         0x5656,
35         0xa9a9,
36         0xa9a9,
37         0xb5b5,
38         0x0,
39         0x0,
40         0x8000000,
41         0x4000008,
42         0x408,
43         0xe4e400,
44         0x71020,
45         0xc0020,
46         0x620,
47         0x100,
48         0x55555555,
49         0xaaaaaaaa,
50         0x55555555,
51         0xaaaaaaaa,
52         0x5555,
53         0x1000100,
54         0x800180,
55         0x1,
56         0x0,
57         0x0,
58         0x0,
59         0x0,
60         0x0,
61         0x0,
62         0x0,
63         0x0,
64         0x0,
65         0x0,
66         0x0,
67         0x0,
68         0x0,
69         0x0,
70         0x0,
71         0x0,
72         0x0,
73         0x0,
74         0x0,
75         0x0,
76         0x4,
77         0x20,
78         0x0,
79         0x0,
80         0x0,
81         0x0,
82         0x7ff0000,
83         0x20008008,
84         0x810,
85         0x40100,
86         0x0,
87         0x1880c01,
88         0x2003880c,
89         0x20000125,
90         0x7ff0200,
91         0x101,
92         0x0,
93         0x0,
94         0x0,
95         0x0,
96         0x0,
97         0x0,
98         0x0,
99         0x20000,
100         0x51515052,
101         0x31c06000,
102         0x11f0004,
103         0xc0c001,
104         0x3000000,
105         0x30202,
106         0x42100010,
107         0x10c053e,
108         0xf0c20,
109         0x1000140,
110         0xa30120,
111         0xc00,
112         0x210,
113         0x200,
114         0x2800000,
115         0x80800101,
116         0x3,
117         0x76543210,
118         0x8,
119         0x2800280,
120         0x2800280,
121         0x2800280,
122         0x2800280,
123         0x280,
124         0x8000,
125         0x800080,
126         0x800080,
127         0x800080,
128         0x800080,
129         0x800080,
130         0x800080,
131         0x800080,
132         0x800080,
133         0x6e0080,
134         0x1a00003,
135         0x0,
136         0x30000,
137         0x80200,
138         0x0,
139         0x20202020,
140         0x20202020,
141         0x2020,
142         0x0,
143         0x0,
144         0x0,
145         0x0,
146         0x0,
147         0x0,
148         0x0,
149         0x0,
150         0x0,
151         0x0,
152         0x0,
153         0x0,
154         0x0,
155         0x0,
156         0x0,
157         0x0,
158         0x0,
159         0x0,
160         0x0,
161         0x0,
162         0x0,
163         0x0,
164         0x0,
165         0x0,
166         0x0,
167         0x0,
168         0x0,
169         0x0,
170         0x0,
171         0x0,
172         0x0,
173         0x0,
174         0x0,
175         0x0,
176         0x0,
177         0x0,
178         0x0,
179         0x0,
180         0x0,
181         0x0,
182         0x0,
183         0x0,
184         0x0,
185         0x0,
186         0x0,
187         0x0,
188         0x0,
189         0x0,
190         0x0,
191         0x0,
192         0x0,
193         0x0,
194         0x0,
195         0x0,
196         0x0,
197         0x0,
198         0x0,
199         0x0,
200         0x0,
201         0x0,
202         0x0,
203         0x0,
204         0x0,
205         0x0,
206         0x0,
207         0x0,
208         0x0,
209         0x0,
210         0x0,
211         0x0,
212         0x0,
213         0x0,
214         0x0,
215         0x0,
216         0x0,
217         0x0,
218         0x0,
219         0x0,
220         0x0,
221         0x0,
222         0x0,
223         0x0,
224         0x0,
225         0x0,
226         0x0,
227         0x0,
228         0x0,
229         0x0,
230         0x0,
231         0x0,
232         0x0,
233         0x0,
234         0x0,
235         0x0,
236         0x0,
237         0x0,
238         0x0,
239         0x0,
240         0x0,
241         0x0,
242         0x0,
243         0x0,
244         0x0,
245         0x0,
246         0x0,
247         0x0,
248         0x0,
249         0x0,
250         0x0,
251         0x0,
252         0x0,
253         0x0,
254         0x0,
255         0x0,
256         0x0,
257         0x0,
258         0x0,
259         0x0,
260         0x0,
261         0x0,
262         0x0,
263         0x0,
264         0x0,
265         0x0,
266         0x0,
267         0x4f0,
268         0x0,
269         0x1030200,
270         0x0,
271         0x0,
272         0x3000000,
273         0x1000001,
274         0x3000400,
275         0x1000001,
276         0x0,
277         0x0,
278         0x1000001,
279         0x0,
280         0xc00004,
281         0xcc0008,
282         0x660601,
283         0x3,
284         0x0,
285         0x1,
286         0xaaaa,
287         0x5555,
288         0xb5b5,
289         0x4a4a,
290         0x5656,
291         0xa9a9,
292         0xa9a9,
293         0xb5b5,
294         0x0,
295         0x0,
296         0x8000000,
297         0x4000008,
298         0x408,
299         0xe4e400,
300         0x71020,
301         0xc0020,
302         0x620,
303         0x100,
304         0x55555555,
305         0xaaaaaaaa,
306         0x55555555,
307         0xaaaaaaaa,
308         0x5555,
309         0x1000100,
310         0x800180,
311         0x0,
312         0x0,
313         0x0,
314         0x0,
315         0x0,
316         0x0,
317         0x0,
318         0x0,
319         0x0,
320         0x0,
321         0x0,
322         0x0,
323         0x0,
324         0x0,
325         0x0,
326         0x0,
327         0x0,
328         0x0,
329         0x0,
330         0x0,
331         0x0,
332         0x4,
333         0x20,
334         0x0,
335         0x0,
336         0x0,
337         0x0,
338         0x7ff0000,
339         0x20008008,
340         0x810,
341         0x40100,
342         0x0,
343         0x1880c01,
344         0x2003880c,
345         0x20000125,
346         0x7ff0200,
347         0x101,
348         0x0,
349         0x0,
350         0x0,
351         0x0,
352         0x0,
353         0x0,
354         0x0,
355         0x20000,
356         0x51515052,
357         0x31c06000,
358         0x11f0004,
359         0xc0c001,
360         0x3000000,
361         0x30202,
362         0x42100010,
363         0x10c053e,
364         0xf0c20,
365         0x1000140,
366         0xa30120,
367         0xc00,
368         0x210,
369         0x200,
370         0x2800000,
371         0x80800101,
372         0x3,
373         0x76543210,
374         0x8,
375         0x2800280,
376         0x2800280,
377         0x2800280,
378         0x2800280,
379         0x280,
380         0x8000,
381         0x800080,
382         0x800080,
383         0x800080,
384         0x800080,
385         0x800080,
386         0x800080,
387         0x800080,
388         0x800080,
389         0x6e0080,
390         0x1a00003,
391         0x0,
392         0x30000,
393         0x80200,
394         0x0,
395         0x20202020,
396         0x20202020,
397         0x2020,
398         0x0,
399         0x0,
400         0x0,
401         0x0,
402         0x0,
403         0x0,
404         0x0,
405         0x0,
406         0x0,
407         0x0,
408         0x0,
409         0x0,
410         0x0,
411         0x0,
412         0x0,
413         0x0,
414         0x0,
415         0x0,
416         0x0,
417         0x0,
418         0x0,
419         0x0,
420         0x0,
421         0x0,
422         0x0,
423         0x0,
424         0x0,
425         0x0,
426         0x0,
427         0x0,
428         0x0,
429         0x0,
430         0x0,
431         0x0,
432         0x0,
433         0x0,
434         0x0,
435         0x0,
436         0x0,
437         0x0,
438         0x0,
439         0x0,
440         0x0,
441         0x0,
442         0x0,
443         0x0,
444         0x0,
445         0x0,
446         0x0,
447         0x0,
448         0x0,
449         0x0,
450         0x0,
451         0x0,
452         0x0,
453         0x0,
454         0x0,
455         0x0,
456         0x0,
457         0x0,
458         0x0,
459         0x0,
460         0x0,
461         0x0,
462         0x0,
463         0x0,
464         0x0,
465         0x0,
466         0x0,
467         0x0,
468         0x0,
469         0x0,
470         0x0,
471         0x0,
472         0x0,
473         0x0,
474         0x0,
475         0x0,
476         0x0,
477         0x0,
478         0x0,
479         0x0,
480         0x0,
481         0x0,
482         0x0,
483         0x0,
484         0x0,
485         0x0,
486         0x0,
487         0x0,
488         0x0,
489         0x0,
490         0x0,
491         0x0,
492         0x0,
493         0x0,
494         0x0,
495         0x0,
496         0x0,
497         0x0,
498         0x0,
499         0x0,
500         0x0,
501         0x0,
502         0x0,
503         0x0,
504         0x0,
505         0x0,
506         0x0,
507         0x0,
508         0x0,
509         0x0,
510         0x0,
511         0x0,
512         0x0,
513         0x0,
514         0x0,
515         0x0,
516         0x0,
517         0x0,
518         0x0,
519         0x0,
520         0x0,
521         0x0,
522         0x0,
523         0x4f0,
524         0x0,
525         0x1030200,
526         0x0,
527         0x0,
528         0x3000000,
529         0x1000001,
530         0x3000400,
531         0x1000001,
532         0x0,
533         0x0,
534         0x1000001,
535         0x0,
536         0xc00004,
537         0xcc0008,
538         0x660601,
539         0x3,
540         0x0,
541         0x1,
542         0xaaaa,
543         0x5555,
544         0xb5b5,
545         0x4a4a,
546         0x5656,
547         0xa9a9,
548         0xa9a9,
549         0xb5b5,
550         0x0,
551         0x0,
552         0x8000000,
553         0x4000008,
554         0x408,
555         0xe4e400,
556         0x71020,
557         0xc0020,
558         0x620,
559         0x100,
560         0x55555555,
561         0xaaaaaaaa,
562         0x55555555,
563         0xaaaaaaaa,
564         0x5555,
565         0x1000100,
566         0x800180,
567         0x1,
568         0x0,
569         0x0,
570         0x0,
571         0x0,
572         0x0,
573         0x0,
574         0x0,
575         0x0,
576         0x0,
577         0x0,
578         0x0,
579         0x0,
580         0x0,
581         0x0,
582         0x0,
583         0x0,
584         0x0,
585         0x0,
586         0x0,
587         0x0,
588         0x4,
589         0x20,
590         0x0,
591         0x0,
592         0x0,
593         0x0,
594         0x7ff0000,
595         0x20008008,
596         0x810,
597         0x40100,
598         0x0,
599         0x1880c01,
600         0x2003880c,
601         0x20000125,
602         0x7ff0200,
603         0x101,
604         0x0,
605         0x0,
606         0x0,
607         0x0,
608         0x0,
609         0x0,
610         0x0,
611         0x20000,
612         0x51515052,
613         0x31c06000,
614         0x11f0004,
615         0xc0c001,
616         0x3000000,
617         0x30202,
618         0x42100010,
619         0x10c053e,
620         0xf0c20,
621         0x1000140,
622         0xa30120,
623         0xc00,
624         0x210,
625         0x200,
626         0x2800000,
627         0x80800101,
628         0x3,
629         0x76543210,
630         0x8,
631         0x2800280,
632         0x2800280,
633         0x2800280,
634         0x2800280,
635         0x280,
636         0x8000,
637         0x800080,
638         0x800080,
639         0x800080,
640         0x800080,
641         0x800080,
642         0x800080,
643         0x800080,
644         0x800080,
645         0x6e0080,
646         0x1a00003,
647         0x0,
648         0x30000,
649         0x80200,
650         0x0,
651         0x20202020,
652         0x20202020,
653         0x2020,
654         0x0,
655         0x0,
656         0x0,
657         0x0,
658         0x0,
659         0x0,
660         0x0,
661         0x0,
662         0x0,
663         0x0,
664         0x0,
665         0x0,
666         0x0,
667         0x0,
668         0x0,
669         0x0,
670         0x0,
671         0x0,
672         0x0,
673         0x0,
674         0x0,
675         0x0,
676         0x0,
677         0x0,
678         0x0,
679         0x0,
680         0x0,
681         0x0,
682         0x0,
683         0x0,
684         0x0,
685         0x0,
686         0x0,
687         0x0,
688         0x0,
689         0x0,
690         0x0,
691         0x0,
692         0x0,
693         0x0,
694         0x0,
695         0x0,
696         0x0,
697         0x0,
698         0x0,
699         0x0,
700         0x0,
701         0x0,
702         0x0,
703         0x0,
704         0x0,
705         0x0,
706         0x0,
707         0x0,
708         0x0,
709         0x0,
710         0x0,
711         0x0,
712         0x0,
713         0x0,
714         0x0,
715         0x0,
716         0x0,
717         0x0,
718         0x0,
719         0x0,
720         0x0,
721         0x0,
722         0x0,
723         0x0,
724         0x0,
725         0x0,
726         0x0,
727         0x0,
728         0x0,
729         0x0,
730         0x0,
731         0x0,
732         0x0,
733         0x0,
734         0x0,
735         0x0,
736         0x0,
737         0x0,
738         0x0,
739         0x0,
740         0x0,
741         0x0,
742         0x0,
743         0x0,
744         0x0,
745         0x0,
746         0x0,
747         0x0,
748         0x0,
749         0x0,
750         0x0,
751         0x0,
752         0x0,
753         0x0,
754         0x0,
755         0x0,
756         0x0,
757         0x0,
758         0x0,
759         0x0,
760         0x0,
761         0x0,
762         0x0,
763         0x0,
764         0x0,
765         0x0,
766         0x0,
767         0x0,
768         0x0,
769         0x0,
770         0x0,
771         0x0,
772         0x0,
773         0x0,
774         0x0,
775         0x0,
776         0x0,
777         0x0,
778         0x0,
779         0x4f0,
780         0x0,
781         0x1030200,
782         0x0,
783         0x0,
784         0x3000000,
785         0x1000001,
786         0x3000400,
787         0x1000001,
788         0x0,
789         0x0,
790         0x1000001,
791         0x0,
792         0xc00004,
793         0xcc0008,
794         0x660601,
795         0x3,
796         0x0,
797         0x1,
798         0xaaaa,
799         0x5555,
800         0xb5b5,
801         0x4a4a,
802         0x5656,
803         0xa9a9,
804         0xa9a9,
805         0xb5b5,
806         0x0,
807         0x0,
808         0x8000000,
809         0x4000008,
810         0x408,
811         0xe4e400,
812         0x71020,
813         0xc0020,
814         0x620,
815         0x100,
816         0x55555555,
817         0xaaaaaaaa,
818         0x55555555,
819         0xaaaaaaaa,
820         0x5555,
821         0x1000100,
822         0x800180,
823         0x0,
824         0x0,
825         0x0,
826         0x0,
827         0x0,
828         0x0,
829         0x0,
830         0x0,
831         0x0,
832         0x0,
833         0x0,
834         0x0,
835         0x0,
836         0x0,
837         0x0,
838         0x0,
839         0x0,
840         0x0,
841         0x0,
842         0x0,
843         0x0,
844         0x4,
845         0x20,
846         0x0,
847         0x0,
848         0x0,
849         0x0,
850         0x7ff0000,
851         0x20008008,
852         0x810,
853         0x40100,
854         0x0,
855         0x1880c01,
856         0x2003880c,
857         0x20000125,
858         0x7ff0200,
859         0x101,
860         0x0,
861         0x0,
862         0x0,
863         0x0,
864         0x0,
865         0x0,
866         0x0,
867         0x20000,
868         0x51515052,
869         0x31c06000,
870         0x11f0004,
871         0xc0c001,
872         0x3000000,
873         0x30202,
874         0x42100010,
875         0x10c053e,
876         0xf0c20,
877         0x1000140,
878         0xa30120,
879         0xc00,
880         0x210,
881         0x200,
882         0x2800000,
883         0x80800101,
884         0x3,
885         0x76543210,
886         0x8,
887         0x2800280,
888         0x2800280,
889         0x2800280,
890         0x2800280,
891         0x280,
892         0x8000,
893         0x800080,
894         0x800080,
895         0x800080,
896         0x800080,
897         0x800080,
898         0x800080,
899         0x800080,
900         0x800080,
901         0x6e0080,
902         0x1a00003,
903         0x0,
904         0x30000,
905         0x80200,
906         0x0,
907         0x20202020,
908         0x20202020,
909         0x2020,
910         0x0,
911         0x0,
912         0x0,
913         0x0,
914         0x0,
915         0x0,
916         0x0,
917         0x0,
918         0x0,
919         0x0,
920         0x0,
921         0x0,
922         0x0,
923         0x0,
924         0x0,
925         0x0,
926         0x0,
927         0x0,
928         0x0,
929         0x0,
930         0x0,
931         0x0,
932         0x0,
933         0x0,
934         0x0,
935         0x0,
936         0x0,
937         0x0,
938         0x0,
939         0x0,
940         0x0,
941         0x0,
942         0x0,
943         0x0,
944         0x0,
945         0x0,
946         0x0,
947         0x0,
948         0x0,
949         0x0,
950         0x0,
951         0x0,
952         0x0,
953         0x0,
954         0x0,
955         0x0,
956         0x0,
957         0x0,
958         0x0,
959         0x0,
960         0x0,
961         0x0,
962         0x0,
963         0x0,
964         0x0,
965         0x0,
966         0x0,
967         0x0,
968         0x0,
969         0x0,
970         0x0,
971         0x0,
972         0x0,
973         0x0,
974         0x0,
975         0x0,
976         0x0,
977         0x0,
978         0x0,
979         0x0,
980         0x0,
981         0x0,
982         0x0,
983         0x0,
984         0x0,
985         0x0,
986         0x0,
987         0x0,
988         0x0,
989         0x0,
990         0x0,
991         0x0,
992         0x0,
993         0x0,
994         0x0,
995         0x0,
996         0x0,
997         0x0,
998         0x0,
999         0x0,
1000         0x0,
1001         0x0,
1002         0x0,
1003         0x0,
1004         0x0,
1005         0x0,
1006         0x0,
1007         0x0,
1008         0x0,
1009         0x0,
1010         0x0,
1011         0x0,
1012         0x0,
1013         0x0,
1014         0x0,
1015         0x0,
1016         0x0,
1017         0x0,
1018         0x0,
1019         0x0,
1020         0x0,
1021         0x0,
1022         0x0,
1023         0x0,
1024         0x0,
1025         0x0,
1026         0x0,
1027         0x0,
1028         0x0,
1029         0x0,
1030         0x0,
1031         0x0,
1032         0x0,
1033         0x0,
1034         0x0,
1035         0x0,
1036         0x0,
1037         0x0,
1038         0x0,
1039         0x0,
1040         0x100,
1041         0x200,
1042         0x0,
1043         0x0,
1044         0x0,
1045         0x0,
1046         0x400000,
1047         0x80,
1048         0xdcba98,
1049         0x3000000,
1050         0x0,
1051         0x0,
1052         0x0,
1053         0x0,
1054         0x0,
1055         0x0,
1056         0x0,
1057         0x2a,
1058         0x15,
1059         0x15,
1060         0x2a,
1061         0x33,
1062         0xc,
1063         0xc,
1064         0x33,
1065         0xa418820,
1066         0x3f0000,
1067         0x13f,
1068         0x20202000,
1069         0x202020,
1070         0x20008008,
1071         0x810,
1072         0x0,
1073         0x255,
1074         0x30000,
1075         0x300,
1076         0x300,
1077         0x300,
1078         0x300,
1079         0x300,
1080         0x42080010,
1081         0x33e,
1082         0x1010002,
1083         0x80,
1084         0x0,
1085         0x0,
1086         0x0,
1087         0x0,
1088         0x0,
1089         0x0,
1090         0x0,
1091         0x0,
1092         0x0,
1093         0x0,
1094         0x0,
1095         0x0,
1096         0x0,
1097         0x0,
1098         0x0,
1099         0x0,
1100         0x0,
1101         0x0,
1102         0x0,
1103         0x0,
1104         0x0,
1105         0x0,
1106         0x0,
1107         0x0,
1108         0x0,
1109         0x0,
1110         0x0,
1111         0x0,
1112         0x0,
1113         0x0,
1114         0x0,
1115         0x0,
1116         0x0,
1117         0x0,
1118         0x0,
1119         0x0,
1120         0x0,
1121         0x0,
1122         0x0,
1123         0x0,
1124         0x0,
1125         0x0,
1126         0x0,
1127         0x0,
1128         0x0,
1129         0x0,
1130         0x0,
1131         0x0,
1132         0x0,
1133         0x0,
1134         0x0,
1135         0x0,
1136         0x0,
1137         0x0,
1138         0x0,
1139         0x0,
1140         0x0,
1141         0x0,
1142         0x0,
1143         0x0,
1144         0x0,
1145         0x0,
1146         0x0,
1147         0x0,
1148         0x0,
1149         0x0,
1150         0x0,
1151         0x0,
1152         0x0,
1153         0x0,
1154         0x0,
1155         0x0,
1156         0x0,
1157         0x0,
1158         0x0,
1159         0x0,
1160         0x0,
1161         0x0,
1162         0x0,
1163         0x0,
1164         0x0,
1165         0x0,
1166         0x0,
1167         0x0,
1168         0x0,
1169         0x0,
1170         0x0,
1171         0x0,
1172         0x0,
1173         0x0,
1174         0x0,
1175         0x0,
1176         0x0,
1177         0x0,
1178         0x0,
1179         0x0,
1180         0x0,
1181         0x0,
1182         0x0,
1183         0x0,
1184         0x0,
1185         0x0,
1186         0x0,
1187         0x0,
1188         0x0,
1189         0x0,
1190         0x0,
1191         0x0,
1192         0x0,
1193         0x0,
1194         0x0,
1195         0x0,
1196         0x0,
1197         0x0,
1198         0x0,
1199         0x0,
1200         0x0,
1201         0x0,
1202         0x0,
1203         0x0,
1204         0x0,
1205         0x0,
1206         0x0,
1207         0x0,
1208         0x0,
1209         0x0,
1210         0x0,
1211         0x0,
1212         0x0,
1213         0x0,
1214         0x0,
1215         0x0,
1216         0x0,
1217         0x0,
1218         0x0,
1219         0x0,
1220         0x0,
1221         0x0,
1222         0x0,
1223         0x0,
1224         0x0,
1225         0x0,
1226         0x0,
1227         0x0,
1228         0x0,
1229         0x0,
1230         0x0,
1231         0x0,
1232         0x0,
1233         0x0,
1234         0x0,
1235         0x0,
1236         0x0,
1237         0x0,
1238         0x0,
1239         0x0,
1240         0x0,
1241         0x0,
1242         0x0,
1243         0x0,
1244         0x0,
1245         0x0,
1246         0x0,
1247         0x0,
1248         0x0,
1249         0x0,
1250         0x0,
1251         0x0,
1252         0x0,
1253         0x0,
1254         0x0,
1255         0x0,
1256         0x0,
1257         0x0,
1258         0x0,
1259         0x0,
1260         0x0,
1261         0x0,
1262         0x0,
1263         0x0,
1264         0x0,
1265         0x0,
1266         0x0,
1267         0x0,
1268         0x0,
1269         0x0,
1270         0x0,
1271         0x0,
1272         0x0,
1273         0x0,
1274         0x0,
1275         0x0,
1276         0x0,
1277         0x0,
1278         0x0,
1279         0x0,
1280         0x0,
1281         0x0,
1282         0x0,
1283         0x0,
1284         0x0,
1285         0x0,
1286         0x0,
1287         0x0,
1288         0x0,
1289         0x0,
1290         0x0,
1291         0x0,
1292         0x0,
1293         0x0,
1294         0x0,
1295         0x0,
1296         0x100,
1297         0x200,
1298         0x0,
1299         0x0,
1300         0x0,
1301         0x0,
1302         0x400000,
1303         0x80,
1304         0xdcba98,
1305         0x3000000,
1306         0x0,
1307         0x0,
1308         0x0,
1309         0x0,
1310         0x0,
1311         0x0,
1312         0x0,
1313         0x2a,
1314         0x15,
1315         0x15,
1316         0x2a,
1317         0x33,
1318         0xc,
1319         0xc,
1320         0x33,
1321         0x0,
1322         0x0,
1323         0x0,
1324         0x20202000,
1325         0x202020,
1326         0x20008008,
1327         0x810,
1328         0x0,
1329         0x255,
1330         0x30000,
1331         0x300,
1332         0x300,
1333         0x300,
1334         0x300,
1335         0x300,
1336         0x42080010,
1337         0x33e,
1338         0x1010002,
1339         0x80,
1340         0x0,
1341         0x0,
1342         0x0,
1343         0x0,
1344         0x0,
1345         0x0,
1346         0x0,
1347         0x0,
1348         0x0,
1349         0x0,
1350         0x0,
1351         0x0,
1352         0x0,
1353         0x0,
1354         0x0,
1355         0x0,
1356         0x0,
1357         0x0,
1358         0x0,
1359         0x0,
1360         0x0,
1361         0x0,
1362         0x0,
1363         0x0,
1364         0x0,
1365         0x0,
1366         0x0,
1367         0x0,
1368         0x0,
1369         0x0,
1370         0x0,
1371         0x0,
1372         0x0,
1373         0x0,
1374         0x0,
1375         0x0,
1376         0x0,
1377         0x0,
1378         0x0,
1379         0x0,
1380         0x0,
1381         0x0,
1382         0x0,
1383         0x0,
1384         0x0,
1385         0x0,
1386         0x0,
1387         0x0,
1388         0x0,
1389         0x0,
1390         0x0,
1391         0x0,
1392         0x0,
1393         0x0,
1394         0x0,
1395         0x0,
1396         0x0,
1397         0x0,
1398         0x0,
1399         0x0,
1400         0x0,
1401         0x0,
1402         0x0,
1403         0x0,
1404         0x0,
1405         0x0,
1406         0x0,
1407         0x0,
1408         0x0,
1409         0x0,
1410         0x0,
1411         0x0,
1412         0x0,
1413         0x0,
1414         0x0,
1415         0x0,
1416         0x0,
1417         0x0,
1418         0x0,
1419         0x0,
1420         0x0,
1421         0x0,
1422         0x0,
1423         0x0,
1424         0x0,
1425         0x0,
1426         0x0,
1427         0x0,
1428         0x0,
1429         0x0,
1430         0x0,
1431         0x0,
1432         0x0,
1433         0x0,
1434         0x0,
1435         0x0,
1436         0x0,
1437         0x0,
1438         0x0,
1439         0x0,
1440         0x0,
1441         0x0,
1442         0x0,
1443         0x0,
1444         0x0,
1445         0x0,
1446         0x0,
1447         0x0,
1448         0x0,
1449         0x0,
1450         0x0,
1451         0x0,
1452         0x0,
1453         0x0,
1454         0x0,
1455         0x0,
1456         0x0,
1457         0x0,
1458         0x0,
1459         0x0,
1460         0x0,
1461         0x0,
1462         0x0,
1463         0x0,
1464         0x0,
1465         0x0,
1466         0x0,
1467         0x0,
1468         0x0,
1469         0x0,
1470         0x0,
1471         0x0,
1472         0x0,
1473         0x0,
1474         0x0,
1475         0x0,
1476         0x0,
1477         0x0,
1478         0x0,
1479         0x0,
1480         0x0,
1481         0x0,
1482         0x0,
1483         0x0,
1484         0x0,
1485         0x0,
1486         0x0,
1487         0x0,
1488         0x0,
1489         0x0,
1490         0x0,
1491         0x0,
1492         0x0,
1493         0x0,
1494         0x0,
1495         0x0,
1496         0x0,
1497         0x0,
1498         0x0,
1499         0x0,
1500         0x0,
1501         0x0,
1502         0x0,
1503         0x0,
1504         0x0,
1505         0x0,
1506         0x0,
1507         0x0,
1508         0x0,
1509         0x0,
1510         0x0,
1511         0x0,
1512         0x0,
1513         0x0,
1514         0x0,
1515         0x0,
1516         0x0,
1517         0x0,
1518         0x0,
1519         0x0,
1520         0x0,
1521         0x0,
1522         0x0,
1523         0x0,
1524         0x0,
1525         0x0,
1526         0x0,
1527         0x0,
1528         0x0,
1529         0x0,
1530         0x0,
1531         0x0,
1532         0x0,
1533         0x0,
1534         0x0,
1535         0x0,
1536         0x0,
1537         0x0,
1538         0x0,
1539         0x0,
1540         0x0,
1541         0x0,
1542         0x0,
1543         0x0,
1544         0x0,
1545         0x0,
1546         0x0,
1547         0x0,
1548         0x0,
1549         0x0,
1550         0x0,
1551         0x0,
1552         0x100,
1553         0x200,
1554         0x0,
1555         0x0,
1556         0x0,
1557         0x0,
1558         0x400000,
1559         0x80,
1560         0xdcba98,
1561         0x3000000,
1562         0x0,
1563         0x0,
1564         0x0,
1565         0x0,
1566         0x0,
1567         0x0,
1568         0x0,
1569         0x2a,
1570         0x15,
1571         0x15,
1572         0x2a,
1573         0x33,
1574         0xc,
1575         0xc,
1576         0x33,
1577         0x0,
1578         0x10000000,
1579         0x0,
1580         0x20202000,
1581         0x202020,
1582         0x20008008,
1583         0x810,
1584         0x0,
1585         0x255,
1586         0x30000,
1587         0x300,
1588         0x300,
1589         0x300,
1590         0x300,
1591         0x300,
1592         0x42080010,
1593         0x33e,
1594         0x1010002,
1595         0x80,
1596         0x0,
1597         0x0,
1598         0x0,
1599         0x0,
1600         0x0,
1601         0x0,
1602         0x0,
1603         0x0,
1604         0x0,
1605         0x0,
1606         0x0,
1607         0x0,
1608         0x0,
1609         0x0,
1610         0x0,
1611         0x0,
1612         0x0,
1613         0x0,
1614         0x0,
1615         0x0,
1616         0x0,
1617         0x0,
1618         0x0,
1619         0x0,
1620         0x0,
1621         0x0,
1622         0x0,
1623         0x0,
1624         0x0,
1625         0x0,
1626         0x0,
1627         0x0,
1628         0x0,
1629         0x0,
1630         0x0,
1631         0x0,
1632         0x0,
1633         0x0,
1634         0x0,
1635         0x0,
1636         0x0,
1637         0x0,
1638         0x0,
1639         0x0,
1640         0x0,
1641         0x0,
1642         0x0,
1643         0x0,
1644         0x0,
1645         0x0,
1646         0x0,
1647         0x0,
1648         0x0,
1649         0x0,
1650         0x0,
1651         0x0,
1652         0x0,
1653         0x0,
1654         0x0,
1655         0x0,
1656         0x0,
1657         0x0,
1658         0x0,
1659         0x0,
1660         0x0,
1661         0x0,
1662         0x0,
1663         0x0,
1664         0x0,
1665         0x0,
1666         0x0,
1667         0x0,
1668         0x0,
1669         0x0,
1670         0x0,
1671         0x0,
1672         0x0,
1673         0x0,
1674         0x0,
1675         0x0,
1676         0x0,
1677         0x0,
1678         0x0,
1679         0x0,
1680         0x0,
1681         0x0,
1682         0x0,
1683         0x0,
1684         0x0,
1685         0x0,
1686         0x0,
1687         0x0,
1688         0x0,
1689         0x0,
1690         0x0,
1691         0x0,
1692         0x0,
1693         0x0,
1694         0x0,
1695         0x0,
1696         0x0,
1697         0x0,
1698         0x0,
1699         0x0,
1700         0x0,
1701         0x0,
1702         0x0,
1703         0x0,
1704         0x0,
1705         0x0,
1706         0x0,
1707         0x0,
1708         0x0,
1709         0x0,
1710         0x0,
1711         0x0,
1712         0x0,
1713         0x0,
1714         0x0,
1715         0x0,
1716         0x0,
1717         0x0,
1718         0x0,
1719         0x0,
1720         0x0,
1721         0x0,
1722         0x0,
1723         0x0,
1724         0x0,
1725         0x0,
1726         0x0,
1727         0x0,
1728         0x0,
1729         0x0,
1730         0x0,
1731         0x0,
1732         0x0,
1733         0x0,
1734         0x0,
1735         0x0,
1736         0x0,
1737         0x0,
1738         0x0,
1739         0x0,
1740         0x0,
1741         0x0,
1742         0x0,
1743         0x0,
1744         0x0,
1745         0x0,
1746         0x0,
1747         0x0,
1748         0x0,
1749         0x0,
1750         0x0,
1751         0x0,
1752         0x0,
1753         0x0,
1754         0x0,
1755         0x0,
1756         0x0,
1757         0x0,
1758         0x0,
1759         0x0,
1760         0x0,
1761         0x0,
1762         0x0,
1763         0x0,
1764         0x0,
1765         0x0,
1766         0x0,
1767         0x0,
1768         0x0,
1769         0x0,
1770         0x0,
1771         0x0,
1772         0x0,
1773         0x0,
1774         0x0,
1775         0x0,
1776         0x0,
1777         0x0,
1778         0x0,
1779         0x0,
1780         0x0,
1781         0x0,
1782         0x0,
1783         0x0,
1784         0x0,
1785         0x0,
1786         0x0,
1787         0x0,
1788         0x0,
1789         0x0,
1790         0x0,
1791         0x0,
1792         0x0,
1793         0x0,
1794         0x0,
1795         0x0,
1796         0x0,
1797         0x0,
1798         0x0,
1799         0x0,
1800         0x0,
1801         0x0,
1802         0x0,
1803         0x0,
1804         0x100,
1805         0x0,
1806         0x0,
1807         0x0,
1808         0x0,
1809         0x0,
1810         0x0,
1811         0x50000,
1812         0x4000000,
1813         0x55,
1814         0x0,
1815         0x0,
1816         0x0,
1817         0xf0001,
1818         0x280040,
1819         0x5002,
1820         0x10101,
1821         0x8008,
1822         0x81020,
1823         0x0,
1824         0x0,
1825         0x1000000,
1826         0x1,
1827         0x0,
1828         0x0,
1829         0x0,
1830         0x0,
1831         0x0,
1832         0x0,
1833         0x64,
1834         0x0,
1835         0x0,
1836         0x1010000,
1837         0x2020101,
1838         0x4040202,
1839         0x8080404,
1840         0xf0f0808,
1841         0xf0f0f0f,
1842         0x20200f0f,
1843         0x1b428000,
1844         0x4,
1845         0x1010000,
1846         0x1070501,
1847         0x54,
1848         0x4410,
1849         0x4410,
1850         0x4410,
1851         0x4410,
1852         0x4410,
1853         0x4410,
1854         0x4410,
1855         0x4410,
1856         0x4410,
1857         0x4410,
1858         0x0,
1859         0x0,
1860         0x0,
1861         0x0,
1862         0x0,
1863         0x64,
1864         0x0,
1865         0x108,
1866         0x0,
1867         0x0,
1868         0x0,
1869         0x0,
1870         0x0,
1871         0x3000000,
1872         0x0,
1873         0x0,
1874         0x0,
1875         0x4102035,
1876         0x41020,
1877         0x1c98c98,
1878         0x3f400000,
1879         0x3f3f1f3f,
1880         0x1f3f3f1f,
1881         0x1f3f3f,
1882         0x0,
1883         0x0,
1884         0x1,
1885         0x0,
1886         0x0,
1887         0x0,
1888         0x0,
1889         0x76543210,
1890         0x6010198,
1891         0x0,
1892         0x0,
1893         0x0,
1894         0x40700,
1895         0x0,
1896         0x0,
1897         0x0,
1898         0x0,
1899         0x0,
1900         0x2,
1901         0x0,
1902         0x0,
1903         0x0,
1904         0x0,
1905         0x0,
1906         0x1142,
1907         0x3020100,
1908         0x3000300,
1909         0x3000300,
1910         0x3000300,
1911         0x3000300,
1912         0x3000300,
1913         0x3000300,
1914         0x3000300,
1915         0x3000300,
1916         0x3000300,
1917         0x3000300,
1918         0x300,
1919         0x300,
1920         0x300,
1921         0x300,
1922         0x2,
1923         0x4011,
1924         0x4011,
1925         0x40,
1926         0x40,
1927         0x4011,
1928         0x1fff00,
1929         0x4011,
1930         0x4011,
1931         0x4011,
1932         0x4011,
1933         0x4011,
1934         0x4011,
1935         0x4011,
1936         0x4011,
1937         0x4011,
1938         0x4011,
1939         0x4011,
1940         0x1004011,
1941         0x200400,
1942
1943 };
1944
1945 void ddr_phy_util(u32 *phyreg)
1946 {
1947         u32 i, len;
1948
1949         len = ARRAY_SIZE(ddr_phy_data);
1950         for (i = 1792; i < len; i++)
1951                 out_le32(phyreg + i, ddr_phy_data[i]);
1952
1953         for (i = 0; i < 1792; i++)
1954                 out_le32(phyreg + i, ddr_phy_data[i]);
1955 }
This page took 0.124314 seconds and 2 git commands to generate.