summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorpchandri <preetham.chandrian@intel.com>2015-08-24 13:44:19 -0700
committerPatrick Georgi <pgeorgi@google.com>2015-08-29 07:34:05 +0000
commitdfdd33eb53fd5abf90c8bbd2c66c2a187bd6a426 (patch)
tree773bb7c91edd7bb8e8121c60960e2f77eafe2480 /src/mainboard
parent3b169252ea7c8f16a955890964b30eae19547dd6 (diff)
downloadcoreboot-dfdd33eb53fd5abf90c8bbd2c66c2a187bd6a426.tar.xz
intel/kunimitsu: Adding mainboard init to enable SCI event
BUG=chrome-os-partner:44470 BRANCH=None TEST=Builds and Boots on FAB3 (Kunimitsu) Change-Id: I479fe60dcbdd51f4fa5bca857b4a166f958a54d5 Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Original-Commit-Id: e88efdd8766e2846a650eb75709b29035c406bf8 Original-Change-Id: I9fe5697d31e188fca48b14fb76e71631f2974c2d Original-Signed-off-by: pchandri <preetham.chandrian@intel.com> Original-Reviewed-on: https://chromium-review.googlesource.com/295218 Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/11433 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/intel/kunimitsu/mainboard.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/mainboard/intel/kunimitsu/mainboard.c b/src/mainboard/intel/kunimitsu/mainboard.c
index 5c5bd69c85..40becdc5fb 100644
--- a/src/mainboard/intel/kunimitsu/mainboard.c
+++ b/src/mainboard/intel/kunimitsu/mainboard.c
@@ -20,6 +20,23 @@
*/
#include <device/device.h>
+#include <stdlib.h>
+#include "ec.h"
+
+static void mainboard_init(device_t dev)
+{
+ mainboard_ec_init();
+}
+
+/*
+ * mainboard_enable is executed as first thing after
+ * enumerate_buses().
+ */
+static void mainboard_enable(device_t dev)
+{
+ dev->ops->init = mainboard_init;
+}
struct chip_operations mainboard_ops = {
+ .enable_dev = mainboard_enable,
};