From 063c87358880ac911764b5a8fe4cdf09003278e1 Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Mon, 28 Oct 2013 11:24:53 -0500 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/174714 Reviewed-by: Duncan Laurie Reviewed-on: http://review.coreboot.org/4905 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Ronald G. Minnich --- src/mainboard/google/rambi/mainboard.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/mainboard/google/rambi/mainboard.c') 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 #include #include +#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); -- cgit v1.2.3