summaryrefslogtreecommitdiff
path: root/src/mainboard/google/kukui/chromeos.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/kukui/chromeos.c')
-rw-r--r--src/mainboard/google/kukui/chromeos.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainboard/google/kukui/chromeos.c b/src/mainboard/google/kukui/chromeos.c
index 3f15a3fb91..4c4a8bec03 100644
--- a/src/mainboard/google/kukui/chromeos.c
+++ b/src/mainboard/google/kukui/chromeos.c
@@ -37,3 +37,9 @@ int tis_plat_irq_status(void)
{
return gpio_eint_poll(CR50_IRQ);
}
+
+int get_ec_is_trusted(void)
+{
+ /* EC is trusted if not in RW. */
+ return !gpio_get(EC_IN_RW);
+}