blob: 701e1bf0be02c23c62dc33a179c7120fcf9be8f9 [file] [log] [blame]
Angel Pons1db5bc72020-01-15 00:49:03 +01001/*
2 * This file is part of the coreboot project.
3 *
Angel Pons1db5bc72020-01-15 00:49:03 +01004 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; version 2 of the License.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 */
14
15#ifndef __HASWELL_MCHBAR_REGS_H__
16#define __HASWELL_MCHBAR_REGS_H__
17
18/* Register definitions */
19#define MAD_CHNL 0x5000 /* Address Decoder Channel Configuration */
20#define MAD_DIMM_CH0 0x5004 /* Address Decode Channel 0 */
21#define MAD_DIMM_CH1 0x5008 /* Address Decode Channel 1 */
22#define MAD_DIMM_CH2 0x500c /* Address Decode Channel 2 (unused on HSW) */
23#define MC_INIT_STATE_G 0x5030
24#define MRC_REVISION 0x5034 /* MRC Revision */
25
26#define MC_LOCK 0x50fc /* Memory Controlller Lock register */
27
28#define GFXVTBAR 0x5400 /* Base address for IGD */
29#define EDRAMBAR 0x5408 /* Base address for eDRAM */
30#define VTVC0BAR 0x5410 /* Base address for PEG, USB, SATA, etc. */
31#define INTRDIRCTL 0x5418 /* Interrupt Redirection Control (PAIR) */
32#define GDXCBAR 0x5420 /* Generic Debug eXternal Connection */
33
34/* PAVP message register. Bit 0 locks PAVP settings, and bits [31..20] are an offset. */
35#define MMIO_PAVP_MSG 0x5500
36
37/* Some power MSRs are also represented in MCHBAR */
38#define MCH_PKG_POWER_LIMIT_LO 0x59a0
39#define MCH_PKG_POWER_LIMIT_HI 0x59a4
40
41#define MCH_DDR_POWER_LIMIT_LO 0x58e0
42#define MCH_DDR_POWER_LIMIT_HI 0x58e4
43
44#define SSKPD 0x5d10 /* 64-bit scratchpad register */
45#define BIOS_RESET_CPL 0x5da8 /* 8-bit */
46
47#define MC_BIOS_DATA 0x5e04 /* Miscellaneous information for BIOS */
48#define SAPMCTL 0x5f00
49
50#define HDAUDRID 0x6008
51#define UMAGFXCTL 0x6020
52#define VDMBDFBARKVM 0x6030
53#define VDMBDFBARPAVP 0x6034
54#define VTDTRKLCK 0x63fc
55#define REQLIM 0x6800
56#define DMIVCLIM 0x7000
57#define CRDTLCK 0x77fc
58
59#endif /* __HASWELL_MCHBAR_REGS_H__ */