mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
UPSTREAM: ec/lenovo/h8: Add tablet mode switch method
thinkpad_acpi expects a MHKG method which returns the current
state of the tablet mode switch shifted left by 3. If such
method is not found, subsequent laptop/tablet mode events are
ignored.
Tested on a X220T.
BUG=none
BRANCH=none
TEST=none
Change-Id: I0f07edd24cb8edef45ae62df7edc06fcc1aeb68c
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 47f87bd93f
Original-Change-Id: Ic9ffea2ffe507b3692d1dd7411c52b813ec32146
Original-Signed-off-by: Nicola Corna <nicola@corna.info>
Original-Reviewed-on: https://review.coreboot.org/18328
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Alexander Couzens <lynxis@fe80.eu>
Reviewed-on: https://chromium-review.googlesource.com/449816
This commit is contained in:
parent
66a199125c
commit
34a248384e
1 changed files with 8 additions and 0 deletions
|
@ -32,6 +32,9 @@ Device(EC)
|
||||||
HSPA, 1,
|
HSPA, 1,
|
||||||
Offset (0x0C),
|
Offset (0x0C),
|
||||||
LEDS, 8, /* LED state */
|
LEDS, 8, /* LED state */
|
||||||
|
Offset (0x0F),
|
||||||
|
, 7,
|
||||||
|
TBSW, 1, /* Tablet mode switch */
|
||||||
Offset (0x1a),
|
Offset (0x1a),
|
||||||
DKR2, 1, /* Dock register 2 */
|
DKR2, 1, /* Dock register 2 */
|
||||||
Offset (0x2a),
|
Offset (0x2a),
|
||||||
|
@ -354,6 +357,11 @@ Device(EC)
|
||||||
{
|
{
|
||||||
Return (0x07FFFFFF)
|
Return (0x07FFFFFF)
|
||||||
}
|
}
|
||||||
|
/* Report tablet mode switch state */
|
||||||
|
Method (MHKG, 0, NotSerialized)
|
||||||
|
{
|
||||||
|
Return (TBSW << 3)
|
||||||
|
}
|
||||||
/* Version */
|
/* Version */
|
||||||
Method (MHKV, 0, NotSerialized)
|
Method (MHKV, 0, NotSerialized)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue