summaryrefslogtreecommitdiff
path: root/src/mainboard/google/rambi/mainboard.c
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2013-10-28 11:24:53 -0500
committerAaron Durbin <adurbin@google.com>2014-02-24 18:43:43 +0100
commit063c87358880ac911764b5a8fe4cdf09003278e1 (patch)
tree6254b742544ec282a0e432891736d47a1d43ba97 /src/mainboard/google/rambi/mainboard.c
parent3e0eea1f93655c43f84c6223ed1ae843666c7863 (diff)
downloadcoreboot-063c87358880ac911764b5a8fe4cdf09003278e1.tar.xz
rambi: add chromeos EC support
As rambi has the ChromeOS EC on it the EC needs to be configured properly. Do this along with updating the ChromeOS support for passing on write protect state, recovery mode and developer mode. BUG=chrome-os-partner:23387 BRANCH=None TEST=Built and booted to depthcharge. EC software sync appears to work correctly. Additionaly, 'mainboard_ec_init' appears in the console output. Change-Id: I40c5c9410b4acaba662c2b18b261dd4514a7410a Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/174714 Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: http://review.coreboot.org/4905 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/mainboard/google/rambi/mainboard.c')
-rw-r--r--src/mainboard/google/rambi/mainboard.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mainboard/google/rambi/mainboard.c b/src/mainboard/google/rambi/mainboard.c
index d2bfea3e66..8c5b66608b 100644
--- a/src/mainboard/google/rambi/mainboard.c
+++ b/src/mainboard/google/rambi/mainboard.c
@@ -33,6 +33,7 @@
#include <arch/io.h>
#include <arch/interrupt.h>
#include <boot/coreboot_tables.h>
+#include "ec.h"
void mainboard_suspend_resume(void)
{
@@ -126,11 +127,17 @@ static int int15_handler(void)
}
#endif
+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;
#if CONFIG_VGA_ROM_RUN
/* Install custom int15 handler for VGA OPROM */
mainboard_interrupt_handlers(0x15, &int15_handler);