Lines Matching +full:5 +full:- +full:6
1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright 2012-2015 Cisco Systems, Inc. and/or its affiliates.
11 #include "cobalt-cpld.h"
17 return cobalt_bus_read32(cobalt->bar1, ADRS(offset)); in cpld_read()
22 return cobalt_bus_write32(cobalt->bar1, ADRS(offset), val); in cpld_write()
36 …cobalt_info("CPLD HSMA Clk Osc register (read/write) - Must set wr trigger to load default values\… in cpld_info_ver3()
71 cobalt_info("\t\tADC ch3 5V: %u,%03uV\n", tmp / 1000, tmp % 1000); in cpld_info_ver3()
96 case 5: in cobalt_cpld_status()
132 { 4, 4, 1 }, { 5, 5, 1 }, { 6, 6, 1 },
134 { 10, 5, 2 }, { 11, 11, 1 }, { 12, 6, 2 },
136 { 20, 5, 4 }, { 22, 11, 2 }, { 24, 4, 6 },
137 { 28, 7, 4 }, { 30, 5, 6 }, { 32, 4, 8 },
138 { 36, 6, 6 }, { 40, 4, 10 }, { 42, 7, 6 },
139 { 44, 11, 4 }, { 48, 4, 12 }, { 50, 5, 10 },
140 { 54, 9, 6 }, { 56, 4, 14 }, { 60, 5, 12 },
141 { 64, 4, 16 }, { 66, 11, 6 }, { 70, 5, 14 },
142 { 72, 4, 18 }, { 80, 4, 20 }, { 84, 6, 14 },
143 { 88, 11, 8 }, { 90, 5, 18 }, { 96, 4, 24 },
144 { 98, 7, 14 }, { 100, 5, 20 }, { 104, 4, 26 },
145 { 108, 6, 18 }, { 110, 11, 10 }, { 112, 4, 28 },
147 { 130, 5, 26 }, { 132, 11, 12 }, { 136, 4, 34 },
148 { 140, 5, 28 }, { 144, 4, 36 }, { 150, 5, 30 },
149 { 152, 4, 38 }, { 154, 11, 14 }, { 156, 6, 26 },
151 { 170, 5, 34 }, { 176, 11, 16 }, { 180, 5, 36 },
152 { 182, 7, 26 }, { 184, 4, 46 }, { 190, 5, 38 },
154 { 198, 9, 22 }, { 200, 4, 50 }, { 204, 6, 34 },
155 { 208, 4, 52 }, { 210, 5, 42 }, { 216, 4, 54 },
156 { 220, 11, 20 }, { 224, 4, 56 }, { 228, 6, 38 },
157 { 230, 5, 46 }, { 232, 4, 58 }, { 234, 9, 26 },
159 { 248, 4, 62 }, { 250, 5, 50 }, { 252, 6, 42 },
160 { 256, 4, 64 }, { 260, 5, 52 }, { 264, 11, 24 },
161 { 266, 7, 38 }, { 270, 5, 54 }, { 272, 4, 68 },
162 { 276, 6, 46 }, { 280, 4, 70 }, { 286, 11, 26 },
163 { 288, 4, 72 }, { 290, 5, 58 }, { 294, 7, 42 },
164 { 296, 4, 74 }, { 300, 5, 60 }, { 304, 4, 76 },
165 { 306, 9, 34 }, { 308, 11, 28 }, { 310, 5, 62 },
167 { 324, 6, 54 }, { 328, 4, 82 }, { 330, 11, 30 },
168 { 336, 4, 84 }, { 340, 5, 68 }, { 342, 9, 38 },
169 { 344, 4, 86 }, { 348, 6, 58 }, { 350, 5, 70 },
171 { 368, 4, 92 }, { 370, 5, 74 }, { 372, 6, 62 },
173 { 380, 5, 76 }, { 384, 4, 96 }, { 390, 5, 78 },
175 { 406, 7, 58 }, { 408, 4, 102 }, { 410, 5, 82 },
177 { 420, 5, 84 }, { 424, 4, 106 }, { 430, 5, 86 },
179 { 444, 6, 74 }, { 448, 4, 112 }, { 450, 5, 90 },
180 { 456, 4, 114 }, { 460, 5, 92 }, { 462, 11, 42 },
181 { 464, 4, 116 }, { 468, 6, 78 }, { 470, 5, 94 },
184 { 490, 5, 98 }, { 492, 6, 82 }, { 496, 4, 124 },
185 { 500, 5, 100 }, { 504, 4, 126 }, { 506, 11, 46 },
186 { 510, 5, 102 }, { 512, 4, 128 }, { 516, 6, 86 },
187 { 518, 7, 74 }, { 520, 5, 104 }, { 522, 9, 58 },
188 { 528, 11, 48 }, { 530, 5, 106 }, { 532, 7, 76 },
189 { 540, 5, 108 }, { 546, 7, 78 }, { 550, 11, 50 },
190 { 552, 6, 92 }, { 558, 9, 62 }, { 560, 5, 112 },
191 { 564, 6, 94 }, { 570, 5, 114 }, { 572, 11, 52 },
192 { 574, 7, 82 }, { 576, 6, 96 }, { 580, 5, 116 },
193 { 588, 6, 98 }, { 590, 5, 118 }, { 594, 11, 54 },
194 { 600, 5, 120 }, { 602, 7, 86 }, { 610, 5, 122 },
195 { 612, 6, 102 }, { 616, 11, 56 }, { 620, 5, 124 },
196 { 624, 6, 104 }, { 630, 5, 126 }, { 636, 6, 106 },
197 { 638, 11, 58 }, { 640, 5, 128 }, { 644, 7, 92 },
198 { 648, 6, 108 }, { 658, 7, 94 }, { 660, 11, 60 },
199 { 666, 9, 74 }, { 672, 6, 112 }, { 682, 11, 62 },
200 { 684, 6, 114 }, { 686, 7, 98 }, { 696, 6, 116 },
202 { 708, 6, 118 }, { 714, 7, 102 }, { 720, 6, 120 },
203 { 726, 11, 66 }, { 728, 7, 104 }, { 732, 6, 122 },
204 { 738, 9, 82 }, { 742, 7, 106 }, { 744, 6, 124 },
205 { 748, 11, 68 }, { 756, 6, 126 }, { 768, 6, 128 },
237 u8 regs[6]; in cobalt_cpld_set_freq()
258 n1 = multipliers[i_best].n1 - 1; in cobalt_cpld_set_freq()
259 hsdiv = multipliers[i_best].hsdiv - 4; in cobalt_cpld_set_freq()
264 regs[0] = (hsdiv << 5) | (n1 >> 2); in cobalt_cpld_set_freq()
265 regs[1] = ((n1 & 0x3) << 6) | (rfreq >> 32); in cobalt_cpld_set_freq()
269 regs[5] = rfreq & 0xff; in cobalt_cpld_set_freq()
278 cobalt_dbg(1, "%u: %6ph\n", f_out, regs); in cobalt_cpld_set_freq()
280 while (retries--) { in cobalt_cpld_set_freq()
281 u8 read_regs[6]; in cobalt_cpld_set_freq()
292 cpld_write(cobalt, SI570_REG12, regs[5]); in cobalt_cpld_set_freq()
306 read_regs[5] = cpld_read(cobalt, SI570_REG12); in cobalt_cpld_set_freq()
318 cobalt_dbg(1, "retry: %6ph\n", read_regs); in cobalt_cpld_set_freq()
320 if (2 - retries) in cobalt_cpld_set_freq()
321 cobalt_info("Needed %d retries\n", 2 - retries); in cobalt_cpld_set_freq()