summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@gmail.com>2023-05-10 18:02:39 -0500
committerFelix Held <felix-coreboot@felixheld.de>2023-05-17 11:22:09 +0000
commit90f9d1c4098aa04a1852ef93b588d03ef404b4a5 (patch)
treee881ee53ed844611bd6e2884cee0b951537e374d /src
parent1be9f3502c26c07a8da3c77cd8e172b4c87705fc (diff)
ec/google/chromeec/ACPI: Set TBMC status based on motion sensor presence
Use ECRAM field MTNS to determine if motion sensor present, and set TBMC device status accordingly. TEST=build/boot google/{jinlon,drobit}, verify ACPI status for TMBC correct for both devices with and without tablet mode. Change-Id: Ic06ab6d721f0a3435e6dfd7b5e130f378096afec Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/75172 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: CoolStar <coolstarorganization@gmail.com> Reviewed-by: Subrata Banik <subratabanik@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/ec/google/chromeec/acpi/tbmc.asl6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ec/google/chromeec/acpi/tbmc.asl b/src/ec/google/chromeec/acpi/tbmc.asl
index 1661296da6..3ecf78ef5b 100644
--- a/src/ec/google/chromeec/acpi/tbmc.asl
+++ b/src/ec/google/chromeec/acpi/tbmc.asl
@@ -15,6 +15,10 @@ Device (TBMC)
}
Method(_STA, 0)
{
- Return (0xB)
+ If (^^MTNS == 1) {
+ Return (0xF)
+ } Else {
+ Return (0x0)
+ }
}
}