summaryrefslogtreecommitdiff
path: root/src/mainboard/google/guybrush/chromeos.c
diff options
context:
space:
mode:
authorMathew King <mathewk@chromium.org>2021-02-10 16:05:38 -0700
committerFelix Held <felix-coreboot@felixheld.de>2021-02-19 13:34:31 +0000
commit44948a7c5c96dec3c826484c87360d977aef939e (patch)
tree22f9bd10aa640c14854b6c5dea371a154688f1e2 /src/mainboard/google/guybrush/chromeos.c
parente09294f57a03a21ff89b571b0a606c358fc97188 (diff)
mb/google/guybrush: Enable CONFIG_CHROMEOS
BUG=b:175143925 TEST=builds Signed-off-by: Mathew King <mathewk@chromium.org> Change-Id: I8d038126b3e511bd16df2144652992c2d5b56c87 Reviewed-on: https://review.coreboot.org/c/coreboot/+/50507 Reviewed-by: EricR Lai <ericr_lai@compal.corp-partner.google.com> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com> Reviewed-by: Raul Rangel <rrangel@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/guybrush/chromeos.c')
-rw-r--r--src/mainboard/google/guybrush/chromeos.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mainboard/google/guybrush/chromeos.c b/src/mainboard/google/guybrush/chromeos.c
new file mode 100644
index 0000000000..776637ac2d
--- /dev/null
+++ b/src/mainboard/google/guybrush/chromeos.c
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#include <boot/coreboot_tables.h>
+#include <gpio.h>
+#include <vendorcode/google/chromeos/chromeos.h>
+
+void fill_lb_gpios(struct lb_gpios *gpios)
+{
+ struct lb_gpio chromeos_gpios[] = {
+ {-1, ACTIVE_HIGH, get_lid_switch(), "lid"},
+ {-1, ACTIVE_HIGH, 0, "power"},
+ };
+ lb_add_gpios(gpios, chromeos_gpios, ARRAY_SIZE(chromeos_gpios));
+}