diff options
author | Alexandru Gagniuc <mr.nuke.me@gmail.com> | 2014-04-09 21:07:43 -0500 |
---|---|---|
committer | Alexandru Gagniuc <mr.nuke.me@gmail.com> | 2014-04-19 03:49:48 +0200 |
commit | fa840676f5f3bd92b63c352f0c8bf6f14bc2c314 (patch) | |
tree | ba323c7f7691cf5cab2df5b1110711e46ceba652 /src/mainboard/google/parrot/acpi | |
parent | 91b6d3a6b9430c94989d37982a56ead948419e78 (diff) |
ec/compal/ene932: Update to use coreboot EC-mainboard API
This patch implements a simple interface between the EC and mainboard
ASL code. This interface does not rely on the preprocessor, and
prevents name conflicts by scoping the interface methods. As this
interface is documented on the coreboot wiki, an in-tree documentation
is not provided.
Change-Id: If0b09be4f5e17cc444539a30f0186590fa0b72b5
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-on: http://review.coreboot.org/5515
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@gmail.com>
Diffstat (limited to 'src/mainboard/google/parrot/acpi')
-rw-r--r-- | src/mainboard/google/parrot/acpi/ec.asl | 5 | ||||
-rw-r--r-- | src/mainboard/google/parrot/acpi/mainboard.asl | 20 |
2 files changed, 21 insertions, 4 deletions
diff --git a/src/mainboard/google/parrot/acpi/ec.asl b/src/mainboard/google/parrot/acpi/ec.asl index a0ee9d5343..ae0090fb5e 100644 --- a/src/mainboard/google/parrot/acpi/ec.asl +++ b/src/mainboard/google/parrot/acpi/ec.asl @@ -19,10 +19,7 @@ /* mainboard configuration */ #include "../ec.h" -#define EC_SCI 23 // GPIO7 << 16 to GPE bit for Runtime SCI - -/* GP15 is defined in the southbridge's ASL */ -#define EC_ACPI_LID_SWITCH_OBJECT GP15 +#define EC_SCI_GPE 23 // GPIO7 << 16 to GPE bit for Runtime SCI /* ACPI code for EC functions */ #include "../../../../ec/compal/ene932/acpi/ec.asl" diff --git a/src/mainboard/google/parrot/acpi/mainboard.asl b/src/mainboard/google/parrot/acpi/mainboard.asl index 7b9aef0e91..4ab97330b1 100644 --- a/src/mainboard/google/parrot/acpi/mainboard.asl +++ b/src/mainboard/google/parrot/acpi/mainboard.asl @@ -68,4 +68,24 @@ Scope (\_SB) { }) } + Device (MB) { + /* Lid open */ + Method (LIDO) { /* Not needed on this board */ } + /* Lid closed */ + Method (LIDC) { /* Not needed on this board */ } + /* Increase brightness */ + Method (BRTU) { /* Not needed on this board */ } + /* Decrease brightness */ + Method (BRTD) { /* Not needed on this board */ } + /* Switch display */ + Method (DSPS) { /* Not needed on this board */ } + /* Toggle wireless */ + Method (WLTG) { /* Not needed on this board */ } + /* Return lid state */ + Method (LIDS) + { + Return (GP15) + } + } + } |