5 * AMD Family_10 DR PCI tables with values as defined in BKDG
7 * @xrefitem bom "File Content Label" "Release Content"
9 * @e sub-project: CPU/FAMILY/0x10
10 * @e \$Revision: 56279 $ @e \$Date: 2011-07-11 13:11:28 -0600 (Mon, 11 Jul 2011) $
14 ******************************************************************************
16 * Copyright (C) 2012 Advanced Micro Devices, Inc.
17 * All rights reserved.
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.
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.
41 ******************************************************************************
44 /*----------------------------------------------------------------------------------------
45 * M O D U L E S U S E D
46 *----------------------------------------------------------------------------------------
50 #include "cpuRegisters.h"
56 #define FILECODE PROC_CPU_FAMILY_0X10_CPUF10HTPHYTABLES_FILECODE
58 /*----------------------------------------------------------------------------------------
59 * D E F I N I T I O N S A N D M A C R O S
60 *----------------------------------------------------------------------------------------
63 /*----------------------------------------------------------------------------------------
64 * T Y P E D E F S A N D S T R U C T U R E S
65 *----------------------------------------------------------------------------------------
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 *----------------------------------------------------------------------------------------
73 /*----------------------------------------------------------------------------------------
74 * E X P O R T E D F U N C T I O N S
75 *----------------------------------------------------------------------------------------
78 // HT P C I T a b l e s
79 // -------------------------
80 STATIC CONST TABLE_ENTRY_FIELDS ROMDATA F10HtPhyRegisters[] =
83 // HT_PHY_HT1_FIFO_PTR_OPT_VALUE
87 AMD_FAMILY_10, // CpuFamily
88 AMD_F10_ALL // CpuRevision
90 {AMD_PF_ALL}, // platformFeatures
92 HTPHY_LINKTYPE_SL0_HT1, //
94 0x0000006D, // regData
95 0x000000FF, // regMask
99 // HT_PHY_HT1_FIFO_PTR_OPT_VALUE
103 AMD_FAMILY_10, // CpuFamily
104 AMD_F10_ALL // CpuRevision
106 {AMD_PF_ALL}, // platformFeatures
108 HTPHY_LINKTYPE_SL1_HT1, //
110 0x0000006D, // regData
111 0x000000FF, // regMask
115 // Default for HT3, unless overridden below.
119 AMD_FAMILY_10, // CpuFamily
120 AMD_F10_ALL // CpuRevision
122 {AMD_PF_ALL}, // platformFeatures
124 HTPHY_LINKTYPE_SL0_HT3, //
126 0x0000005A, // regData
127 0x000000FF, // regMask
131 // Default for HT3, unless overridden below.
135 AMD_FAMILY_10, // CpuFamily
136 AMD_F10_ALL // CpuRevision
138 {AMD_PF_ALL}, // platformFeatures
140 HTPHY_LINKTYPE_SL1_HT3, //
142 0x0000005A, // regData
143 0x000000FF, // regMask
147 // [29:22] LfcMax = 20h, [21:14] LfcMin = 10h
151 AMD_FAMILY_10, // CpuFamily
152 AMD_F10_ALL // CpuRevision
154 {AMD_PF_ALL}, // platformFeatures
156 HTPHY_LINKTYPE_SL1_HT3, //
158 0x08040000, // regData
159 0x3FFFC000, // regMask
163 // [29:22] LfcMax = 20h, [21:14] LfcMin = 10h
167 AMD_FAMILY_10, // CpuFamily
168 AMD_F10_ALL // CpuRevision
170 {AMD_PF_ALL}, // platformFeatures
172 HTPHY_LINKTYPE_SL0_HT3, //
174 0x08040000, // regData
175 0x3FFFC000, // regMask
179 // [29:22] LfcMax = 10h, [21:14] LfcMin = 08h
183 AMD_FAMILY_10, // CpuFamily
184 AMD_F10_ALL // CpuRevision
186 {AMD_PF_ALL}, // platformFeatures
188 HTPHY_LINKTYPE_SL1_HT1, //
190 0x04020000, // regData
191 0x3FFFC000, // regMask
195 // [29:22] LfcMax = 10h, [21:14] LfcMin = 08h
199 AMD_FAMILY_10, // CpuFamily
200 AMD_F10_ALL // CpuRevision
202 {AMD_PF_ALL}, // platformFeatures
204 HTPHY_LINKTYPE_SL0_HT1, //
206 0x04020000, // regData
207 0x3FFFC000, // regMask
211 // Deemphasis Settings
214 // HT1: clear any warm reset deemphasis settings.
218 AMD_FAMILY_10, // CpuFamily
219 AMD_F10_ALL // CpuRevision
221 {AMD_PF_ALL}, // platformFeatures
223 HTPHY_LINKTYPE_SL0_HT1, //
225 0x00000000, // regData
226 0xE01F1FDF, // regMask
232 AMD_FAMILY_10, // CpuFamily
233 AMD_F10_ALL // CpuRevision
235 {AMD_PF_ALL}, // platformFeatures
237 HTPHY_LINKTYPE_SL1_HT1, //
239 0x00000000, // regData
240 0xE01F1FDF, // regMask
246 AMD_FAMILY_10, // CpuFamily
247 AMD_F10_ALL // CpuRevision
249 {AMD_PF_ALL}, // platformFeatures
251 HTPHY_LINKTYPE_SL0_HT1, //
253 0x00000000, // regData
254 0x0000FC00, // regMask
260 AMD_FAMILY_10, // CpuFamily
261 AMD_F10_ALL // CpuRevision
263 {AMD_PF_ALL}, // platformFeatures
265 HTPHY_LINKTYPE_SL1_HT1, //
267 0x00000000, // regData
268 0x0000FC00, // regMask
272 //deemphasis level DL1[20:16], DL2[12:8], DP1[4:0] PostCur1En[31] PostCur2En[30] PreCur1En[29] MapPostCur2En[6]
273 // No deemphasis 00h 00h 00h 0 0 0 0
274 // -3dB postcursor 12h 00h 00h 1 0 0 0
275 // -6dB postcursor 1Fh 00h 00h 1 0 0 0
276 // -8dB postcursor 1Fh 06h 00h 1 1 0 1
277 // -11dB postcursor 1Fh 0Dh 00h 1 1 0 1
278 // -11dB postcursor with
279 // -8dB precursor 1Fh 06h 07h 1 1 1 1
284 AMD_FAMILY_10, // CpuFamily
285 AMD_F10_ALL // CpuRevision
287 {AMD_PF_ALL}, // platformFeatures
289 DEEMPHASIS_LEVEL_NONE,
290 HTPHY_LINKTYPE_SL0_HT3, //
292 0x00000000, // regData
293 0xE01F1F5F, // regMask
299 AMD_FAMILY_10, // CpuFamily
300 AMD_F10_ALL // CpuRevision
302 {AMD_PF_ALL}, // platformFeatures
304 DEEMPHASIS_LEVEL_NONE,
305 HTPHY_LINKTYPE_SL1_HT3, //
307 0x00000000, // regData
308 0xE01F1F5F, // regMask
314 AMD_FAMILY_10, // CpuFamily
315 AMD_F10_ALL // CpuRevision
317 {AMD_PF_ALL}, // platformFeatures
320 HTPHY_LINKTYPE_SL0_HT3, //
322 0x80120000, // regData
323 0xE01F1F5F, // regMask
329 AMD_FAMILY_10, // CpuFamily
330 AMD_F10_ALL // CpuRevision
332 {AMD_PF_ALL}, // platformFeatures
335 HTPHY_LINKTYPE_SL1_HT3, //
337 0x80120000, // regData
338 0xE01F1F5F, // regMask
344 AMD_FAMILY_10, // CpuFamily
345 AMD_F10_ALL // CpuRevision
347 {AMD_PF_ALL}, // platformFeatures
350 HTPHY_LINKTYPE_SL0_HT3, //
352 0x801F0000, // regData
353 0xE01F1F5F, // regMask
359 AMD_FAMILY_10, // CpuFamily
360 AMD_F10_ALL // CpuRevision
362 {AMD_PF_ALL}, // platformFeatures
365 HTPHY_LINKTYPE_SL1_HT3, //
367 0x801F0000, // regData
368 0xE01F1F5F, // regMask
374 AMD_FAMILY_10, // CpuFamily
375 AMD_F10_ALL // CpuRevision
377 {AMD_PF_ALL}, // platformFeatures
380 HTPHY_LINKTYPE_SL0_HT3, //
382 0xC01F0640, // regData
383 0xE01F1F5F, // regMask
389 AMD_FAMILY_10, // CpuFamily
390 AMD_F10_ALL // CpuRevision
392 {AMD_PF_ALL}, // platformFeatures
395 HTPHY_LINKTYPE_SL1_HT3, //
397 0xC01F0640, // regData
398 0xE01F1F5F, // regMask
404 AMD_FAMILY_10, // CpuFamily
405 AMD_F10_ALL // CpuRevision
407 {AMD_PF_ALL}, // platformFeatures
409 DEEMPHASIS_LEVEL__11,
410 HTPHY_LINKTYPE_SL0_HT3, //
412 0xC01F0D40, // regData
413 0xE01F1F5F, // regMask
419 AMD_FAMILY_10, // CpuFamily
420 AMD_F10_ALL // CpuRevision
422 {AMD_PF_ALL}, // platformFeatures
424 DEEMPHASIS_LEVEL__11,
425 HTPHY_LINKTYPE_SL1_HT3, //
427 0xC01F0D40, // regData
428 0xE01F1F5F, // regMask
434 AMD_FAMILY_10, // CpuFamily
435 AMD_F10_ALL // CpuRevision
437 {AMD_PF_ALL}, // platformFeatures
439 DEEMPHASIS_LEVEL__11_8,
440 HTPHY_LINKTYPE_SL0_HT3, //
442 0xE01F0647, // regData
443 0xE01F1F5F, // regMask
449 AMD_FAMILY_10, // CpuFamily
450 AMD_F10_ALL // CpuRevision
452 {AMD_PF_ALL}, // platformFeatures
454 DEEMPHASIS_LEVEL__11_8,
455 HTPHY_LINKTYPE_SL1_HT3, //
457 0xE01F0647, // regData
458 0xE01F1F5F, // regMask
462 // Far-device deemphasis setting DCV[15:10]
464 // -2dB postcursor 19h
465 // -3dB postcursor 17h
466 // -5dB postcursor 11h
467 // -6dB postcursor 10h
468 // -7dB postcursor 0Eh
469 // -8dB postcursor 0Dh
470 // -9dB postcursor 0Bh
471 // -11dB postcursor 09h
476 AMD_FAMILY_10, // CpuFamily
477 AMD_F10_ALL // CpuRevision
479 {AMD_PF_ALL}, // platformFeatures
482 HTPHY_LINKTYPE_SL0_HT3, //
484 0x00008000, // regData
485 0x0000FC00, // regMask
491 AMD_FAMILY_10, // CpuFamily
492 AMD_F10_ALL // CpuRevision
494 {AMD_PF_ALL}, // platformFeatures
497 HTPHY_LINKTYPE_SL1_HT3, //
499 0x00008000, // regData
500 0x0000FC00, // regMask
506 AMD_FAMILY_10, // CpuFamily
507 AMD_F10_ALL // CpuRevision
509 {AMD_PF_ALL}, // platformFeatures
512 HTPHY_LINKTYPE_SL0_HT3, //
514 0x00006400, // regData
515 0x0000FC00, // regMask
521 AMD_FAMILY_10, // CpuFamily
522 AMD_F10_ALL // CpuRevision
524 {AMD_PF_ALL}, // platformFeatures
527 HTPHY_LINKTYPE_SL1_HT3, //
529 0x00006400, // regData
530 0x0000FC00, // regMask
536 AMD_FAMILY_10, // CpuFamily
537 AMD_F10_ALL // CpuRevision
539 {AMD_PF_ALL}, // platformFeatures
542 HTPHY_LINKTYPE_SL0_HT3, //
544 0x00005C00, // regData
545 0x0000FC00, // regMask
551 AMD_FAMILY_10, // CpuFamily
552 AMD_F10_ALL // CpuRevision
554 {AMD_PF_ALL}, // platformFeatures
557 HTPHY_LINKTYPE_SL1_HT3, //
559 0x00005C00, // regData
560 0x0000FC00, // regMask
566 AMD_FAMILY_10, // CpuFamily
567 AMD_F10_ALL // CpuRevision
569 {AMD_PF_ALL}, // platformFeatures
572 HTPHY_LINKTYPE_SL0_HT3, //
574 0x00004400, // regData
575 0x0000FC00, // regMask
581 AMD_FAMILY_10, // CpuFamily
582 AMD_F10_ALL // CpuRevision
584 {AMD_PF_ALL}, // platformFeatures
587 HTPHY_LINKTYPE_SL1_HT3, //
589 0x00004400, // regData
590 0x0000FC00, // regMask
596 AMD_FAMILY_10, // CpuFamily
597 AMD_F10_ALL // CpuRevision
599 {AMD_PF_ALL}, // platformFeatures
602 HTPHY_LINKTYPE_SL0_HT3, //
604 0x00004000, // regData
605 0x0000FC00, // regMask
611 AMD_FAMILY_10, // CpuFamily
612 AMD_F10_ALL // CpuRevision
614 {AMD_PF_ALL}, // platformFeatures
617 HTPHY_LINKTYPE_SL1_HT3, //
619 0x00004000, // regData
620 0x0000FC00, // regMask
626 AMD_FAMILY_10, // CpuFamily
627 AMD_F10_ALL // CpuRevision
629 {AMD_PF_ALL}, // platformFeatures
632 HTPHY_LINKTYPE_SL0_HT3, //
634 0x00003800, // regData
635 0x0000FC00, // regMask
641 AMD_FAMILY_10, // CpuFamily
642 AMD_F10_ALL // CpuRevision
644 {AMD_PF_ALL}, // platformFeatures
647 HTPHY_LINKTYPE_SL1_HT3, //
649 0x00003800, // regData
650 0x0000FC00, // regMask
656 AMD_FAMILY_10, // CpuFamily
657 AMD_F10_ALL // CpuRevision
659 {AMD_PF_ALL}, // platformFeatures
662 HTPHY_LINKTYPE_SL0_HT3, //
664 0x00003400, // regData
665 0x0000FC00, // regMask
671 AMD_FAMILY_10, // CpuFamily
672 AMD_F10_ALL // CpuRevision
674 {AMD_PF_ALL}, // platformFeatures
677 HTPHY_LINKTYPE_SL1_HT3, //
679 0x00003400, // regData
680 0x0000FC00, // regMask
686 AMD_FAMILY_10, // CpuFamily
687 AMD_F10_ALL // CpuRevision
689 {AMD_PF_ALL}, // platformFeatures
692 HTPHY_LINKTYPE_SL0_HT3, //
694 0x00002C00, // regData
695 0x0000FC00, // regMask
701 AMD_FAMILY_10, // CpuFamily
702 AMD_F10_ALL // CpuRevision
704 {AMD_PF_ALL}, // platformFeatures
707 HTPHY_LINKTYPE_SL1_HT3, //
709 0x00002C00, // regData
710 0x0000FC00, // regMask
716 AMD_FAMILY_10, // CpuFamily
717 AMD_F10_ALL // CpuRevision
719 {AMD_PF_ALL}, // platformFeatures
722 HTPHY_LINKTYPE_SL0_HT3, //
724 0x00002400, // regData
725 0x0000FC00, // regMask
731 AMD_FAMILY_10, // CpuFamily
732 AMD_F10_ALL // CpuRevision
734 {AMD_PF_ALL}, // platformFeatures
737 HTPHY_LINKTYPE_SL1_HT3, //
739 0x00002400, // regData
740 0x0000FC00, // regMask
746 CONST REGISTER_TABLE ROMDATA F10HtPhyRegisterTable = {
748 (sizeof (F10HtPhyRegisters) / sizeof (TABLE_ENTRY_FIELDS)),