mb/google/poppy: Allow variants to provide event info at runtime
commit6985c90ff44edc07224bf1b71df7f7630f700e25
authorFurquan Shaikh <furquan@google.com>
Sat, 6 Oct 2018 19:03:23 +0000 (6 12:03 -0700)
committerFurquan Shaikh <furquan@google.com>
Thu, 11 Oct 2018 23:58:18 +0000 (11 23:58 +0000)
tree48174bbb9142e880c2170f1346ac7f88c6854d67
parent8dcfcb31069e0ea6b4a7d0155caef48316d608eb
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 <furquan@google.com>
Reviewed-on: https://review.coreboot.org/28983
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Enrico Granata <egranata@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
src/mainboard/google/poppy/Makefile.inc
src/mainboard/google/poppy/ec.c
src/mainboard/google/poppy/smihandler.c
src/mainboard/google/poppy/variants/baseboard/include/baseboard/variants.h