summaryrefslogtreecommitdiff
path: root/src/ec/starlabs/merlin
diff options
context:
space:
mode:
authorSean Rhodes <sean@starlabs.systems>2022-03-10 21:11:15 +0000
committerFelix Held <felix-coreboot@felixheld.de>2022-03-21 16:57:54 +0000
commit629f8c5da11c99673307020d49bf815fe66dc07b (patch)
treea6a80c32f5bb8240e1b81c94ad5125ed18d2dac8 /src/ec/starlabs/merlin
parentfbb46c5438c34ec57882b7367ea98cc0000868c1 (diff)
ec/starlabs/merlin: Don't store EC values on change
Since CB:62741, the EC values are backed up to the CMOS when entering S3, S4 and S5. Consequently, they don't need to be stored when they're changed. Signed-off-by: Sean Rhodes <sean@starlabs.systems> Change-Id: If0ea392afae4a4d3c605cdea3c5896fbff606215 Reviewed-on: https://review.coreboot.org/c/coreboot/+/62742 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/ec/starlabs/merlin')
-rw-r--r--src/ec/starlabs/merlin/variants/apl/events.asl18
-rw-r--r--src/ec/starlabs/merlin/variants/cml/events.asl13
-rw-r--r--src/ec/starlabs/merlin/variants/glk/events.asl19
-rw-r--r--src/ec/starlabs/merlin/variants/kbl/events.asl19
-rw-r--r--src/ec/starlabs/merlin/variants/merlin/events.asl7
-rw-r--r--src/ec/starlabs/merlin/variants/tgl/events.asl9
6 files changed, 18 insertions, 67 deletions
diff --git a/src/ec/starlabs/merlin/variants/apl/events.asl b/src/ec/starlabs/merlin/variants/apl/events.asl
index e2c301bb43..57da4052ac 100644
--- a/src/ec/starlabs/merlin/variants/apl/events.asl
+++ b/src/ec/starlabs/merlin/variants/apl/events.asl
@@ -36,22 +36,8 @@ Method (_Q07, 0, NotSerialized) // Event: Backlight Brightness Up
Method (_Q08, 0, NotSerialized) // Event: Function Lock
{
- FLKC = FLKE
-}
-//
-// TODO:
-// Below Q Events need to be added
-//
-// Method (_Q04, 0, NotSerialized) // Event: Trackpad Lock
-// {
-// TPLC = TPLE
-// }
-//
-// Method (_Q__, 0, NotSerialized) // Event: Keyboard Backlight Brightness
-// {
-// KLBC = KLBE
-// }
-//
+ Printf ("EC: Function Lock")
+}
Method (_Q99, 0, NotSerialized) // Event: Airplane Mode
{
diff --git a/src/ec/starlabs/merlin/variants/cml/events.asl b/src/ec/starlabs/merlin/variants/cml/events.asl
index 2eedb8e6cc..00a2ca6c16 100644
--- a/src/ec/starlabs/merlin/variants/cml/events.asl
+++ b/src/ec/starlabs/merlin/variants/cml/events.asl
@@ -36,20 +36,17 @@ Method (_Q07, 0, NotSerialized) // Event: Backlight Brightness Up
Method (_Q08, 0, NotSerialized) // Event: Function Lock
{
- FLKC = FLKE
+ Printf ("EC: Function Lock")
}
Method (_Q04, 0, NotSerialized) // Event: Trackpad Lock
{
- TPLC = TPLE
+ Printf ("EC: Trackpad Lock")
}
-//
-// TODO:
-// Below Q Events need to be added
-//
-Method (_Q11) // Event: Keyboard Backlight Brightness
+
+Method (_Q11, 0, NotSerialized) // Event: Keyboard Backlight Brightness
{
- KLBC = KLBE
+ Printf ("EC: Keyboard Brightness")
}
Method (_Q99, 0, NotSerialized) // Event: Airplane Mode
diff --git a/src/ec/starlabs/merlin/variants/glk/events.asl b/src/ec/starlabs/merlin/variants/glk/events.asl
index e2c301bb43..2929421170 100644
--- a/src/ec/starlabs/merlin/variants/glk/events.asl
+++ b/src/ec/starlabs/merlin/variants/glk/events.asl
@@ -36,23 +36,8 @@ Method (_Q07, 0, NotSerialized) // Event: Backlight Brightness Up
Method (_Q08, 0, NotSerialized) // Event: Function Lock
{
- FLKC = FLKE
-}
-//
-// TODO:
-// Below Q Events need to be added
-//
-// Method (_Q04, 0, NotSerialized) // Event: Trackpad Lock
-// {
-// TPLC = TPLE
-// }
-//
-// Method (_Q__, 0, NotSerialized) // Event: Keyboard Backlight Brightness
-// {
-// KLBC = KLBE
-// }
-//
-
+ Printf ("EC: Function Lock")
+}
Method (_Q99, 0, NotSerialized) // Event: Airplane Mode
{
^^^^HIDD.HPEM (8)
diff --git a/src/ec/starlabs/merlin/variants/kbl/events.asl b/src/ec/starlabs/merlin/variants/kbl/events.asl
index 966365cbc6..df7399d548 100644
--- a/src/ec/starlabs/merlin/variants/kbl/events.asl
+++ b/src/ec/starlabs/merlin/variants/kbl/events.asl
@@ -34,25 +34,10 @@ Method (_Q07, 0, NotSerialized) // Event: Backlight Brightness Up
^^^^HIDD.HPEM (19)
}
-Method (_Q08, 0, NotSerialized) // Event: Function Lock
+Method (_Q08, 0, NotSerialized) // Event: Function Lock
{
- FLKC = FLKE
+ Printf ("EC: Function Lock")
}
-//
-// TODO:
-// Below Q Events need to be added
-//
-// Method (_Q04, 0, NotSerialized) // Event: Trackpad Lock
-// {
-// TPLC = TPLE
-// }
-//
-// Method (_Q__, 0, NotSerialized) // Event: Keyboard Backlight Brightness
-// {
-// KLBC = KLBE
-// KLSC = KLSE
-// }
-//
Method (_Q99, 0, NotSerialized) // Event: Airplane Mode
{
diff --git a/src/ec/starlabs/merlin/variants/merlin/events.asl b/src/ec/starlabs/merlin/variants/merlin/events.asl
index a7328561e3..9835ef13ba 100644
--- a/src/ec/starlabs/merlin/variants/merlin/events.asl
+++ b/src/ec/starlabs/merlin/variants/merlin/events.asl
@@ -36,17 +36,16 @@ Method (_Q06) // Event: Backlight Brightness Up
Method (_Q87) // Event: Function Lock
{
- FLKC = FLKE
+ Printf ("EC: Function Lock")
}
Method (_Q88) // Event: Trackpad Lock
{
- TPLC = TPLE
+ Printf ("EC: Trackpad Lock")
}
Method (_Q11) // Event: Keyboard Backlight Brightness
{
- KLBC = KLBE
- KLSC = KLSE
+ Printf ("EC: Keyboard Brightness")
}
Method (_Q99) // Event: Airplane Mode
diff --git a/src/ec/starlabs/merlin/variants/tgl/events.asl b/src/ec/starlabs/merlin/variants/tgl/events.asl
index 6963500d18..90cde395a2 100644
--- a/src/ec/starlabs/merlin/variants/tgl/events.asl
+++ b/src/ec/starlabs/merlin/variants/tgl/events.asl
@@ -36,17 +36,16 @@ Method (_Q06, 0, NotSerialized) // Event: Backlight Brightness Up
Method (_Q87, 0, NotSerialized) // Event: Function Lock
{
- FLKC = FLKE
+ Printf ("EC: Function Lock")
}
Method (_Q88, 0, NotSerialized) // Event: Trackpad Lock
{
- TPLC = TPLE
+ Printf ("EC: Trackpad Lock")
}
-Method (_Q4A) // Event: Keyboard Backlight Brightness
+Method (_Q4A, 0, NotSerialized) // Event: Keyboard Backlight Brightness
{
- KLSC = KLSE
- KLBC = KLBE
+ Printf ("EC: Keyboard Brightness")
}
Method (_Q99, 0, NotSerialized) // Event: Airplane Mode