ec/starlabs/merlin: Only include virtual button driver for detachables
Including the Virtual Button Driver made laptops report as a detachable in tablet mode. Adjust how it's included, so they report as laptops. Change-Id: Idc2076c400524744836e2f52124ccb8502622b04 Signed-off-by: Sean Rhodes <sean@starlabs.systems> Reviewed-on: https://review.coreboot.org/c/coreboot/+/86315 Reviewed-by: Matt DeVillier <matt.devillier@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
ceaed25bf1
commit
1ac3bee7d6
3 changed files with 6 additions and 2 deletions
|
|
@ -31,12 +31,10 @@ Device (VBTN)
|
|||
|
||||
Method (VGBS, 0)
|
||||
{
|
||||
#if CONFIG(SYSTEM_TYPE_DETACHABLE)
|
||||
If (!GRXS (GPP_F15))
|
||||
{
|
||||
Return (0x40)
|
||||
}
|
||||
#endif
|
||||
Return (0x00)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -117,7 +117,9 @@ Scope (\_SB.PCI0.LPCB)
|
|||
#include "events.asl"
|
||||
#endif
|
||||
#include "lid.asl"
|
||||
#if CONFIG(SYSTEM_TYPE_DETACHABLE)
|
||||
#include "dock.asl"
|
||||
#endif
|
||||
|
||||
Method (_REG, 2, NotSerialized)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -366,7 +366,11 @@ Device (HIDD) // HID Device
|
|||
//
|
||||
Case (0x08)
|
||||
{
|
||||
#if CONFIG(SYSTEM_TYPE_DETACHABLE)
|
||||
Return (\_SB.PCI0.LPCB.EC.VBTN.VGBS())
|
||||
#else
|
||||
Return (0x00)
|
||||
#endif
|
||||
}
|
||||
//
|
||||
// Function 9 H2BC. Button implemented state.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue