ec/starlabs/merlin: Move common variants to respective files

Move the Q-Events used by the merlin EC to their respective
files, i.e. `Q0B` for Battery Status Update to battery.asl.

This means that only revelant events will be included.

Change-Id: Ib41fbafd79b999409a520361a4d372902d878794
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85945
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Sean Rhodes 2025-01-12 20:21:48 +00:00
commit 43ac56bf43
6 changed files with 36 additions and 27 deletions

View file

@ -1,5 +1,12 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#if CONFIG(EC_STARLABS_MERLIN)
Method (_Q0A, 0, NotSerialized) // Event: Charger Status Update
{
Notify (ADP1, 0x80)
}
#endif
Device (ADP1)
{
Name (_HID, "ACPI0003")

View file

@ -1,5 +1,12 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#if CONFIG(EC_STARLABS_MERLIN)
Method (_Q0B, 0, NotSerialized) // Event: Battery Information Update
{
Notify (BAT0, 0x80)
}
#endif
Device (BAT0)
{
Name (_HID, EisaId("PNP0C0A"))

View file

@ -135,7 +135,9 @@ Scope (\_SB.PCI0.LPCB)
#include "ac.asl"
#include "battery.asl"
#if !CONFIG(EC_STARLABS_MERLIN)
#include "events.asl"
#endif
#include "lid.asl"
#include "dock.asl"

View file

@ -1,5 +1,17 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#if CONFIG(EC_STARLABS_MERLIN)
Method (_Q05, 0, NotSerialized) // Event: Backlight Brightness Down
{
^HIDD.HPEM (20)
}
Method (_Q06, 0, NotSerialized) // Event: Backlight Brightness Up
{
^HIDD.HPEM (19)
}
#endif
Device (HIDD) // HID Device
{
Name (_HID, "INTC1051") // Intel Ultrabook HID Platform Event Driver.

View file

@ -1,5 +1,13 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#if CONFIG(EC_STARLABS_MERLIN)
Method (_Q0C, 0, NotSerialized) // Event: Lid Opened or Closed
{
\LIDS = ECRD(RefOf(LSTE))
Notify (LID0, 0x80)
}
#endif
Device (LID0)
{
Name (_HID, EisaId ("PNP0C0D"))

View file

@ -1,27 +0,0 @@
/* SPDX-License-Identifier: GPL-2.0-only */
Method (_Q05, 0, NotSerialized) // Event: Backlight Brightness Down
{
^^^^HIDD.HPEM (20)
}
Method (_Q06, 0, NotSerialized) // Event: Backlight Brightness Up
{
^^^^HIDD.HPEM (19)
}
Method (_Q0A, 0, NotSerialized) // Event: Charger Status Update
{
Notify (ADP1, 0x80)
}
Method (_Q0B, 0, NotSerialized) // Event: Battery Information Update
{
Notify (BAT0, 0x80)
}
Method (_Q0C, 0, NotSerialized) // Event: Lid Opened or Closed
{
\LIDS = ECRD(RefOf(LSTE))
Notify (LID0, 0x80)
}