aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/myst/chromeos.c10
-rw-r--r--src/mainboard/google/myst/variants/baseboard/include/baseboard/gpio.h5
2 files changed, 15 insertions, 0 deletions
diff --git a/src/mainboard/google/myst/chromeos.c b/src/mainboard/google/myst/chromeos.c
new file mode 100644
index 0000000000..9f4a3cb05b
--- /dev/null
+++ b/src/mainboard/google/myst/chromeos.c
@@ -0,0 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#include <baseboard/gpio.h>
+#include <vendorcode/google/chromeos/chromeos.h>
+
+static const struct cros_gpio cros_gpios[] = {
+ CROS_GPIO_REC_AL(CROS_GPIO_VIRTUAL, GPIO_DEVICE_NAME),
+ CROS_GPIO_WP_AL(CROS_WP_GPIO, GPIO_DEVICE_NAME),
+};
+DECLARE_CROS_GPIOS(cros_gpios);
diff --git a/src/mainboard/google/myst/variants/baseboard/include/baseboard/gpio.h b/src/mainboard/google/myst/variants/baseboard/include/baseboard/gpio.h
index b94afac4bf..a6683fd286 100644
--- a/src/mainboard/google/myst/variants/baseboard/include/baseboard/gpio.h
+++ b/src/mainboard/google/myst/variants/baseboard/include/baseboard/gpio.h
@@ -3,4 +3,9 @@
#ifndef __BASEBOARD_GPIO_H__
#define __BASEBOARD_GPIO_H__
+#include <gpio.h>
+
+/* SPI Write protect */
+#define CROS_WP_GPIO GPIO_139
+
#endif /* __BASEBOARD_GPIO_H__ */