27.10.2015 Views

Advanced Configuration and Power Interface Specification

ACPI_6.0

ACPI_6.0

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Advanced</strong> <strong>Configuration</strong> <strong>and</strong> <strong>Power</strong> <strong>Interface</strong> <strong>Specification</strong><br />

4.8.4.1.2.1 General-Purpose Event 1 Status Register<br />

Register Location: System I/O or System Memory Space<br />

Default Value:<br />

00h<br />

Attribute:<br />

Read/Write<br />

Size:<br />

GPE1_BLK_LEN/2<br />

The general -purpose event 1 status register contains the general-purpose event status bits. Each<br />

available status bit in this register corresponds to the bit with the same bit position in the GPE1_EN<br />

register. Each available status bit in this register is set when the event is active, <strong>and</strong> can only be<br />

cleared by software writing a “1” to its respective bit position. For the general-purpose event<br />

registers, unimplemented bits are ignored by the operating system.<br />

Each status bit can optionally wake the system if asserted when the system is in a sleeping state with<br />

its respective enable bit set.<br />

OSPM accesses GPE registers through byte accesses (regardless of their length).<br />

4.8.4.1.2.2 General-Purpose Event 1 Enable Register<br />

Register Location: System I/O or System Memory Space<br />

Default Value:<br />

00h<br />

Attribute:<br />

Read/Write<br />

Size:<br />

GPE1_BLK_LEN/2<br />

The general-purpose event 1 enable register contains the general-purpose event enable. Each<br />

available enable bit in this register corresponds to the bit with the same bit position in the<br />

GPE1_STS register. The enable bits work similarly to how the enable bits in the fixed-event<br />

registers are defined: When the enable bit is set, a set status bit in the corresponding status bit will<br />

generate an SCI bit.<br />

OSPM accesses GPE registers through byte accesses (regardless of their length).<br />

4.8.4.2 Example Generic Devices<br />

This section points out generic devices with specific ACPI driver support.<br />

4.8.4.2.1 Lid Switch<br />

The Lid switch is an optional feature present in most “clam shell” style mobile computers. It can be<br />

used by the OS as policy input for sleeping the system, or for waking the system from a sleeping<br />

state. If used, then the OEM needs to define the lid switch as a device with an _HID object value of<br />

“PNP0C0D”, which identifies this device as the lid switch to OSPM. The Lid device needs to<br />

contain a control method that returns its status. The Lid event h<strong>and</strong>ler AML code reconfigures the lid<br />

hardware (if it needs to) to generate an event in the other direction, clear the status, <strong>and</strong> then notify<br />

OSPM of the event.<br />

Example hardware <strong>and</strong> ASL code is shown below for such a design.<br />

Momentary Normally<br />

Open push button<br />

LID_POL<br />

8 ms<br />

Debounce<br />

LID_STS<br />

Figure 4-22 Example Generic Address Space Lid Switch Logic<br />

98 April, 2015 Version 6.0

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!