summaryrefslogtreecommitdiff
path: root/src/mainboard/intel/shadowmountain/chromeos.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/intel/shadowmountain/chromeos.c')
-rw-r--r--src/mainboard/intel/shadowmountain/chromeos.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainboard/intel/shadowmountain/chromeos.c b/src/mainboard/intel/shadowmountain/chromeos.c
index e71314ffe0..0858754436 100644
--- a/src/mainboard/intel/shadowmountain/chromeos.c
+++ b/src/mainboard/intel/shadowmountain/chromeos.c
@@ -34,3 +34,9 @@ void mainboard_chromeos_acpi_generate(void)
gpios = variant_cros_gpios(&num);
chromeos_acpi_gpio_generate(gpios, num);
}
+
+int get_ec_is_trusted(void)
+{
+ /* EC is trusted if not in RW. */
+ return !gpio_get(GPIO_EC_IN_RW);
+}