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>Power</strong> Source <strong>and</strong> <strong>Power</strong> Meter Devices<br />

10.1.3.1 Example: Single Smart Battery Subsystem<br />

This section illustrates how to define a Smart Battery subsystem containing a single Smart Battery<br />

<strong>and</strong> charger. The platform implementation is illustrated below:<br />

Embedded<br />

Controller<br />

Ports: 0x62, 0x66<br />

Offset: 0x80<br />

Query: 0x30<br />

SBS<br />

Battery<br />

0xB<br />

Host<br />

<strong>Interface</strong><br />

SMBus<br />

Host<br />

Controller<br />

(0x8)<br />

SMBus<br />

SBS<br />

Charger<br />

0x9<br />

Figure 10-60 Single Smart Battery Subsystem<br />

In this example, the platform is using an SMB-HC that resides within the embedded controller <strong>and</strong><br />

meets the ACPI st<strong>and</strong>ard for an embedded controller interface <strong>and</strong> SMB-HC interface. The<br />

embedded controller interface sits at system I/O port addresses 0x62 <strong>and</strong> 0x66. The SMB-HC is at<br />

base address 0x80 within embedded controller address space (as defined by the ACPI embedded<br />

controller specification) <strong>and</strong> responds to events on query value 0x30.<br />

In this example the Smart Battery subsystem only supports a single Smart Battery. The ASL code for<br />

describing this interface is shown below:<br />

Device (EC0) {<br />

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

Name (_CRS,<br />

ResourceTemplate () {<br />

// port 0x62 <strong>and</strong> 0x66<br />

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

IO (Decode16, 0x66, 0x66, 0, 1)<br />

}<br />

)<br />

Name (_GPE, 0)<br />

Device (SMB0) {<br />

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

// Smart Battery Host Controller<br />

Name (_EC, 0x8030)<br />

// EC offset (0x80), Query (0x30)<br />

Device (SBS0){<br />

// Smart Battery Subsystem<br />

Name (_HID, "ACPI0002") // Smart Battery Subsystem ID<br />

Name(_SBS, 0x1)<br />

// Indicates support for one battery<br />

} // end of SBS0<br />

} // end of SMB0<br />

} // end of EC<br />

10.1.3.2 Multiple Smart Battery Subsystem: Example<br />

This section illustrates how to define a Smart Battery subsystem that contains three Smart Batteries,<br />

a Smart Battery System Manager, <strong>and</strong> a Smart Battery Charger. The platform implementation is<br />

illustrated below:<br />

Version 6.0 567

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

Saved successfully!

Ooh no, something went wrong!