summaryrefslogtreecommitdiff
path: root/src/mainboard/google/daisy/chromeos.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/daisy/chromeos.c')
-rw-r--r--src/mainboard/google/daisy/chromeos.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainboard/google/daisy/chromeos.c b/src/mainboard/google/daisy/chromeos.c
index 7599295f1f..9cb57f869e 100644
--- a/src/mainboard/google/daisy/chromeos.c
+++ b/src/mainboard/google/daisy/chromeos.c
@@ -37,3 +37,9 @@ int get_write_protect_state(void)
{
return !gpio_get_value(GPIO_D16);
}
+
+int get_ec_is_trusted(void)
+{
+ /* EC is trusted if not in RW. */
+ return !gpio_get_value(GPIO_D17);
+}