From 6985c90ff44edc07224bf1b71df7f7630f700e25 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Sat, 6 Oct 2018 12:03:23 -0700 Subject: mb/google/poppy: Allow variants to provide event info at runtime This change adds a variant callback to read google_chromeec_event_info from variant at runtime to allow override of any events based on factors like board id. This callback is used in ramstage and smm to get google_chromeec_event_info structure for performing various actions like setting masks and logging wake events from EC. BUG=b:112366846,b:112112483,b:112111610 Change-Id: If89e904c92372530a0f555952f87702f068e0b03 Signed-off-by: Furquan Shaikh Reviewed-on: https://review.coreboot.org/28983 Tested-by: build bot (Jenkins) Reviewed-by: Enrico Granata Reviewed-by: Aaron Durbin --- .../google/poppy/variants/baseboard/include/baseboard/variants.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/mainboard/google/poppy/variants') diff --git a/src/mainboard/google/poppy/variants/baseboard/include/baseboard/variants.h b/src/mainboard/google/poppy/variants/baseboard/include/baseboard/variants.h index 3c589713f3..31370aed2b 100644 --- a/src/mainboard/google/poppy/variants/baseboard/include/baseboard/variants.h +++ b/src/mainboard/google/poppy/variants/baseboard/include/baseboard/variants.h @@ -73,4 +73,11 @@ void variant_nhlt_init(struct nhlt *nhlt); void variant_nhlt_oem_overrides(const char **oem_id, const char **oem_table_id, uint32_t *oem_revision); +struct google_chromeec_event_info; +/* + * Read google_chromeec_event_info structure from variant to set different masks + * on the EC e.g. SCI, S3, S5, S0ix, SMI. + */ +const struct google_chromeec_event_info *variant_get_event_info(void); + #endif /* __BASEBOARD_VARIANTS_H__ */ -- cgit v1.2.3