summaryrefslogtreecommitdiff
path: root/src/mainboard/google/dedede/smihandler.c
diff options
context:
space:
mode:
authorKarthikeyan Ramasubramanian <kramasub@google.com>2020-01-07 16:21:10 -0700
committerFurquan Shaikh <furquan@google.com>2020-01-27 04:48:12 +0000
commit501e3c1837ba527ba8e49753688ca73af022df51 (patch)
treee0014e9919aebb33f8b5f635142274ec36b6e89c /src/mainboard/google/dedede/smihandler.c
parentb7b11475c16b658698d1adcc9dbc0d969eddb9bd (diff)
mb/google/dedede: Enable EC
Perform EC initialization in bootblock and ramstages. Add associated ACPI configuration. BUG=b:144768001 TEST=Build Test. Change-Id: Ib31ae190818c8870bdd46ea6c3d9ca70dc0485cc Signed-off-by: Karthikeyan Ramasubramanian <kramasub@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/38282 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/mainboard/google/dedede/smihandler.c')
-rw-r--r--src/mainboard/google/dedede/smihandler.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mainboard/google/dedede/smihandler.c b/src/mainboard/google/dedede/smihandler.c
index 780d33f6de..2c2230f4e4 100644
--- a/src/mainboard/google/dedede/smihandler.c
+++ b/src/mainboard/google/dedede/smihandler.c
@@ -8,10 +8,13 @@
#include <baseboard/variants.h>
#include <cpu/x86/smm.h>
+#include <ec/google/chromeec/smm.h>
#include <intelblocks/smihandler.h>
+#include <variant/ec.h>
void mainboard_smi_gpi_handler(const struct gpi_status *sts)
{
+ /* TODO: Process SMI events from GPI */
}
void mainboard_smi_sleep(u8 slp_typ)
@@ -21,9 +24,14 @@ void mainboard_smi_sleep(u8 slp_typ)
pads = variant_sleep_gpio_table(&num);
gpio_configure_pads(pads, num);
+
+ chromeec_smi_sleep(slp_typ, MAINBOARD_EC_S3_WAKE_EVENTS,
+ MAINBOARD_EC_S5_WAKE_EVENTS);
}
int mainboard_smi_apmc(u8 apmc)
{
+ chromeec_smi_apmc(apmc, MAINBOARD_EC_SCI_EVENTS,
+ MAINBOARD_EC_SMI_EVENTS);
return 0;
}