mb/google/skyrim: Enable eSPI SCI events
Enable ESPI SCI events BUG=b:214416630 TEST=builds Signed-off-by: Jon Murphy <jpmurphy@google.com> Change-Id: If47ba561f140eb474cad30e24b0a7c85cdd76203 Reviewed-on: https://review.coreboot.org/c/coreboot/+/62149 Reviewed-by: Karthik Ramasubramanian <kramasub@google.com> Reviewed-by: Raul Rangel <rrangel@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
2a7445a165
commit
e3e1801a33
|
@ -1,10 +1,22 @@
|
||||||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||||
|
|
||||||
#include <acpi/acpi.h>
|
#include <acpi/acpi.h>
|
||||||
|
#include <amdblocks/gpio.h>
|
||||||
|
#include <amdblocks/smi.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <ec/google/chromeec/ec.h>
|
#include <ec/google/chromeec/ec.h>
|
||||||
|
#include <soc/smi.h>
|
||||||
#include <variant/ec.h>
|
#include <variant/ec.h>
|
||||||
|
|
||||||
|
static const struct sci_source espi_sci_sources[] = {
|
||||||
|
{
|
||||||
|
.scimap = SMITYPE_ESPI_SYS,
|
||||||
|
.gpe = GEVENT_3,
|
||||||
|
.direction = SMI_SCI_LVL_HIGH, /* enum smi_sci_lvl */
|
||||||
|
.level = SMI_SCI_EDG, /* enum smi_sci_dir */
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
void mainboard_ec_init(void)
|
void mainboard_ec_init(void)
|
||||||
{
|
{
|
||||||
const struct google_chromeec_event_info info = {
|
const struct google_chromeec_event_info info = {
|
||||||
|
@ -16,4 +28,7 @@ void mainboard_ec_init(void)
|
||||||
};
|
};
|
||||||
|
|
||||||
google_chromeec_events_init(&info, acpi_is_wakeup_s3());
|
google_chromeec_events_init(&info, acpi_is_wakeup_s3());
|
||||||
|
|
||||||
|
/* Configure eSPI SCI events */
|
||||||
|
gpe_configure_sci(espi_sci_sources, ARRAY_SIZE(espi_sci_sources));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue