ec/lenovo/h8/acpi/ec: Add registers
Add register HPPI and GSTS. Add method WLSW that is used by thinkpad_acpi kernel module. Seperate method by an empty newline. Change-Id: I5a125047fad0e08cd9256bc53c3f5a7db7e56e7d Signed-off-by: Patrick Rudolph <siro@das-labor.org> Reviewed-on: https://review.coreboot.org/20987 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Alexander Couzens <lynxis@fe80.eu>
This commit is contained in:
parent
28f30a138a
commit
112ae4860f
|
@ -57,6 +57,9 @@ Device(EC)
|
||||||
KBLT, 1, /* Keyboard Light */
|
KBLT, 1, /* Keyboard Light */
|
||||||
, 2,
|
, 2,
|
||||||
USPW, 1, /* USB Power enable */
|
USPW, 1, /* USB Power enable */
|
||||||
|
Offset (0x48),
|
||||||
|
HPPI, 1, /* Headphone plugged in */
|
||||||
|
GSTS, 1, /* Master wireless switch */
|
||||||
Offset (0x4e),
|
Offset (0x4e),
|
||||||
WAKE, 16,
|
WAKE, 16,
|
||||||
Offset (0x78),
|
Offset (0x78),
|
||||||
|
@ -288,18 +291,24 @@ Device(EC)
|
||||||
Name (_HID, EisaId ("IBM0068"))
|
Name (_HID, EisaId ("IBM0068"))
|
||||||
Name (BTN, 0)
|
Name (BTN, 0)
|
||||||
Name (BTAB, 0)
|
Name (BTAB, 0)
|
||||||
|
|
||||||
/* MASK */
|
/* MASK */
|
||||||
Name (DHKN, 0x080C)
|
Name (DHKN, 0x080C)
|
||||||
|
|
||||||
/* Effective Mask */
|
/* Effective Mask */
|
||||||
Name (EMSK, 0)
|
Name (EMSK, 0)
|
||||||
|
|
||||||
/* Effective Mask for tablet */
|
/* Effective Mask for tablet */
|
||||||
Name (ETAB, 0)
|
Name (ETAB, 0)
|
||||||
|
|
||||||
/* Device enabled. */
|
/* Device enabled. */
|
||||||
Name (EN, 0)
|
Name (EN, 0)
|
||||||
|
|
||||||
Method (_STA, 0, NotSerialized)
|
Method (_STA, 0, NotSerialized)
|
||||||
{
|
{
|
||||||
Return (0x0F)
|
Return (0x0F)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Retrieve event. */
|
/* Retrieve event. */
|
||||||
Method (MHKP, 0, NotSerialized)
|
Method (MHKP, 0, NotSerialized)
|
||||||
{
|
{
|
||||||
|
@ -317,6 +326,7 @@ Device(EC)
|
||||||
}
|
}
|
||||||
Return (Zero)
|
Return (Zero)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Report event */
|
/* Report event */
|
||||||
Method (RHK, 1, NotSerialized) {
|
Method (RHK, 1, NotSerialized) {
|
||||||
ShiftLeft (One, Subtract (Arg0, 1), Local0)
|
ShiftLeft (One, Subtract (Arg0, 1), Local0)
|
||||||
|
@ -325,6 +335,7 @@ Device(EC)
|
||||||
Notify (HKEY, 0x80)
|
Notify (HKEY, 0x80)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Report tablet */
|
/* Report tablet */
|
||||||
Method (RTAB, 1, NotSerialized) {
|
Method (RTAB, 1, NotSerialized) {
|
||||||
ShiftLeft (One, Subtract (Arg0, 1), Local0)
|
ShiftLeft (One, Subtract (Arg0, 1), Local0)
|
||||||
|
@ -333,6 +344,7 @@ Device(EC)
|
||||||
Notify (HKEY, 0x80)
|
Notify (HKEY, 0x80)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Enable/disable all events. */
|
/* Enable/disable all events. */
|
||||||
Method (MHKC, 1, NotSerialized) {
|
Method (MHKC, 1, NotSerialized) {
|
||||||
If (Arg0) {
|
If (Arg0) {
|
||||||
|
@ -346,6 +358,7 @@ Device(EC)
|
||||||
}
|
}
|
||||||
Store (Arg0, EN)
|
Store (Arg0, EN)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Enable/disable event. */
|
/* Enable/disable event. */
|
||||||
Method (MHKM, 2, NotSerialized) {
|
Method (MHKM, 2, NotSerialized) {
|
||||||
If (LLessEqual (Arg0, 0x20)) {
|
If (LLessEqual (Arg0, 0x20)) {
|
||||||
|
@ -364,21 +377,25 @@ Device(EC)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Mask hotkey all. */
|
/* Mask hotkey all. */
|
||||||
Method (MHKA, 0, NotSerialized)
|
Method (MHKA, 0, NotSerialized)
|
||||||
{
|
{
|
||||||
Return (0x07FFFFFF)
|
Return (0x07FFFFFF)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Report tablet mode switch state */
|
/* Report tablet mode switch state */
|
||||||
Method (MHKG, 0, NotSerialized)
|
Method (MHKG, 0, NotSerialized)
|
||||||
{
|
{
|
||||||
Return (ShiftLeft(TBSW, 3))
|
Return (ShiftLeft(TBSW, 3))
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Mute audio */
|
/* Mute audio */
|
||||||
Method (SSMS, 1, NotSerialized)
|
Method (SSMS, 1, NotSerialized)
|
||||||
{
|
{
|
||||||
Store(Arg0, ALMT)
|
Store(Arg0, ALMT)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Control mute microphone LED */
|
/* Control mute microphone LED */
|
||||||
Method (MMTS, 1, NotSerialized)
|
Method (MMTS, 1, NotSerialized)
|
||||||
{
|
{
|
||||||
|
@ -391,11 +408,18 @@ Device(EC)
|
||||||
TLED(0x0E)
|
TLED(0x0E)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Version */
|
/* Version */
|
||||||
Method (MHKV, 0, NotSerialized)
|
Method (MHKV, 0, NotSerialized)
|
||||||
{
|
{
|
||||||
Return (0x0100)
|
Return (0x0100)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Master wireless switch state */
|
||||||
|
Method (WLSW, 0, NotSerialized)
|
||||||
|
{
|
||||||
|
Return (\_SB.PCI0.LPCB.EC.GSTS)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "ac.asl"
|
#include "ac.asl"
|
||||||
|
|
Loading…
Reference in New Issue