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 />

Name(_GPE, 0)<br />

// Define that the EC SCI is bit 0 of the GP_STS register<br />

// Not required for HW-Reduced ACPI platforms<br />

OperationRegion(ECOR, EmbeddedControl, 0, 0xFF)<br />

Field(ECOR, ByteAcc, Lock, Preserve) {<br />

// Field definitions go here<br />

}<br />

}<br />

12.12 Defining an EC SMBus Host Controller in ACPI<br />

Namespace<br />

An EC-SMB-HC device is defined using the named device object. The EC-SMB- HC’s device<br />

object requires the following elements:<br />

Table 12-301 EC SMBus HC Device Objects<br />

Object<br />

_HID<br />

_EC<br />

Description<br />

Named object that provides the EC-SMB- HC’s Plug <strong>and</strong> Play identifier. This value is be set to<br />

ACPI0001. _HID is a st<strong>and</strong>ard device configuration control method defined in Section 6.1.5,<br />

“_HID (Hardware ID).”<br />

Named object that evaluates to a WORD that defines the SMBus attributes needed by the<br />

SMBus driver. _EC is the Embedded Controller Offset Query Control Method. The most<br />

significant byte is the address offset in embedded controller space of the SMBus controller; the<br />

least significant byte is the query value for all SMBus events.<br />

12.12.1 Example: EC SMBus Host Controller ASL-Code<br />

Example ASL code that defines an SMB-HC from within an embedded controller device is shown<br />

below:<br />

Device(EC0)<br />

{<br />

Name(_HID, EISAID("PNP0C09"))<br />

Name(_CRS, ResourceTemplate()<br />

{<br />

IO(Decode16, 0x62, 0x62, 0, 1), // Status port<br />

IO(Decode16, 0x66, 0x66, 0, 1) // comm<strong>and</strong> port<br />

})<br />

Name(_GPE, 0)<br />

Device (SMB0)<br />

{<br />

Name(_HID, "ACPI0001")<br />

Name(_UID, 0)<br />

Name(_EC, 0x2030)<br />

:<br />

}<br />

// EC-SMB-HC<br />

// Unique device identifier<br />

// EC offset 0x20, query bit 0x30<br />

658 April, 2015 Version 6.0

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

Saved successfully!

Ooh no, something went wrong!