2 *****************************************************************************
4 * This file is part of the coreboot project.
6 * Copyright (C) 2011 Advanced Micro Devices, Inc.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; version 2 of the License.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 * ***************************************************************************
24 #ifndef _AMD_SBPLATFORM_H_
25 #define _AMD_SBPLATFORM_H_
27 //#include "cbtypes.h"
33 typedef unsigned long long PLACEHOLDER;
35 #ifndef SBOEM_ACPI_RESTORE_SWSMI
36 #define SBOEM_BEFORE_PCI_RESTORE_SWSMI 0xD3
37 #define SBOEM_AFTER_PCI_RESTORE_SWSMI 0xD4
40 #ifndef _AMD_NB_CIM_X_PROTOCOL_H_
43 /// Extended PCI Address
44 typedef struct _EXT_PCI_ADDR {
45 UINT32 Reg :16; ///< / PCI Register
46 UINT32 Func:3; ///< / PCI Function
47 UINT32 Dev :5; ///< / PCI Device
48 UINT32 Bus :8; ///< / PCI Address
52 typedef union _PCI_ADDR {
53 UINT32 ADDR; ///< / 32 bit Address
54 EXT_PCI_ADDR Addr; ///< / Extended PCI Address
58 #define FIXUP_PTR(ptr) ptr
70 #include "SbBiosRamUsage.h"
73 //------------------------------------------------------------------------------------------------------------------------//
75 * SB_CIMx_PARAMETER 0 1 2 Defult Value When CIMx Take over
76 * SpreadSpectrum CIMx take over User (Setup Option) User (Setup Option) Enable
77 * SpreadSpectrumType CIMx take over User (Setup Option) User (Setup Option) Normal
78 * HpetTimer CIMx take over User (Setup Option) User (Setup Option) Enable
79 * HpetMsiDis CIMx take over User (Setup Option) User (Setup Option) Enable (0x00)
80 * IrConfig CIMx take over User (Setup Option) User (Setup Option) Disable (0x00)
81 * SpiFastReadEnable CIMx take over User (Setup Option) User (Setup Option) Disable
82 * SpiFastReadSpeed CIMx take over User (Setup Option) User (Setup Option) Disable (NULL)
83 * NbSbGen2 CIMx take over User (Setup Option) User (Setup Option) Enable
84 * AlinkPhyPllPowerDown CIMx take over User (Setup Option) User (Setup Option) Enable
85 * ResetCpuOnSyncFlood CIMx take over User (Setup Option) User (Setup Option) Enable
86 * GppGen2 CIMx take over User (Setup Option) User (Setup Option) Disable
87 * GppMemWrImprove CIMx take over User (Setup Option) User (Setup Option) Enable
88 * GppPortAspm CIMx take over User (Setup Option) User (Setup Option) Disable
89 * GppLaneReversal CIMx take over User (Setup Option) User (Setup Option) Disable
90 * GppPhyPllPowerDown CIMx take over User (Setup Option) User (Setup Option) Enable
91 * UsbPhyPowerDown CIMx take over User (Setup Option) User (Setup Option) Disable
92 * SBGecDebugBus CIMx take over User (Setup Option) User (Setup Option) Disable
93 * SBGecPwr CIMx take over User (Setup Option) User (Setup Option) Nerver Power down (0x11)
94 * SataSetMaxGen2 CIMx take over User (Setup Option) User (Setup Option) Max Gen3 (0x00)
95 * SataClkMode CIMx take over User (Setup Option) User (Setup Option) 0x90 int. 100Mhz
96 * SataAggrLinkPmCap CIMx take over User (Setup Option) User (Setup Option) Enable
97 * SataPortMultCap CIMx take over User (Setup Option) User (Setup Option) Enable
98 * SataPscCap CIMx take over User (Setup Option) User (Setup Option) Enable (0x00)
99 * SataSscCap CIMx take over User (Setup Option) User (Setup Option) Enable (0x00)
100 * SataFisBasedSwitching CIMx take over User (Setup Option) User (Setup Option) Disable
101 * SataCccSupport CIMx take over User (Setup Option) User (Setup Option) Disable
102 * SataMsiCapability CIMx take over User (Setup Option) User (Setup Option) Enable
103 * SataClkAutoOff CIMx take over User (Setup Option) User (Setup Option) Disable
104 * AcDcMsg CIMx take over User (Setup Option) User (Setup Option) Disable
105 * TimerTickTrack CIMx take over User (Setup Option) User (Setup Option) Disable
106 * ClockInterruptTag CIMx take over User (Setup Option) User (Setup Option) Disable
107 * OhciTrafficHanding CIMx take over User (Setup Option) User (Setup Option) Disable
108 * EhciTrafficHanding CIMx take over User (Setup Option) User (Setup Option) Disable
109 * FusionMsgCMultiCore CIMx take over User (Setup Option) User (Setup Option) Disable
110 * FusionMsgCStage CIMx take over User (Setup Option) User (Setup Option) Disable
112 #define SB_CIMx_PARAMETER 0x02
115 #define cimSpreadSpectrumDefault TRUE
116 #define cimSpreadSpectrumTypeDefault 0x00 // Normal
117 #define cimHpetTimerDefault TRUE
118 #define cimHpetMsiDisDefault FALSE // Enable
119 #define cimIrConfigDefault 0x00 // Disable
120 #define cimSpiFastReadEnableDefault 0x00 // Disable
121 #define cimSpiFastReadSpeedDefault 0x00 // NULL
123 #define cimNbSbGen2Default TRUE
124 #define cimAlinkPhyPllPowerDownDefault TRUE
125 #define cimResetCpuOnSyncFloodDefault TRUE
126 #define cimGppGen2Default FALSE
127 #define cimGppMemWrImproveDefault TRUE
128 #define cimGppPortAspmDefault FALSE
129 #define cimGppLaneReversalDefault FALSE
130 #define cimGppPhyPllPowerDownDefault TRUE
132 #define cimUsbPhyPowerDownDefault FALSE
134 #define cimSBGecDebugBusDefault FALSE
135 #define cimSBGecPwrDefault 0x03
137 #define cimSataSetMaxGen2Default 0x00
138 #define cimSATARefClkSelDefault 0x10
139 #define cimSATARefDivSelDefault 0x80
140 #define cimSataAggrLinkPmCapDefault TRUE
141 #define cimSataPortMultCapDefault TRUE
142 #define cimSataPscCapDefault 0x00 // Enable
143 #define cimSataSscCapDefault 0x00 // Enable
144 #define cimSataFisBasedSwitchingDefault FALSE
145 #define cimSataCccSupportDefault FALSE
146 #define cimSataClkAutoOffDefault FALSE
147 #define cimNativepciesupportDefault FALSE
149 #define cimAcDcMsgDefault FALSE
150 #define cimTimerTickTrackDefault FALSE
151 #define cimClockInterruptTagDefault FALSE
152 #define cimOhciTrafficHandingDefault FALSE
153 #define cimEhciTrafficHandingDefault FALSE
154 #define cimFusionMsgCMultiCoreDefault FALSE
155 #define cimFusionMsgCStageDefault FALSE
156 #endif // _AMD_SBPLATFORM_H_