From 90f9d1c4098aa04a1852ef93b588d03ef404b4a5 Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Wed, 10 May 2023 18:02:39 -0500 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/75172 Tested-by: build bot (Jenkins) Reviewed-by: CoolStar Reviewed-by: Subrata Banik --- src/ec/google/chromeec/acpi/tbmc.asl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) + } } } -- cgit v1.2.3