summaryrefslogtreecommitdiff
path: root/src/mainboard/intel/amenia/chromeos.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/intel/amenia/chromeos.c')
-rw-r--r--src/mainboard/intel/amenia/chromeos.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mainboard/intel/amenia/chromeos.c b/src/mainboard/intel/amenia/chromeos.c
index b6669bf0e0..4cfc2a62a9 100644
--- a/src/mainboard/intel/amenia/chromeos.c
+++ b/src/mainboard/intel/amenia/chromeos.c
@@ -18,6 +18,7 @@
#include "ec.h"
#include <ec/google/chromeec/ec.h>
+#include <soc/gpio_defs.h>
#include <vendorcode/google/chromeos/chromeos.h>
int get_lid_switch(void)
@@ -48,3 +49,13 @@ int get_write_protect_state(void)
{
return 0;
}
+
+static const struct cros_gpio cros_gpios[] = {
+ CROS_GPIO_REC_AL(CROS_GPIO_VIRTUAL, GPIO_COMM_NW_NAME),
+ CROS_GPIO_WP_AH(PAD_NW(GPIO_75), GPIO_COMM_NW_NAME),
+};
+
+void mainboard_chromeos_acpi_generate(void)
+{
+ chromeos_acpi_gpio_generate(cros_gpios, ARRAY_SIZE(cros_gpios));
+}