1 /* SPDX-License-Identifier: GPL-2.0-only */
3 /* Data to be patched by the BIOS during POST */
4 /* FIXME the patching is not done yet! */
5 /* Memory related values */
6 Name(LOMH, 0x0) /* Start of unused memory in C0000-E0000 range */
7 Name(PBAD, 0x0) /* Address of BIOS area (If TOM2 != 0, Addr >> 16) */
8 Name(PBLN, 0x0) /* Length of BIOS area */
10 Name(PCBA, CONFIG_MMCONF_BASE_ADDRESS) /* Base address of PCIe config space */
11 Name(PCLN, Multiply(0x100000, CONFIG_MMCONF_BUS_NUMBER)) /* Length of PCIe config space, 1MB each bus */
12 Name(HPBA, 0xFED00000) /* Base address of HPET table */
14 /* Some global data */
15 Name(OSVR, 3) /* Assume nothing. WinXp = 1, Vista = 2, Linux = 3, WinCE = 4 */
16 Name(OSV, Ones) /* Assume nothing */
17 Name(PICM, One) /* Assume APIC */
20 OperationRegion(GP0B, SystemMemory, 0xfed80814, 0x04)
21 Field(GP0B, ByteAcc, NoLock, Preserve) {
26 /* GPIO control block -- hardcoded to 0xfed80100 by AGESA */
27 OperationRegion (GPIO, SystemMemory, 0xfed80100, 0x100)
28 Field (GPIO, ByteAcc, NoLock, Preserve) {
31 GP57, 1, /* out: WLAN control (rf-kill) */
34 GE22, 1, /* General event 22 - connected to lid switch */
37 /* SMI/SCI control block -- hardcoded to 0xfed80200 by AGESA */
38 OperationRegion (SMIX, SystemMemory, 0xfed80200, 0x100)
39 Field (SMIX, AnyAcc, NoLock, Preserve) {
40 Offset (0x08), /* SCI level: 0 = active low, 1 = active high */
42 LPOL, 1, /* SCI22 trigger polarity - lid switch */
46 * Used by EC code on certain events
48 * From ec/compal/ene932/acpi/ec.asl:
49 * The mainboard must define a PNOT method to handle power state
50 * notifications and Notify CPU device objects to re-evaluate their
51 * _PPC and _CST tables.
55 Debug = "Received PNOT call (probably from EC)"
56 /* TODO: Implement this */
62 Name(_HID, EisaId("PNP0C0D"))
63 Name(_PRW, Package () {EC_LID_GPE, 0x04}) /* wake from S1-S4 */
66 Return (GE22) /* GE pin 22 */
71 /* Make sure lid trigger polarity is set so that we
72 * trigger an SCI when lid status changes.
79 Name(_HID, EisaId("PNP0C01")) // System Board
82 Method (LIDO) { /* Stub */ }
84 Method (LIDC) { /* Stub */ }
85 /* Increase brightness */
86 Method (BRTU) { /* Stub */ }
87 /* Decrease brightness */
88 Method (BRTD) { /* Stub */ }
90 Method (DSPS) { /* Stub */ }
96 /* Return lid state */