google/reef: Add mainboard SMI handler
commit9a6ebda9b4927a914955ccb960f6f4f36eca3add
authorShaunak Saha <shaunak.saha@intel.com>
Tue, 12 Jul 2016 04:04:25 +0000 (11 21:04 -0700)
committerAaron Durbin <adurbin@chromium.org>
Thu, 14 Jul 2016 04:00:30 +0000 (14 06:00 +0200)
tree9ebd930d9a477a92e8f468bec826d808a232a9e3
parent141ce4111220c317b318bce4cc5e378185a576be
google/reef: Add mainboard SMI handler

This patch adds a mainboard SMI handler file which has
functions to set proper Wake mask before going to sleep
so that system can wake up on lidopen, key press etc.
Also SCI mask is set on boot which will enable timely update
of battery UI on charger connect/disconnect.

BUG = chrome-os-partner:53992
TEST = Reef Platform wakes from S3 on lidopen, key press and also
       sysfs entry for AC is updated on charger connect/disconnect.

Change-Id: I8c087994b48223b253dcf1cbb3ed3c3a0f366e36
Signed-off-by: Shaunak Saha <shaunak.saha@intel.com>
Reviewed-on: https://review.coreboot.org/15615
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
src/mainboard/google/reef/Makefile.inc
src/mainboard/google/reef/smihandler.c [new file with mode: 0644]