blob: ebd52ab76f1a585f05cd3e2ba0c7bbc64278e2a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
;@file
; Chipset constants and macros
;
;@copyright
; Copyright (c) 1999 - 2012 Intel Corporation. All rights reserved
; This software and associated documentation (if any) is furnished
; under a license and may only be used or copied in accordance
; with the terms of the license. Except as permitted by such
; license, no part of this software or documentation may be
; reproduced, stored in a retrieval system, or transmitted in any
; form or by any means without the express written consent of
; Intel Corporation.
;
; This file contains a 'Sample Driver' and is licensed as such
; under the terms of your license agreement with Intel or your
; vendor. This file may be modified by the user, subject to
; the additional terms of the license agreement
;
;
; APIC register
;
APICID EQU 0FEE00020h
;
; Power Management I/O Registers
;
PCH_ACPI_BASE_ADDRESS EQU 0500h
ACPI_PM1_STS EQU 000h
ACPI_PM1_CNT EQU 004h
;
; PCH RCBA base address
;
PCH_RCRB_BASE EQU 0FED1C000h
PCH_RCRB_BASE_REG EQU 8000F8F0h ; PCH Register B0:D31:RF0
PCH_RCRB_GCS EQU 03410h
PCH_RCRB_RTC_CONF EQU 03400h
PCH_RCRB_RTC_CONF_UCMOS_EN EQU 04h
PCH_RCRB_HPET EQU 03404h
PCH_RCRB_HPET_DECODE EQU 080h
;
; HPET compare register
;
HPET_COMP_1 EQU 0FED00108h
HPET_COMP_2 EQU 0FED0010Ch
HPET_COMP_3 EQU 0FED00128h
HPET_COMP_4 EQU 0FED00148h
;
; MCH PCIe base address
;
;Need to match PcdPciExpressBaseAddress or PCIEX_BASE_ADDRESS
;CPU_HEC_BASE EQU 0E0000000h ; Must be X0000000
;(AMI_CHG)>
CPU_HEC_BASE EQU MKF_PCIEX_BASE_ADDRESS ; Must be X0000000
;<(AMI_CHG)
;CPU_HEC_SIZE EQU 000000000h ; 256M
;(AMI_CHG)>
CPU_HEC_SIZE EQU MKF_PCIEX_LENGTH_BIT_SETTING ; 64M, 128M, 256M
;<(AMI_CHG)
CPU_HEC_EN EQU 000000001h ; Enable
CPU0_HEC_PCI_ADDR EQU 080FF0150h
CPU1_HEC_PCI_ADDR EQU 080FE0150h
PCI_LPC_BASE EQU 08000F800h
GPIO_BASE_ADDRESS EQU 0800h
R_GPIO_USE_SEL2 EQU 030h
R_GPIO_IO_SEL2 EQU 034h
R_GPIO_LVL2 EQU 038h
;
; PCI registers
;
PCH_LPC_PMBASE_PCI_ADDR EQU ((1Fh * 8 + 00h) * 1000h + 0040h + CPU_HEC_BASE)
PCH_LPC_ACPICNTL_PCI_ADDR EQU ((1Fh * 8 + 00h) * 1000h + 0044h + CPU_HEC_BASE)
PCH_LPC_GEN_PMCON_3_ADDR EQU ((1Fh * 8 + 00h) * 1000h + 00A4h + CPU_HEC_BASE)
PCH_LPC_RCRB_PCI_ADDR EQU ((1Fh * 8 + 00h) * 1000h + 00F0h + CPU_HEC_BASE)
PCH_LPC_BIOS_CNTL_PCI_ADDR EQU ((1Fh * 8 + 00h) * 1000h + 00DCh + CPU_HEC_BASE)
MCH_UNCERRMASK_PCI_ADDR EQU ((00h * 8 + 00h) * 1000h + 0108h + CPU_HEC_BASE)
MCH_SYRE_PCI_ADDR EQU ((10h * 8 + 00h) * 1000h + 0040h + CPU_HEC_BASE)
SYRE_CPURST EQU 14
;
; PCIEXBAR constants for enable in bit [0]
;
ENABLE EQU 1
;
; PCIEXBAR constants for size in bit [2:1]
;
PCIEXBAR_64MB EQU 010b
PCIEXBAR_128MB EQU 001b
PCIEXBAR_256MB EQU 000b
MMCFG_BASE EQU CPU_HEC_BASE ; 4GB-128MB
MMCFG_LENGTH_BIT_SETTING EQU CPU_HEC_SIZE ; 64M, 128M, 256M
DMIBAR_REG EQU (068h + CPU_HEC_BASE)
DMI_BASE_ADDRESS EQU 0FED18000h
MCHBAR_REG EQU (048h + CPU_HEC_BASE)
MCH_BASE_ADDRESS EQU 0FED10000h
|