2 * This file is part of the coreboot project.
4 * Copyright (C) 2007-2009 coresystems GmbH
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; version 2 of
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
22 /* Intel i82801G support
27 // IO-Trap at 0x800. This is the ACPI->SMI communication interface.
29 OperationRegion(IO_T, SystemIO, 0x800, 0x10)
30 Field(IO_T, ByteAcc, NoLock, Preserve)
33 TRP0, 8 // IO-Trap at 0x808
36 // ICH7 Power Management Registers, located at PMBASE (0x1f.0 0x40.l)
37 // this doesn't work as ACPI initializes regions and packages first, devices second.
38 // use dynamic operation region? if so, how? XXX
39 //OperationRegion(PMIO, SystemIO, And(\_SB_.PCI0.LPCB.PMBS, 0xfffc), 0x80)
40 OperationRegion(PMIO, SystemIO, 0x500, 0x80)
41 Field(PMIO, ByteAcc, NoLock, Preserve)
43 Offset(0x42), // General Purpose Control
45 GPEC, 1, // TCO status
46 , 9, // skip 9 more bits
47 SCIS, 1, // TCO DMI status
48 , 6 // To the end of the word
51 // ICH7 GPIO IO mapped registers (0x1f.0 reg 0x48.l)
52 OperationRegion(GPIO, SystemIO, 0x1180, 0x3c)
53 Field(GPIO, ByteAcc, NoLock, Preserve)
55 Offset(0x00), // GPIO Use Select
60 Offset(0x04), // GPIO IO Select
65 Offset(0x0c), // GPIO Level
69 GP27, 1, // SATA_PWR_EN #0
70 GP28, 1, // SATA_PWR_EN #1
72 Offset(0x18), // GPIO Blink
77 Offset(0x2c), // GPIO Invert
82 Offset(0x30), // GPIO Use Select 2
87 Offset(0x34), // GPIO IO Select 2
92 Offset(0x38), // GPIO Level 2
94 GP37, 1, // PATA_PWR_EN
95 GP38, 1, // Battery / Power (?)
103 // ICH7 Root Complex Register Block. Memory Mapped through RCBA)
104 OperationRegion(RCRB, SystemMemory, 0xfed1c000, 0x4000)
105 Field(RCRB, DWordAcc, Lock, Preserve)
107 Offset(0x0000), // Backbone
108 Offset(0x1000), // Chipset
109 Offset(0x3000), // Legacy Configuration Registers
110 Offset(0x3404), // High Performance Timer Configuration
111 HPAS, 2, // Address Select
113 HPTE, 1, // Address Enable
114 Offset(0x3418), // FD (Function Disable)
116 PATD, 1, // PATA disable
117 SATD, 1, // SATA disable
118 SMBD, 1, // SMBUS disable
119 HDAD, 1, // Azalia disable
120 A97D, 1, // AC'97 disable
121 M97D, 1, // AC'97 disable
122 ILND, 1, // Internal LAN disable
123 US1D, 1, // UHCI #1 disable
124 US2D, 1, // UHCI #2 disable
125 US3D, 1, // UHCI #3 disable
126 US4D, 1, // UHCI #4 disable
128 LPBD, 1, // LPC bridge disable
129 EHCD, 1, // EHCI disable
130 Offset(0x341a), // FD Root Ports
131 RP1D, 1, // Root Port 1 disable
132 RP2D, 1, // Root Port 2 disable
133 RP3D, 1, // Root Port 3 disable
134 RP4D, 1, // Root Port 4 disable
135 RP5D, 1, // Root Port 5 disable
136 RP6D, 1 // Root Port 6 disable
141 // 0:1b.0 High Definition Audio (Azalia)
142 Include ("../../../southbridge/intel/i82801gx/acpi/ich7_audio.asl")
145 Include ("../../../southbridge/intel/i82801gx/acpi/ich7_pcie.asl")
148 Include ("../../../southbridge/intel/i82801gx/acpi/ich7_usb.asl")
151 Include ("../../../southbridge/intel/i82801gx/acpi/ich7_pci.asl")
153 // AC97 Audio and Modem
154 Include ("../../../southbridge/intel/i82801gx/acpi/ich7_ac97.asl")
157 Include ("../../../southbridge/intel/i82801gx/acpi/ich7_lpc.asl")
160 Include ("../../../southbridge/intel/i82801gx/acpi/ich7_pata.asl")
163 Include ("../../../southbridge/intel/i82801gx/acpi/ich7_sata.asl")
166 Include ("../../../southbridge/intel/i82801gx/acpi/ich7_smbus.asl")