summaryrefslogtreecommitdiff
path: root/src/mainboard/google/brya/mainboard.c
diff options
context:
space:
mode:
authorEric Lai <ericr_lai@compal.corp-partner.google.com>2020-11-27 14:11:59 +0800
committerTim Wawrzynczak <twawrzynczak@chromium.org>2020-12-04 21:09:56 +0000
commit78b6a1bbcdeaad4e0d6b9c055ec70453fd2483c9 (patch)
tree13de83ead9492b77bfd919e4ec59feb2e64c6269 /src/mainboard/google/brya/mainboard.c
parentb052c4b368313a5269494c776e395fb29bcdea76 (diff)
mb/google/brya: Enable EC
Perform EC initialization in bootblock and ramstages. Add associated ACPI configuration. BUG=b:174266035 TEST=Build Test Signed-off-by: Eric Lai <ericr_lai@compal.corp-partner.google.com> Change-Id: Ie1305706134ca7cc58b8a9941231d1ee14f80949 Reviewed-on: https://review.coreboot.org/c/coreboot/+/48114 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/mainboard/google/brya/mainboard.c')
-rw-r--r--src/mainboard/google/brya/mainboard.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mainboard/google/brya/mainboard.c b/src/mainboard/google/brya/mainboard.c
index fd0d5b651f..99a060df7f 100644
--- a/src/mainboard/google/brya/mainboard.c
+++ b/src/mainboard/google/brya/mainboard.c
@@ -3,6 +3,7 @@
#include <acpi/acpi.h>
#include <baseboard/variants.h>
#include <device/device.h>
+#include <ec/ec.h>
#include <vendorcode/google/chromeos/chromeos.h>
static void mainboard_init(void *chip_info)
@@ -13,8 +14,14 @@ static void mainboard_init(void *chip_info)
gpio_configure_pads(pads, num);
}
+static void mainboard_dev_init(struct device *dev)
+{
+ mainboard_ec_init();
+}
+
static void mainboard_enable(struct device *dev)
{
+ dev->ops->init = mainboard_dev_init;
dev->ops->acpi_inject_dsdt = chromeos_dsdt_generator;
}