blob: 4a01875920eecc909b113604fc84f2793d1758c7 [file] [log] [blame]
Frank Vibrans69da1b62011-02-14 19:04:45 +00001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2011 Advanced Micro Devices, Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Paul Menzela8ae1c62013-02-20 13:21:20 +010012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Frank Vibrans69da1b62011-02-14 19:04:45 +000013 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
Paul Menzel7d75fbd2013-02-20 13:40:14 +010017 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Frank Vibrans69da1b62011-02-14 19:04:45 +000018 */
19
20#ifndef _PLATFORM_GNB_PCIE_COMPLEX_H
21#define _PLATFORM_GNB_PCIE_COMPLEX_H
22
23#include "Porting.h"
24#include "AGESA.h"
25#include "amdlib.h"
zbaof543c7b2012-04-13 13:42:46 +080026#include <cpu/amd/agesa/s3_resume.h>
Frank Vibrans69da1b62011-02-14 19:04:45 +000027
28//GNB GPP Port4
Marc Jones36abff12011-11-07 23:26:14 -070029#define GNB_GPP_PORT4_PORT_PRESENT 1 //0:Disable 1:Enable
30#define GNB_GPP_PORT4_SPEED_MODE 2 //0:Auto 1:GEN1 2:GEN2
31#define GNB_GPP_PORT4_LINK_ASPM 3 //0:Disable 1:L0s 2:L1 3:L0s+L1
32#define GNB_GPP_PORT4_CHANNEL_TYPE 4 //0:LowLoss(-3.5db) 1:HighLoss(-6db) 2:Half-swing(0db)
33 //3:Half-swing(-3.5db) 4:extended length (-6db) 5:extended length(-8db)
34#define GNB_GPP_PORT4_HOTPLUG_SUPPORT 0 //0:Disable 1:Basic 3:Enhanced
Frank Vibrans69da1b62011-02-14 19:04:45 +000035
36//GNB GPP Port5
Marc Jones36abff12011-11-07 23:26:14 -070037#define GNB_GPP_PORT5_PORT_PRESENT 1 //0:Disable 1:Enable
38#define GNB_GPP_PORT5_SPEED_MODE 2 //0:Auto 1:GEN1 2:GEN2
39#define GNB_GPP_PORT5_LINK_ASPM 3 //0:Disable 1:L0s 2:L1 3:L0s+L1
40#define GNB_GPP_PORT5_CHANNEL_TYPE 4 //0:LowLoss(-3.5db) 1:HighLoss(-6db) 2:Half-swing(0db)
41 //3:Half-swing(-3.5db) 4:extended length (-6db) 5:extended length(-8db)
42#define GNB_GPP_PORT5_HOTPLUG_SUPPORT 0 //0:Disable 1:Basic 3:Enhanced
Frank Vibrans69da1b62011-02-14 19:04:45 +000043
44//GNB GPP Port6
Marc Jones36abff12011-11-07 23:26:14 -070045#define GNB_GPP_PORT6_PORT_PRESENT 1 //0:Disable 1:Enable
46#define GNB_GPP_PORT6_SPEED_MODE 2 //0:Auto 1:GEN1 2:GEN2
47#define GNB_GPP_PORT6_LINK_ASPM 3 //0:Disable 1:L0s 2:L1 3:L0s+L1
48#define GNB_GPP_PORT6_CHANNEL_TYPE 4 //0:LowLoss(-3.5db) 1:HighLoss(-6db) 2:Half-swing(0db)
49 //3:Half-swing(-3.5db) 4:extended length (-6db) 5:extended length(-8db)
50#define GNB_GPP_PORT6_HOTPLUG_SUPPORT 0 //0:Disable 1:Basic 3:Enhanced
Frank Vibrans69da1b62011-02-14 19:04:45 +000051
52//GNB GPP Port7
Jens Rottmann9fba3032013-02-18 20:13:27 +010053#define GNB_GPP_PORT7_PORT_PRESENT 0 //0:Disable 1:Enable
Marc Jones36abff12011-11-07 23:26:14 -070054#define GNB_GPP_PORT7_SPEED_MODE 2 //0:Auto 1:GEN1 2:GEN2
55#define GNB_GPP_PORT7_LINK_ASPM 3 //0:Disable 1:L0s 2:L1 3:L0s+L1
56#define GNB_GPP_PORT7_CHANNEL_TYPE 4 //0:LowLoss(-3.5db) 1:HighLoss(-6db) 2:Half-swing(0db)
57 //3:Half-swing(-3.5db) 4:extended length (-6db) 5:extended length(-8db)
58#define GNB_GPP_PORT7_HOTPLUG_SUPPORT 0 //0:Disable 1:Basic 3:Enhanced
Frank Vibrans69da1b62011-02-14 19:04:45 +000059
60//GNB GPP Port8
Marc Jones36abff12011-11-07 23:26:14 -070061#define GNB_GPP_PORT8_PORT_PRESENT 1 //0:Disable 1:Enable
62#define GNB_GPP_PORT8_SPEED_MODE 2 //0:Auto 1:GEN1 2:GEN2
63#define GNB_GPP_PORT8_LINK_ASPM 3 //0:Disable 1:L0s 2:L1 3:L0s+L1
64#define GNB_GPP_PORT8_CHANNEL_TYPE 4 //0:LowLoss(-3.5db) 1:HighLoss(-6db) 2:Half-swing(0db)
65 //3:Half-swing(-3.5db) 4:extended length (-6db) 5:extended length(-8db)
66#define GNB_GPP_PORT8_HOTPLUG_SUPPORT 0 //0:Disable 1:Basic 3:Enhanced
Frank Vibrans69da1b62011-02-14 19:04:45 +000067
Stefan Reinauer5ff7c132011-10-31 12:56:45 -070068
Frank Vibrans69da1b62011-02-14 19:04:45 +000069#endif //_PLATFORM_GNB_PCIE_COMPLEX_H