1 /* SPDX-License-Identifier: GPL-2.0-only */
4 #include <ec/google/chromeec/ec.h>
7 void mainboard_ec_init(void)
9 const struct google_chromeec_event_info info
= {
10 .log_events
= MAINBOARD_EC_LOG_EVENTS
,
11 .sci_events
= MAINBOARD_EC_SCI_EVENTS
,
12 .s3_wake_events
= MAINBOARD_EC_S3_WAKE_EVENTS
,
13 .s3_device_events
= MAINBOARD_EC_S3_DEVICE_EVENTS
,
14 .s5_wake_events
= MAINBOARD_EC_S5_WAKE_EVENTS
,
17 google_chromeec_events_init(&info
, acpi_is_wakeup_s3());
19 /* Turn off keyboard backlight after turning on in romstage */
20 if (!acpi_is_wakeup_s3())
21 google_chromeec_kbbacklight(0);