Lines Matching +full:0 +full:- +full:7
1 // SPDX-License-Identifier: GPL-2.0
15 int ddr_dev_attr_init_done = 0;
30 0, /*MV_DDR_FREQ_LOW_FREQ */
50 return &freq_val[0]; in mv_ddr_freq_tbl_get()
65 /* DDR3-800D */
66 { {6, 5, 0, 0, 0, 0, 0, 5, 5, 0, 0, 0, 5, 0, 5, 0} },
67 /* DDR3-800E */
68 { {6, 6, 0, 0, 0, 0, 0, 6, 6, 0, 0, 0, 6, 0, 6, 0} },
69 /* DDR3-1066E */
70 { {6, 5, 6, 0, 0, 0, 0, 5, 5, 6, 0, 0, 5, 0, 5, 0} },
71 /* DDR3-1066F */
72 { {6, 6, 7, 0, 0, 0, 0, 6, 6, 7, 0, 0, 6, 0, 6, 0} },
73 /* DDR3-1066G */
74 { {6, 6, 8, 0, 0, 0, 0, 6, 6, 8, 0, 0, 6, 0, 6, 0} },
75 /* DDR3-1333F* */
76 { {6, 5, 6, 7, 0, 0, 0, 5, 5, 6, 0, 7, 5, 0, 5, 0} },
77 /* DDR3-1333G */
78 { {6, 5, 7, 8, 0, 0, 0, 5, 5, 7, 0, 8, 5, 0, 5, 0} },
79 /* DDR3-1333H */
80 { {6, 6, 8, 9, 0, 0, 0, 6, 6, 8, 0, 9, 6, 0, 6, 0} },
81 /* DDR3-1333J* */
82 { {6, 6, 8, 10, 0, 0, 0, 6, 6, 8, 0, 10, 6, 0, 6, 0}
83 /* DDR3-1600G* */},
84 { {6, 5, 6, 7, 8, 0, 0, 5, 5, 6, 0, 7, 5, 0, 5, 0} },
85 /* DDR3-1600H */
86 { {6, 5, 6, 8, 9, 0, 0, 5, 5, 6, 0, 8, 5, 0, 5, 0} },
87 /* DDR3-1600J */
88 { {6, 5, 7, 9, 10, 0, 0, 5, 5, 7, 0, 9, 5, 0, 5, 0} },
89 /* DDR3-1600K */
90 { {6, 6, 8, 10, 11, 0, 0, 6, 6, 8, 0, 10, 6, 0, 6, 0 } },
91 /* DDR3-1866J* */
92 { {6, 5, 6, 8, 9, 11, 0, 5, 5, 6, 11, 8, 5, 0, 5, 0} },
93 /* DDR3-1866K */
94 { {6, 5, 7, 8, 10, 11, 0, 5, 5, 7, 11, 8, 5, 11, 5, 11} },
95 /* DDR3-1866L */
96 { {6, 6, 7, 9, 11, 12, 0, 6, 6, 7, 12, 9, 6, 12, 6, 12} },
97 /* DDR3-1866M* */
98 { {6, 6, 8, 10, 11, 13, 0, 6, 6, 8, 13, 10, 6, 13, 6, 13} },
99 /* DDR3-2133K* */
100 { {6, 5, 6, 7, 9, 10, 11, 5, 5, 6, 10, 7, 5, 11, 5, 11} },
101 /* DDR3-2133L */
103 /* DDR3-2133M */
104 { {6, 5, 7, 9, 10, 12, 13, 5, 5, 7, 12, 9, 5, 13, 5, 13} },
105 /* DDR3-2133N* */
106 { {6, 6, 7, 9, 11, 13, 14, 6, 6, 7, 13, 9, 6, 14, 6, 14} },
107 /* DDR3-1333H-ext */
108 { {6, 6, 7, 9, 0, 0, 0, 6, 6, 7, 0, 9, 6, 0, 6, 0} },
109 /* DDR3-1600K-ext */
110 { {6, 6, 7, 9, 11, 0, 0, 6, 6, 7, 0, 9, 6, 0, 6, 0} },
111 /* DDR3-1866M-ext */
112 { {6, 6, 7, 9, 11, 13, 0, 6, 6, 7, 13, 9, 6, 13, 6, 13} },
127 /* DDR3-800D */
128 { {5, 5, 0, 0, 0, 0, 0, 5, 5, 0, 0, 0, 5, 0, 5, 0} },
129 /* DDR3-800E */
130 { {5, 5, 0, 0, 0, 0, 0, 5, 5, 0, 0, 0, 5, 0, 5, 0} },
131 /* DDR3-1066E */
132 { {5, 5, 6, 0, 0, 0, 0, 5, 5, 6, 0, 7, 5, 0, 5, 0} },
133 /* DDR3-1066F */
134 { {5, 5, 6, 0, 0, 0, 0, 5, 5, 6, 0, 7, 5, 0, 5, 0} },
135 /* DDR3-1066G */
136 { {5, 5, 6, 0, 0, 0, 0, 5, 5, 6, 0, 7, 5, 0, 5, 0} },
137 /* DDR3-1333F* */
138 { {5, 5, 6, 7, 0, 0, 0, 5, 5, 6, 0, 7, 5, 0, 5, 0} },
139 /* DDR3-1333G */
140 { {5, 5, 6, 7, 0, 0, 0, 5, 5, 6, 0, 7, 5, 0, 5, 0} },
141 /* DDR3-1333H */
142 { {5, 5, 6, 7, 0, 0, 0, 5, 5, 6, 0, 7, 5, 0, 5, 0} },
143 /* DDR3-1333J* */
144 { {5, 5, 6, 7, 0, 0, 0, 5, 5, 6, 0, 7, 5, 0, 5, 0} },
145 /* DDR3-1600G* */
146 { {5, 5, 6, 7, 8, 0, 0, 5, 5, 6, 0, 7, 5, 0, 5, 0} },
147 /* DDR3-1600H */
148 { {5, 5, 6, 7, 8, 0, 0, 5, 5, 6, 0, 7, 5, 0, 5, 0} },
149 /* DDR3-1600J */
150 { {5, 5, 6, 7, 8, 0, 0, 5, 5, 6, 0, 7, 5, 0, 5, 0} },
151 /* DDR3-1600K */
152 { {5, 5, 6, 7, 8, 0, 0, 5, 5, 6, 0, 7, 5, 0, 5, 0} },
153 /* DDR3-1866J* */
154 { {5, 5, 6, 7, 8, 9, 0, 5, 5, 6, 9, 7, 5, 0, 5, 0} },
155 /* DDR3-1866K */
156 { {5, 5, 6, 7, 8, 9, 0, 5, 5, 6, 9, 7, 5, 0, 5, 0} },
157 /* DDR3-1866L */
158 { {5, 5, 6, 7, 8, 9, 0, 5, 5, 6, 9, 7, 5, 9, 5, 9} },
159 /* DDR3-1866M* */
160 { {5, 5, 6, 7, 8, 9, 0, 5, 5, 6, 9, 7, 5, 9, 5, 9} },
161 /* DDR3-2133K* */
162 { {5, 5, 6, 7, 8, 9, 10, 5, 5, 6, 9, 7, 5, 9, 5, 10} },
163 /* DDR3-2133L */
164 { {5, 5, 6, 7, 8, 9, 10, 5, 5, 6, 9, 7, 5, 9, 5, 10} },
165 /* DDR3-2133M */
166 { {5, 5, 6, 7, 8, 9, 10, 5, 5, 6, 9, 7, 5, 9, 5, 10} },
167 /* DDR3-2133N* */
168 { {5, 5, 6, 7, 8, 9, 10, 5, 5, 6, 9, 7, 5, 9, 5, 10} },
169 /* DDR3-1333H-ext */
170 { {5, 5, 6, 7, 0, 0, 0, 5, 5, 6, 0, 7, 5, 0, 5, 0} },
171 /* DDR3-1600K-ext */
172 { {5, 5, 6, 7, 8, 0, 0, 5, 5, 6, 0, 7, 5, 0, 5, 0} },
173 /* DDR3-1866M-ext */
174 { {5, 5, 6, 7, 8, 9, 0, 5, 5, 6, 9, 7, 5, 9, 5, 9} },
190 3, /* 7 */
197 7, /* 14 */
199 0 /* 16 */
203 0,
204 0,
205 0,
206 0,
207 0,
208 0x2,
209 0x4,
210 0x6,
211 0x8,
212 0xa,
213 0xc,
214 0xe,
215 0x1,
216 0x3,
217 0x5,
218 0x5
222 0,
223 0,
224 0,
225 0,
226 0,
227 0,
228 0x1,
229 0x2,
230 0x3,
231 0x4,
232 0x5,
233 0x6,
234 0x7,
235 0x8,
236 0x9,
237 0x9
247 0, /* TODO: placeholder for 16-Mbit dev width */
248 0, /* TODO: placeholder for 32-Mbit dev width */
249 0, /* TODO: placeholder for 12-Mbit dev width */
250 0 /* TODO: placeholder for 24-Mbit dev width */
307 PATTERN_KILLER_PATTERN_TABLE_MAP_ROLE_AGGRESSOR = 0,
313 {1, 0},
314 {0, 0},
315 {1, 0},
317 {0, 1},
318 {0, 1},
319 {1, 0},
320 {0, 1},
321 {1, 0},
322 {0, 1},
323 {1, 0},
324 {1, 0},
325 {0, 1},
326 {1, 0},
327 {0, 1},
328 {0, 0},
330 {0, 0},
332 {0, 0},
334 {0, 0},
336 {1, 0},
337 {0, 0},
339 {0, 0},
341 {0, 0},
342 {0, 0},
343 {0, 0},
344 {0, 1},
345 {0, 1},
347 {0, 0},
348 {0, 0},
351 {0, 0},
353 {0, 0},
356 {0, 0},
357 {0, 0},
359 {0, 0},
361 {0, 1},
362 {0, 0},
363 {0, 1},
364 {0, 1},
365 {0, 0},
368 {1, 0},
369 {1, 0},
380 /* 1 means 0xffffffff, 0 is 0x0 */
381 0xb8,
382 0x52,
383 0x55,
384 0x8a,
385 0x33,
386 0xa6,
387 0x6d,
388 0xfe
392 /* 8-bit, 16-bit page size */
398 {0, 0}, /* TODO: placeholder for 16-Mbit die capacity */
399 {0, 0}, /* TODO: placeholder for 32-Mbit die capacity */
400 {0, 0}, /* TODO: placeholder for 12-Mbit die capacity */
401 {0, 0} /* TODO: placeholder for 24-Mbit die capacity */
415 u32 result = 0; in mv_ddr_speed_bin_timing_get()
512 u8 i, byte = 0; in pattern_table_get_killer_word()
515 for (i = 0; i < 8; i++) { in pattern_table_get_killer_word()
527 u8 i, byte0 = 0, byte1 = 0; in pattern_table_get_killer_word16()
530 for (i = 0; i < 8; i++) { in pattern_table_get_killer_word16()
545 if (0 == ((index / step) & 1)) in pattern_table_get_sso_word()
546 return 0x0; in pattern_table_get_sso_word()
548 return 0xffffffff; in pattern_table_get_sso_word()
567 byte = 0; in pattern_table_get_sso_xtalk_free_word()
579 word = ((i1 == 5) | (i1 == 7)) ? 0xffffffff : 0x0; in pattern_table_get_isi_word()
581 word = (i1 == 6) ? 0xffffffff : 0x0; in pattern_table_get_isi_word()
583 word = ((i0 % 16) > 7) ? ~word : word; in pattern_table_get_isi_word()
602 if ((index & 1) == 0) in pattern_table_get_sso_xtalk_free_word16()
614 if (i0 > 7) in pattern_table_get_isi_word16()
615 word = (i1 > 1) ? 0x0000ffff : 0x0; in pattern_table_get_isi_word16()
617 word = (i1 == 3) ? 0xffff0000 : 0x0; in pattern_table_get_isi_word16()
626 if (0 == ((pattern_vref_pattern_table_map[index / 8] >> in pattern_table_get_vref_word()
628 return 0x0; in pattern_table_get_vref_word()
630 return 0xffffffff; in pattern_table_get_vref_word()
635 if (0 == pattern_killer_pattern_table_map in pattern_table_get_vref_word16()
637 0 == pattern_killer_pattern_table_map in pattern_table_get_vref_word16()
639 return 0x00000000; in pattern_table_get_vref_word16()
642 0 == pattern_killer_pattern_table_map in pattern_table_get_vref_word16()
644 return 0xffff0000; in pattern_table_get_vref_word16()
645 else if (0 == pattern_killer_pattern_table_map in pattern_table_get_vref_word16()
649 return 0x0000ffff; in pattern_table_get_vref_word16()
651 return 0xffffffff; in pattern_table_get_vref_word16()
658 temp = ((0x00ff << (index / 3)) & 0xff00) >> 8; in pattern_table_get_static_pbs_word()
665 u32 pattern = 0; in pattern_table_get_word()
668 if (DDR3_IS_16BIT_DRAM_MODE(tm->bus_act_mask) == 0) { in pattern_table_get_word()
669 /* 32/64-bit patterns */ in pattern_table_get_word()
673 if (index == 0 || index == 2 || index == 5 || in pattern_table_get_word()
674 index == 7) in pattern_table_get_word()
680 if (0 == (index & 1)) in pattern_table_get_word()
703 (u8)(type - PATTERN_KILLER_DQ0), index); in pattern_table_get_word()
722 (u8)(type - PATTERN_FULL_SSO0), index); in pattern_table_get_word()
736 (u8)(type - PATTERN_SSO_FULL_XTALK_DQ0), index); in pattern_table_get_word()
747 (u8)(type - PATTERN_SSO_XTALK_FREE_DQ0), index); in pattern_table_get_word()
755 pattern = 0; in pattern_table_get_word()
784 (u8)(type - PATTERN_KILLER_DQ0), index); in pattern_table_get_word()
793 if ((index == 0) || (index == 3)) in pattern_table_get_word()
794 pattern = 0x00000000; in pattern_table_get_word()
796 pattern = 0xFFFFFFFF; in pattern_table_get_word()
799 pattern = 0x0000ffff; in pattern_table_get_word()
805 (u8)(type - PATTERN_FULL_SSO1), index); in pattern_table_get_word()
819 (u8)(type - PATTERN_SSO_FULL_XTALK_DQ0), index); in pattern_table_get_word()
830 (u8)(type - PATTERN_SSO_XTALK_FREE_DQ0), index); in pattern_table_get_word()
838 pattern = 0; in pattern_table_get_word()
851 for (attr_id = 0; attr_id < MV_ATTR_LAST; attr_id++) in ddr3_tip_dev_attr_init()
852 ddr_dev_attributes[attr_id] = 0xFF; in ddr3_tip_dev_attr_init()
859 if (ddr_dev_attr_init_done == 0) in ddr3_tip_dev_attr_get()
867 if (ddr_dev_attr_init_done == 0) in ddr3_tip_dev_attr_set()