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>
This commit is contained in:
Matt DeVillier 2023-05-10 18:02:39 -05:00 committed by Felix Held
parent 1be9f3502c
commit 90f9d1c409
1 changed files with 5 additions and 1 deletions

View File

@ -15,6 +15,10 @@ Device (TBMC)
}
Method(_STA, 0)
{
Return (0xB)
If (^^MTNS == 1) {
Return (0xF)
} Else {
Return (0x0)
}
}
}