AGESA F15: AMD family15 AGESA code
[coreboot.git] / src / vendorcode / amd / agesa / f15 / Proc / CPU / Family / 0x15 / OR / F15OrHtPhyTables.c
1 /* $NoKeywords:$ */
2 /**
3  * @file
4  *
5  * AMD Family_15 Orochi Ht Phy tables with values as defined in BKDG
6  *
7  * @xrefitem bom "File Content Label" "Release Content"
8  * @e project:      AGESA
9  * @e sub-project:  CPU/Family/0x15/OR
10  * @e \$Revision: 53592 $   @e \$Date: 2011-05-23 00:27:15 -0600 (Mon, 23 May 2011) $
11  *
12  */
13 /*
14  ******************************************************************************
15  *
16  * Copyright (C) 2012 Advanced Micro Devices, Inc.
17  * All rights reserved.
18  *
19  * Redistribution and use in source and binary forms, with or without
20  * modification, are permitted provided that the following conditions are met:
21  *     * Redistributions of source code must retain the above copyright
22  *       notice, this list of conditions and the following disclaimer.
23  *     * Redistributions in binary form must reproduce the above copyright
24  *       notice, this list of conditions and the following disclaimer in the
25  *       documentation and/or other materials provided with the distribution.
26  *     * Neither the name of Advanced Micro Devices, Inc. nor the names of
27  *       its contributors may be used to endorse or promote products derived
28  *       from this software without specific prior written permission.
29  *
30  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
31  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
32  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
33  * DISCLAIMED. IN NO EVENT SHALL ADVANCED MICRO DEVICES, INC. BE LIABLE FOR ANY
34  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
35  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
36  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
37  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
38  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
39  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40  *
41  ******************************************************************************
42  */
43
44 /*----------------------------------------------------------------------------------------
45  *                             M O D U L E S    U S E D
46  *----------------------------------------------------------------------------------------
47  */
48 #include "AGESA.h"
49 #include "cpuRegisters.h"
50 #include "Table.h"
51 #include "Filecode.h"
52 CODE_GROUP (G3_DXE)
53 RDATA_GROUP (G3_DXE)
54
55 #define FILECODE PROC_CPU_FAMILY_0X15_REVD_HY_F15HYHTPHYTABLES_FILECODE
56
57
58 /*----------------------------------------------------------------------------------------
59  *                   D E F I N I T I O N S    A N D    M A C R O S
60  *----------------------------------------------------------------------------------------
61  */
62
63 /*----------------------------------------------------------------------------------------
64  *                  T Y P E D E F S     A N D     S T R U C T U R E S
65  *----------------------------------------------------------------------------------------
66  */
67
68 /*----------------------------------------------------------------------------------------
69  *           P R O T O T Y P E S     O F     L O C A L     F U N C T I O N S
70  *----------------------------------------------------------------------------------------
71  */
72
73 /*----------------------------------------------------------------------------------------
74  *                          E X P O R T E D    F U N C T I O N S
75  *----------------------------------------------------------------------------------------
76  */
77
78 //  HT   Phy   T a b l e s
79 // -------------------------
80 STATIC CONST TABLE_ENTRY_FIELDS ROMDATA F15OrHtPhyRegisters[] =
81 {
82 //
83 // All the entries for XmtRdPtr
84 //
85 // 0xCF
86 // HT_PHY_HT1_FIFO_PTR_OPT_VALUE
87   {
88     HtPhyRegister,
89     {
90       AMD_FAMILY_15,                      // CpuFamily
91       AMD_F15_OR_ALL                         // CpuRevision
92     },
93     {AMD_PF_ALL},                           // platformFeatures
94     {{
95       HTPHY_LINKTYPE_SL0_HT1,               //
96       0xCF,                                 // Address
97       0x00000D4D,                           // regData
98       0x0000FFFF,                           // regMask
99     }}
100   },
101 // 0xDF
102 // HT_PHY_HT1_FIFO_PTR_OPT_VALUE
103   {
104     HtPhyRegister,
105     {
106       AMD_FAMILY_15,                      // CpuFamily
107       AMD_F15_OR_ALL                         // CpuRevision
108     },
109     {AMD_PF_ALL},                           // platformFeatures
110     {{
111       HTPHY_LINKTYPE_SL1_HT1,               //
112       0xDF,                                 // Address
113       0x00000D4D,                           // regData
114       0x0000FFFF,                           // regMask
115     }}
116   },
117 // 0xCF
118 // Default for HT3, unless overridden below.
119   {
120     HtPhyRegister,
121     {
122       AMD_FAMILY_15,                      // CpuFamily
123       AMD_F15_OR_ALL                         // CpuRevision
124     },
125     {AMD_PF_ALL},                           // platformFeatures
126     {{
127       HTPHY_LINKTYPE_SL0_HT3,               //
128       0xCF,                                 // Address
129       0x00000A2A,                           // regData
130       0x0000FFFF,                           // regMask
131     }}
132   },
133 // 0xDF
134 // Default for HT3, unless overridden below.
135   {
136     HtPhyRegister,
137     {
138       AMD_FAMILY_15,                      // CpuFamily
139       AMD_F15_OR_ALL                         // CpuRevision
140     },
141     {AMD_PF_ALL},                           // platformFeatures
142     {{
143       HTPHY_LINKTYPE_SL1_HT3,               //
144       0xDF,                                 // Address
145       0x00000A2A,                           // regData
146       0x0000FFFF,                           // regMask
147     }}
148   },
149 // 0xC1
150 // [29:22] LfcMax = 20h, [21:14] LfcMin = 10h
151   {
152     HtPhyRegister,
153     {
154       AMD_FAMILY_15,                      // CpuFamily
155       AMD_F15_OR_ALL                         // CpuRevision
156     },
157     {AMD_PF_ALL},                           // platformFeatures
158     {{
159       HTPHY_LINKTYPE_SL0_HT3,               //
160       0xC1,                                 // Address
161       0x08040000,                           // regData
162       0x3FFFC000,                           // regMask
163     }}
164   },
165 // 0xD1
166 // [29:22] LfcMax = 20h, [21:14] LfcMin = 10h
167   {
168     HtPhyRegister,
169     {
170       AMD_FAMILY_15,                      // CpuFamily
171       AMD_F15_OR_ALL                         // CpuRevision
172     },
173     {AMD_PF_ALL},                           // platformFeatures
174     {{
175       HTPHY_LINKTYPE_SL1_HT3,               //
176       0xD1,                                 // Address
177       0x08040000,                           // regData
178       0x3FFFC000,                           // regMask
179     }}
180   },
181 // 0xC1
182 // [29:22] LfcMax = 10h, [21:14] LfcMin = 08h
183   {
184     HtPhyRegister,
185     {
186       AMD_FAMILY_15,                      // CpuFamily
187       AMD_F15_OR_ALL                         // CpuRevision
188     },
189     {AMD_PF_ALL},                           // platformFeatures
190     {{
191       HTPHY_LINKTYPE_SL0_HT1,               //
192       0xC1,                                 // Address
193       0x04020000,                           // regData
194       0x3FFFC000,                           // regMask
195     }}
196   },
197 // 0xD1
198 // [29:22] LfcMax = 10h, [21:14] LfcMin = 08h
199   {
200     HtPhyRegister,
201     {
202       AMD_FAMILY_15,                      // CpuFamily
203       AMD_F15_OR_ALL                         // CpuRevision
204     },
205     {AMD_PF_ALL},                           // platformFeatures
206     {{
207       HTPHY_LINKTYPE_SL1_HT1,               //
208       0xD1,                                 // Address
209       0x04020000,                           // regData
210       0x3FFFC000,                           // regMask
211     }}
212   },
213 // 0xC5
214 // [7] TxLs23ClkGateEn = 1
215   {
216     HtPhyRegister,
217     {
218       AMD_FAMILY_15,                      // CpuFamily
219       AMD_F15_OR_ALL                         // CpuRevision
220     },
221     {AMD_PF_ALL},                           // platformFeatures
222     {{
223       HTPHY_LINKTYPE_ALL,               //
224       0xC5,                                 // Address
225       0x00000080,                           // regData
226       0x00000080,                           // regMask
227     }}
228   },
229 // 0xD5
230 // [7] TxLs23ClkGateEn = 1
231   {
232     HtPhyRegister,
233     {
234       AMD_FAMILY_15,                      // CpuFamily
235       AMD_F15_OR_ALL                         // CpuRevision
236     },
237     {AMD_PF_ALL},                           // platformFeatures
238     {{
239       HTPHY_LINKTYPE_ALL,               //
240       0xD5,                                 // Address
241       0x00000080,                           // regData
242       0x00000080,                           // regMask
243     }}
244   },
245
246 //
247 // Deemphasis Settings
248 //
249 // HT1: clear any warm reset deemphasis settings.
250
251   {
252     HtPhyRegister,
253     {
254       AMD_FAMILY_15,                      // CpuFamily
255       AMD_F15_OR_ALL                         // CpuRevision
256     },
257     {AMD_PF_ALL},                           // platformFeatures
258     {{
259       HTPHY_LINKTYPE_SL0_HT1,               //
260       0xC4,                                 // Address
261       0x00000000,                           // regData
262       0x0003FC00,                           // regMask
263     }}
264   },
265   {
266     HtPhyRegister,
267     {
268       AMD_FAMILY_15,                      // CpuFamily
269       AMD_F15_OR_ALL                         // CpuRevision
270     },
271     {AMD_PF_ALL},                           // platformFeatures
272     {{
273       HTPHY_LINKTYPE_SL1_HT1,               //
274       0xD4,                                 // Address
275       0x00000000,                           // regData
276       0x0003FC00,                           // regMask
277     }}
278   },
279   {
280     HtPhyRegister,
281     {
282       AMD_FAMILY_15,                      // CpuFamily
283       AMD_F15_OR_ALL                         // CpuRevision
284     },
285     {AMD_PF_ALL},                           // platformFeatures
286     {{
287       HTPHY_LINKTYPE_SL0_HT1,               //
288       0x720C,                                 // Address
289       0x00000000,                           // regData
290       0xFFFFFFFF,                           // regMask
291     }}
292   },
293   {
294     HtPhyRegister,
295     {
296       AMD_FAMILY_15,                      // CpuFamily
297       AMD_F15_OR_ALL                         // CpuRevision
298     },
299     {AMD_PF_ALL},                           // platformFeatures
300     {{
301       HTPHY_LINKTYPE_SL1_HT1,               //
302       0x730C,                                 // Address
303       0x00000000,                           // regData
304       0xFFFFFFFF,                           // regMask
305     }}
306   },
307
308 //deemphasis level        Post2[31, 24]    Post1[23, 16]    Pre1[15, 8]    Margin[7, 0]
309 // No deemphasis               00h              00h             00h            00h
310 // -3dB postcursor             00h              26h             00h            00h
311 // -6dB postcursor             00h              40h             00h            00h
312 // -8dB postcursor             00h              4Dh             00h            00h
313 // -11dB postcursor            00h              5Ch             00h            00h
314 //                             00h              4Dh             0Fh            00h
315 // -11dB postcursor with -8dB precursor
316
317   {
318     DeemphasisRegister,
319     {
320       AMD_FAMILY_15,                      // CpuFamily
321       AMD_F15_OR_ALL                         // CpuRevision
322     },
323     {AMD_PF_ALL},                           // platformFeatures
324     {{
325       DEEMPHASIS_LEVEL_NONE,
326       HTPHY_LINKTYPE_SL0_HT3,               //
327       0x720C,                                 // Address
328       0x00000000,                           // regData
329       0xFFFFFFFF,                           // regMask
330     }}
331   },
332   {
333     DeemphasisRegister,
334     {
335       AMD_FAMILY_15,                      // CpuFamily
336       AMD_F15_OR_ALL                         // CpuRevision
337     },
338     {AMD_PF_ALL},                           // platformFeatures
339     {{
340       DEEMPHASIS_LEVEL_NONE,
341       HTPHY_LINKTYPE_SL1_HT3,               //
342       0x730C,                                 // Address
343       0x00000000,                           // regData
344       0xFFFFFFFF,                           // regMask
345     }}
346   },
347   {
348     DeemphasisRegister,
349     {
350       AMD_FAMILY_15,                      // CpuFamily
351       AMD_F15_OR_ALL                         // CpuRevision
352     },
353     {AMD_PF_ALL},                           // platformFeatures
354     {{
355       DEEMPHASIS_LEVEL__3,
356       HTPHY_LINKTYPE_SL0_HT3,               //
357       0x720C,                                 // Address
358       0x00260000,                           // regData
359       0xFFFFFFFF,                           // regMask
360     }}
361   },
362   {
363     DeemphasisRegister,
364     {
365       AMD_FAMILY_15,                      // CpuFamily
366       AMD_F15_OR_ALL                         // CpuRevision
367     },
368     {AMD_PF_ALL},                           // platformFeatures
369     {{
370       DEEMPHASIS_LEVEL__3,
371       HTPHY_LINKTYPE_SL1_HT3,               //
372       0x730C,                                 // Address
373       0x00260000,                           // regData
374       0xFFFFFFFF,                           // regMask
375     }}
376   },
377   {
378     DeemphasisRegister,
379     {
380       AMD_FAMILY_15,                      // CpuFamily
381       AMD_F15_OR_ALL                         // CpuRevision
382     },
383     {AMD_PF_ALL},                           // platformFeatures
384     {{
385       DEEMPHASIS_LEVEL__6,
386       HTPHY_LINKTYPE_SL0_HT3,               //
387       0x720C,                                 // Address
388       0x00400000,                           // regData
389       0xFFFFFFFF,                           // regMask
390     }}
391   },
392   {
393     DeemphasisRegister,
394     {
395       AMD_FAMILY_15,                      // CpuFamily
396       AMD_F15_OR_ALL                         // CpuRevision
397     },
398     {AMD_PF_ALL},                           // platformFeatures
399     {{
400       DEEMPHASIS_LEVEL__6,
401       HTPHY_LINKTYPE_SL1_HT3,               //
402       0x730C,                                 // Address
403       0x00400000,                           // regData
404       0xFFFFFFFF,                           // regMask
405     }}
406   },
407   {
408     DeemphasisRegister,
409     {
410       AMD_FAMILY_15,                      // CpuFamily
411       AMD_F15_OR_ALL                         // CpuRevision
412     },
413     {AMD_PF_ALL},                           // platformFeatures
414     {{
415       DEEMPHASIS_LEVEL__8,
416       HTPHY_LINKTYPE_SL0_HT3,               //
417       0x720C,                                 // Address
418       0x004D0000,                           // regData
419       0xFFFFFFFF,                           // regMask
420     }}
421   },
422   {
423     DeemphasisRegister,
424     {
425       AMD_FAMILY_15,                      // CpuFamily
426       AMD_F15_OR_ALL                         // CpuRevision
427     },
428     {AMD_PF_ALL},                           // platformFeatures
429     {{
430       DEEMPHASIS_LEVEL__8,
431       HTPHY_LINKTYPE_SL1_HT3,               //
432       0x730C,                                 // Address
433       0x004D0000,                           // regData
434       0xFFFFFFFF,                           // regMask
435     }}
436   },
437   {
438     DeemphasisRegister,
439     {
440       AMD_FAMILY_15,                      // CpuFamily
441       AMD_F15_OR_ALL                         // CpuRevision
442     },
443     {AMD_PF_ALL},                           // platformFeatures
444     {{
445       DEEMPHASIS_LEVEL__11,
446       HTPHY_LINKTYPE_SL0_HT3,               //
447       0x720C,                                 // Address
448       0x005C0000,                           // regData
449       0xFFFFFFFF,                           // regMask
450     }}
451   },
452   {
453     DeemphasisRegister,
454     {
455       AMD_FAMILY_15,                      // CpuFamily
456       AMD_F15_OR_ALL                         // CpuRevision
457     },
458     {AMD_PF_ALL},                           // platformFeatures
459     {{
460       DEEMPHASIS_LEVEL__11,
461       HTPHY_LINKTYPE_SL1_HT3,               //
462       0x730C,                                 // Address
463       0x005C0000,                           // regData
464       0xFFFFFFFF,                           // regMask
465     }}
466   },
467   {
468     DeemphasisRegister,
469     {
470       AMD_FAMILY_15,                      // CpuFamily
471       AMD_F15_OR_ALL                         // CpuRevision
472     },
473     {AMD_PF_ALL},                           // platformFeatures
474     {{
475       DEEMPHASIS_LEVEL__11_8,
476       HTPHY_LINKTYPE_SL0_HT3,               //
477       0x720C,                                 // Address
478       0x004D0F00,                           // regData
479       0xFFFFFFFF,                           // regMask
480     }}
481   },
482   {
483     DeemphasisRegister,
484     {
485       AMD_FAMILY_15,                      // CpuFamily
486       AMD_F15_OR_ALL                         // CpuRevision
487     },
488     {AMD_PF_ALL},                           // platformFeatures
489     {{
490       DEEMPHASIS_LEVEL__11_8,
491       HTPHY_LINKTYPE_SL1_HT3,               //
492       0x730C,                                 // Address
493       0x004D0F00,                           // regData
494       0xFFFFFFFF,                           // regMask
495     }}
496   },
497
498 // Far-device deemphasis setting DCV[15:10]
499 // No deemphasis                 4Dh
500 // -2dB postcursor               3Dh
501 // -3dB postcursor               36h
502 // -5dB postcursor               2Bh
503 // -6dB postcursor               27h
504 // -7dB postcursor               22h
505 // -8dB postcursor               1Fh
506 // -9dB postcursor               1Bh
507 // -11dB postcursor              16h
508
509   {
510     DeemphasisRegister,
511     {
512       AMD_FAMILY_15,                      // CpuFamily
513       AMD_F15_OR_ALL                         // CpuRevision
514     },
515     {AMD_PF_ALL},                           // platformFeatures
516     {{
517       DCV_LEVEL_NONE,
518       HTPHY_LINKTYPE_SL0_HT3,               //
519       0xC4,                                 // Address
520       0x00013400,                           // regData
521       0x0003FC00,                           // regMask
522     }}
523   },
524   {
525     DeemphasisRegister,
526     {
527       AMD_FAMILY_15,                      // CpuFamily
528       AMD_F15_OR_ALL                         // CpuRevision
529     },
530     {AMD_PF_ALL},                           // platformFeatures
531     {{
532       DCV_LEVEL_NONE,
533       HTPHY_LINKTYPE_SL1_HT3,               //
534       0xD4,                                 // Address
535       0x00013400,                           // regData
536       0x0003FC00,                           // regMask
537     }}
538   },
539   {
540     DeemphasisRegister,
541     {
542       AMD_FAMILY_15,                      // CpuFamily
543       AMD_F15_OR_ALL                         // CpuRevision
544     },
545     {AMD_PF_ALL},                           // platformFeatures
546     {{
547       DCV_LEVEL__2,
548       HTPHY_LINKTYPE_SL0_HT3,               //
549       0xC4,                                 // Address
550       0x0000F400,                           // regData
551       0x0003FC00,                           // regMask
552     }}
553   },
554   {
555     DeemphasisRegister,
556     {
557       AMD_FAMILY_15,                      // CpuFamily
558       AMD_F15_OR_ALL                         // CpuRevision
559     },
560     {AMD_PF_ALL},                           // platformFeatures
561     {{
562       DCV_LEVEL__2,
563       HTPHY_LINKTYPE_SL1_HT3,               //
564       0xD4,                                 // Address
565       0x0000F400,                           // regData
566       0x0003FC00,                           // regMask
567     }}
568   },
569   {
570     DeemphasisRegister,
571     {
572       AMD_FAMILY_15,                      // CpuFamily
573       AMD_F15_OR_ALL                         // CpuRevision
574     },
575     {AMD_PF_ALL},                           // platformFeatures
576     {{
577       DCV_LEVEL__3,
578       HTPHY_LINKTYPE_SL0_HT3,               //
579       0xC4,                                 // Address
580       0x0000D800,                           // regData
581       0x0003FC00,                           // regMask
582     }}
583   },
584   {
585     DeemphasisRegister,
586     {
587       AMD_FAMILY_15,                      // CpuFamily
588       AMD_F15_OR_ALL                         // CpuRevision
589     },
590     {AMD_PF_ALL},                           // platformFeatures
591     {{
592       DCV_LEVEL__3,
593       HTPHY_LINKTYPE_SL1_HT3,               //
594       0xD4,                                 // Address
595       0x0000D800,                           // regData
596       0x0003FC00,                           // regMask
597     }}
598   },
599   {
600     DeemphasisRegister,
601     {
602       AMD_FAMILY_15,                      // CpuFamily
603       AMD_F15_OR_ALL                         // CpuRevision
604     },
605     {AMD_PF_ALL},                           // platformFeatures
606     {{
607       DCV_LEVEL__5,
608       HTPHY_LINKTYPE_SL0_HT3,               //
609       0xC4,                                 // Address
610       0x0000AC00,                           // regData
611       0x0003FC00,                           // regMask
612     }}
613   },
614   {
615     DeemphasisRegister,
616     {
617       AMD_FAMILY_15,                      // CpuFamily
618       AMD_F15_OR_ALL                         // CpuRevision
619     },
620     {AMD_PF_ALL},                           // platformFeatures
621     {{
622       DCV_LEVEL__5,
623       HTPHY_LINKTYPE_SL1_HT3,               //
624       0xD4,                                 // Address
625       0x0000AC00,                           // regData
626       0x0003FC00,                           // regMask
627     }}
628   },
629   {
630     DeemphasisRegister,
631     {
632       AMD_FAMILY_15,                      // CpuFamily
633       AMD_F15_OR_ALL                         // CpuRevision
634     },
635     {AMD_PF_ALL},                           // platformFeatures
636     {{
637       DCV_LEVEL__6,
638       HTPHY_LINKTYPE_SL0_HT3,               //
639       0xC4,                                 // Address
640       0x00009C00,                           // regData
641       0x0003FC00,                           // regMask
642     }}
643   },
644   {
645     DeemphasisRegister,
646     {
647       AMD_FAMILY_15,                      // CpuFamily
648       AMD_F15_OR_ALL                         // CpuRevision
649     },
650     {AMD_PF_ALL},                           // platformFeatures
651     {{
652       DCV_LEVEL__6,
653       HTPHY_LINKTYPE_SL1_HT3,               //
654       0xD4,                                 // Address
655       0x00009C00,                           // regData
656       0x0003FC00,                           // regMask
657     }}
658   },
659   {
660     DeemphasisRegister,
661     {
662       AMD_FAMILY_15,                      // CpuFamily
663       AMD_F15_OR_ALL                         // CpuRevision
664     },
665     {AMD_PF_ALL},                           // platformFeatures
666     {{
667       DCV_LEVEL__7,
668       HTPHY_LINKTYPE_SL0_HT3,               //
669       0xC4,                                 // Address
670       0x00008800,                           // regData
671       0x0003FC00,                           // regMask
672     }}
673   },
674   {
675     DeemphasisRegister,
676     {
677       AMD_FAMILY_15,                      // CpuFamily
678       AMD_F15_OR_ALL                         // CpuRevision
679     },
680     {AMD_PF_ALL},                           // platformFeatures
681     {{
682       DCV_LEVEL__7,
683       HTPHY_LINKTYPE_SL1_HT3,               //
684       0xD4,                                 // Address
685       0x00008800,                           // regData
686       0x0003FC00,                           // regMask
687     }}
688   },
689   {
690     DeemphasisRegister,
691     {
692       AMD_FAMILY_15,                      // CpuFamily
693       AMD_F15_OR_ALL                         // CpuRevision
694     },
695     {AMD_PF_ALL},                           // platformFeatures
696     {{
697       DCV_LEVEL__8,
698       HTPHY_LINKTYPE_SL0_HT3,               //
699       0xC4,                                 // Address
700       0x00007C00,                           // regData
701       0x0003FC00,                           // regMask
702     }}
703   },
704   {
705     DeemphasisRegister,
706     {
707       AMD_FAMILY_15,                      // CpuFamily
708       AMD_F15_OR_ALL                         // CpuRevision
709     },
710     {AMD_PF_ALL},                           // platformFeatures
711     {{
712       DCV_LEVEL__8,
713       HTPHY_LINKTYPE_SL1_HT3,               //
714       0xD4,                                 // Address
715       0x00007C00,                           // regData
716       0x0003FC00,                           // regMask
717     }}
718   },
719   {
720     DeemphasisRegister,
721     {
722       AMD_FAMILY_15,                      // CpuFamily
723       AMD_F15_OR_ALL                         // CpuRevision
724     },
725     {AMD_PF_ALL},                           // platformFeatures
726     {{
727       DCV_LEVEL__9,
728       HTPHY_LINKTYPE_SL0_HT3,               //
729       0xC4,                                 // Address
730       0x00006C00,                           // regData
731       0x0003FC00,                           // regMask
732     }}
733   },
734   {
735     DeemphasisRegister,
736     {
737       AMD_FAMILY_15,                      // CpuFamily
738       AMD_F15_OR_ALL                         // CpuRevision
739     },
740     {AMD_PF_ALL},                           // platformFeatures
741     {{
742       DCV_LEVEL__9,
743       HTPHY_LINKTYPE_SL1_HT3,               //
744       0xD4,                                 // Address
745       0x00006C00,                           // regData
746       0x0003FC00,                           // regMask
747     }}
748   },
749   {
750     DeemphasisRegister,
751     {
752       AMD_FAMILY_15,                      // CpuFamily
753       AMD_F15_OR_ALL                         // CpuRevision
754     },
755     {AMD_PF_ALL},                           // platformFeatures
756     {{
757       DCV_LEVEL__11,
758       HTPHY_LINKTYPE_SL0_HT3,               //
759       0xC4,                                 // Address
760       0x00005800,                           // regData
761       0x0003FC00,                           // regMask
762     }}
763   },
764   {
765     DeemphasisRegister,
766     {
767       AMD_FAMILY_15,                      // CpuFamily
768       AMD_F15_OR_ALL                         // CpuRevision
769     },
770     {AMD_PF_ALL},                           // platformFeatures
771     {{
772       DCV_LEVEL__11,
773       HTPHY_LINKTYPE_SL1_HT3,               //
774       0xD4,                                 // Address
775       0x00005800,                           // regData
776       0x0003FC00,                           // regMask
777     }}
778   },
779 // 0x520A
780 // [14:13] AnalogWaitTime = 10b
781   {
782     HtPhyRegister,
783     {
784       AMD_FAMILY_15,                      // CpuFamily
785       AMD_F15_OR_ALL                       // CpuRevision
786     },
787     {AMD_PF_ALL},                           // platformFeatures
788     {{
789       HTPHY_LINKTYPE_SL0_ALL,                   //
790       0x520A,                               // Address
791       0x00004000,                           // regData
792       0x00006000,                           // regMask
793     }}
794   },
795 // 0x530A
796 // [14:13] AnalogWaitTime = 10b
797   {
798     HtPhyRegister,
799     {
800       AMD_FAMILY_15,                      // CpuFamily
801       AMD_F15_OR_ALL                       // CpuRevision
802     },
803     {AMD_PF_ALL},                           // platformFeatures
804     {{
805       HTPHY_LINKTYPE_SL1_ALL,                   //
806       0x530A,                               // Address
807       0x00004000,                           // regData
808       0x00006000,                           // regMask
809     }}
810   },
811 // 0xE3
812 // [7] RoCalEn = 1b
813   {
814     HtPhyRegister,
815     {
816       AMD_FAMILY_15,                      // CpuFamily
817       AMD_F15_OR_ALL                       // CpuRevision
818     },
819     {AMD_PF_ALL},                           // platformFeatures
820     {{
821       HTPHY_LINKTYPE_ALL,                   //
822       0xE3,                               // Address
823       0x00000080,                           // regData
824       0x00000080,                           // regMask
825     }}
826   },
827 };
828
829 CONST REGISTER_TABLE ROMDATA F15OrHtPhyRegisterTable = {
830   PrimaryCores,
831   (sizeof (F15OrHtPhyRegisters) / sizeof (TABLE_ENTRY_FIELDS)),
832   F15OrHtPhyRegisters,
833 };