summaryrefslogtreecommitdiff
path: root/src/mainboard/google/nyan/chromeos.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/nyan/chromeos.c')
-rw-r--r--src/mainboard/google/nyan/chromeos.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainboard/google/nyan/chromeos.c b/src/mainboard/google/nyan/chromeos.c
index 7fe877bff0..9aaad2f191 100644
--- a/src/mainboard/google/nyan/chromeos.c
+++ b/src/mainboard/google/nyan/chromeos.c
@@ -19,3 +19,9 @@ int get_write_protect_state(void)
{
return !gpio_get(GPIO(R1));
}
+
+int get_ec_is_trusted(void)
+{
+ /* EC is trusted if not in RW. */
+ return !gpio_get(GPIO(U4));
+}