summaryrefslogtreecommitdiff
path: root/src/mainboard/google/cyan
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/cyan')
-rw-r--r--src/mainboard/google/cyan/chromeos.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mainboard/google/cyan/chromeos.c b/src/mainboard/google/cyan/chromeos.c
index b88862ca59..4a48aeb78b 100644
--- a/src/mainboard/google/cyan/chromeos.c
+++ b/src/mainboard/google/cyan/chromeos.c
@@ -12,6 +12,8 @@
#define WP_GPIO GP_E_22
+#define EC_IN_RW_GPIO GP_SW_77
+
#define ACTIVE_LOW 0
#define ACTIVE_HIGH 1
@@ -62,3 +64,9 @@ void mainboard_chromeos_acpi_generate(void)
{
chromeos_acpi_gpio_generate(cros_gpios, ARRAY_SIZE(cros_gpios));
}
+
+int get_ec_is_trusted(void)
+{
+ /* EC is trusted if not in RW. */
+ return !gpio_get(EC_IN_RW_GPIO);
+}