aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/google/guybrush/chromeos.c
diff options
context:
space:
mode:
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));
+}