3 #ifndef __NORTHBRIDGE_INTEL_X4X_H__
4 #define __NORTHBRIDGE_INTEL_X4X_H__
9 #define BOOT_PATH_NORMAL 0
10 #define BOOT_PATH_WARM_RESET 1
11 #define BOOT_PATH_RESUME 2
16 #define HOST_BRIDGE PCI_DEV(0, 0, 0)
18 #include "registers/host_bridge.h"
26 #define D1F0_VCCAP 0x104
27 #define D1F0_VC0RCTL 0x114
32 #define GCFGC_PCIDEV PCI_DEV(0, 2, 0)
33 #define GCFGC_OFFSET 0xf0
34 #define GCFGC_CR_SHIFT 0
35 #define GCFGC_CR_MASK (0xf << GCFGC_CR_SHIFT)
36 #define GCFGC_CS_SHIFT 8
37 #define GCFGC_CS_MASK (0xf << GCFGC_CS_SHIFT)
38 #define GCFGC_CD_SHIFT 12
39 #define GCFGC_CD_MASK (0x1 << GCFGC_CD_SHIFT)
40 #define GCFGC_UPDATE_SHIFT 5
41 #define GCFGC_UPDATE (0x1 << GCFGC_UPDATE_SHIFT)
49 #define CHDECMISC 0x111
50 #define STACKED_MEM (1 << 1)
58 #define C0CKECTRL 0x260
66 #define C1CKECTRL 0x660
68 #define PMSTS_MCHBAR 0x0f14
69 #define PMSTS_WARM_RESET (1 << 8)
70 #define PMSTS_BOTH_SELFREFRESH (3 << 0)
72 #define CLKCFG_MCHBAR 0x0c00
73 #define CLKCFG_FSBCLK_SHIFT 0
74 #define CLKCFG_FSBCLK_MASK (7 << CLKCFG_FSBCLK_SHIFT)
75 #define CLKCFG_MEMCLK_SHIFT 4
76 #define CLKCFG_MEMCLK_MASK (7 << CLKCFG_MEMCLK_SHIFT)
77 #define CLKCFG_UPDATE (1 << 10)
79 #define SSKPD_MCHBAR 0x0c20
85 #define DMIVCECH 0x000
86 #define DMIPVCCAP1 0x004
88 #define DMIVC0RCAP 0x010
89 #define DMIVC0RCTL 0x014
90 #define DMIVC0RSTS 0x01a
91 #define VC0NP (1 << 1)
93 #define DMIVC1RCAP 0x01c
94 #define DMIVC1RCTL 0x020
95 #define DMIVC1RSTS 0x026
96 #define VC1NP (1 << 1)
98 #define DMIVCPRCAP 0x028
99 #define DMIVCPRCTL 0x02c
100 #define DMIVCPRSTS 0x032
101 #define VCPNP (1 << 1)
103 #define DMIVCMRCAP 0x034
104 #define DMIVCMRCTL 0x038
105 #define DMIVCMRSTS 0x03e
106 #define VCMNP (1 << 1)
110 #define DMILE1D 0x050
111 #define DMILE1A 0x058
112 #define DMILE2D 0x060
113 #define DMILE2A 0x068
115 #define DMILCAP 0x084
116 #define DMILCTL 0x088
117 #define DMILSTS 0x08a
119 #define DMIUESTS 0x1c4
120 #define DMICESTS 0x1d0
126 #define EPPVCCAP1 0x004
127 #define EPPVCCTL 0x00c
129 #define EPVC0RCAP 0x010
130 #define EPVC0RCTL 0x014
131 #define EPVC0RSTS 0x01a
133 #define EPVC1RCAP 0x01c
134 #define EPVC1RCTL 0x020
135 #define EPVC1RSTS 0x026
137 #define EPVC1MTS 0x028
138 #define EPVC1ITC 0x02c
147 #define EP_PORTARB(x) (0x100 + 4 * (x))
160 unsigned long start,
struct acpi_rsdp *rsdp);
u32 decode_igd_memory_size(u32 gms)
Decodes used Graphics Mode Select (GMS) to kilobytes.
void x4x_early_init(void)
void mb_get_spd_map(u8 spd_map[4])
u32 decode_igd_gtt_size(u32 gsm)
Decodes used Graphics Stolen Memory (GSM) to kilobytes.
u32 decode_tseg_size(const u32 esmramc)
Decodes used TSEG size to bytes.
void mb_pre_raminit_setup(int s3_resume)
unsigned long northbridge_write_acpi_tables(const struct device *device, unsigned long start, struct acpi_rsdp *rsdp)