blob: 6826588e8959572f86f63a0e88700f3bda810a80 [file] [log] [blame]
Frank Vibrans2b4c8312011-02-14 18:30:54 +00001/**
2 * @file
3 *
4 * mtlrdimm3.h
5 *
6 * Definitions and declarations for DDR3 LRDIMM support
7 *
8 * @xrefitem bom "File Content Label" "Release Content"
9 * @e project: AGESA
10 * @e sub-project: (Mem)
11 * @e \$Revision: 27045 $ @e \$Date: 2010-02-22 17:21:31 -0600 (Mon, 22 Feb 2010) $
12 *
13 **/
14/*
15 *****************************************************************************
16 *
17 * Copyright (c) 2011, Advanced Micro Devices, Inc.
18 * All rights reserved.
Edward O'Callaghane963b382014-07-06 19:27:14 +100019 *
Frank Vibrans2b4c8312011-02-14 18:30:54 +000020 * Redistribution and use in source and binary forms, with or without
21 * modification, are permitted provided that the following conditions are met:
22 * * Redistributions of source code must retain the above copyright
23 * notice, this list of conditions and the following disclaimer.
24 * * Redistributions in binary form must reproduce the above copyright
25 * notice, this list of conditions and the following disclaimer in the
26 * documentation and/or other materials provided with the distribution.
Edward O'Callaghane963b382014-07-06 19:27:14 +100027 * * Neither the name of Advanced Micro Devices, Inc. nor the names of
28 * its contributors may be used to endorse or promote products derived
Frank Vibrans2b4c8312011-02-14 18:30:54 +000029 * from this software without specific prior written permission.
Edward O'Callaghane963b382014-07-06 19:27:14 +100030 *
Frank Vibrans2b4c8312011-02-14 18:30:54 +000031 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
32 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
33 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
34 * DISCLAIMED. IN NO EVENT SHALL ADVANCED MICRO DEVICES, INC. BE LIABLE FOR ANY
35 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
36 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
37 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
38 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
39 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
40 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Edward O'Callaghane963b382014-07-06 19:27:14 +100041 *
Frank Vibrans2b4c8312011-02-14 18:30:54 +000042 * ***************************************************************************
43 *
44 */
45
46#ifndef _MTLRDIMM3_H_
47#define _MTLRDIMM3_H_
48
49/*----------------------------------------------------------------------------
50 * Mixed (DEFINITIONS AND MACROS / TYPEDEFS, STRUCTURES, ENUMS)
51 *
52 *----------------------------------------------------------------------------
53 */
54
55/*-----------------------------------------------------------------------------
56 * DEFINITIONS AND MACROS
57 *
58 *-----------------------------------------------------------------------------
59 */
60#define RCW_FN_SELECT 7
61
62#define F0 0
63#define F1 1
64#define F2 2
65#define F3 3
66#define F4 4
67#define F5 5
68#define F6 6
69#define F7 7
70#define F8 8
71#define F9 9
72#define F10 10
73#define F11 11
74#define F12 12
75#define F13 13
76#define F14 14
77#define F15 15
78
79#define RC0 0
80#define RC1 1
81#define RC2 2
82#define RC3 3
83#define RC4 4
84#define RC5 5
85#define RC6 6
86#define RC7 7
87#define RC8 8
88#define RC9 9
89#define RC10 10
90#define RC11 11
91#define RC12 12
92#define RC13 13
93#define RC14 14
94#define RC15 15
95
96#define SPD_NONE 0
97#define SPD_67 67
98#define SPD_68 68
99#define SPD_69 69
100#define SPD_70 70
101#define SPD_71 71
102
103#define SPD_MDQ_800_1066 72
104#define SPD_QXODT_800_1066 73
105#define SPD_MR1_MR2_800_1066 77
Elyes Haouas90e4d742022-02-13 17:33:18 +0100106#define SPD_PERSONALITY_BYTE 102
Frank Vibrans2b4c8312011-02-14 18:30:54 +0000107
108#define SPD_FREQ_DIFF_OFFSET 6
109
110#define SPECIAL_CASE 0xFF
111
112#define WAIT_6US 0xF6
113
114/*----------------------------------------------------------------------------
115 * TYPEDEFS, STRUCTURES, ENUMS
116 *
117 *----------------------------------------------------------------------------
118 */
119
120
121/*----------------------------------------------------------------------------
122 * FUNCTIONS PROTOTYPE
123 *
124 *----------------------------------------------------------------------------
125 */
126
127#endif /* _MTLRDIMM3_H_ */