diff options
author | Subrata Banik <subratabanik@google.com> | 2024-06-25 00:17:56 +0530 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2024-06-26 22:30:42 +0000 |
commit | 3aea34a9933f7884a2c08b9611f7b3ff9d791b1d (patch) | |
tree | 4de5afb69b07e9db7db5ef700a38d8fdded20ff2 /src/mainboard/google/fatcat/ec.c | |
parent | f3aaa0e1539c16a3a26a769110ec1aca458ab410 (diff) |
mb/google/fatcat: Add minimal code support for fatcat
This patch adds initial code block required to build google/fatcat
board with Intel Meteor Lake Silicon. Later after the initial board
power-on is successful, we shall switch to Panther Lake silicon to
build the google/fatcat reference design.
BUG=b:347669091
TEST=Able to build the google/fatcat and able to hit power-on reset
using Intel Meteor Lake SoC platform.
Change-Id: Iad78aec51b2f0f240991c9c35842764a60be988e
Signed-off-by: Subrata Banik <subratabanik@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/83197
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nick Vaccaro <nvaccaro@google.com>
Diffstat (limited to 'src/mainboard/google/fatcat/ec.c')
-rw-r--r-- | src/mainboard/google/fatcat/ec.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/mainboard/google/fatcat/ec.c b/src/mainboard/google/fatcat/ec.c new file mode 100644 index 0000000000..f828bc5547 --- /dev/null +++ b/src/mainboard/google/fatcat/ec.c @@ -0,0 +1,22 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#include <acpi/acpi.h> +#include <console/console.h> +#include <ec/ec.h> +#include <ec/google/chromeec/ec.h> +#include <variant/ec.h> + +void mainboard_ec_init(void) +{ + static const struct google_chromeec_event_info info = { + .log_events = MAINBOARD_EC_LOG_EVENTS, + .sci_events = MAINBOARD_EC_SCI_EVENTS, + .s3_wake_events = MAINBOARD_EC_S3_WAKE_EVENTS, + .s5_wake_events = MAINBOARD_EC_S5_WAKE_EVENTS, + .s0ix_wake_events = MAINBOARD_EC_S0IX_WAKE_EVENTS, + }; + + printk(BIOS_DEBUG, "mainboard: EC init\n"); + + google_chromeec_events_init(&info, acpi_is_wakeup_s3()); +} |