diff options
Diffstat (limited to 'src/mainboard/google/link/chromeos.c')
-rw-r--r-- | src/mainboard/google/link/chromeos.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mainboard/google/link/chromeos.c b/src/mainboard/google/link/chromeos.c index f77c822f6c..f5441677db 100644 --- a/src/mainboard/google/link/chromeos.c +++ b/src/mainboard/google/link/chromeos.c @@ -8,6 +8,8 @@ #include <vendorcode/google/chromeos/chromeos.h> #include "onboard.h" +#define GPIO_EC_IN_RW 21 + void fill_lb_gpios(struct lb_gpios *gpios) { struct lb_gpio chromeos_gpios[] = { @@ -39,3 +41,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 !get_gpio(GPIO_EC_IN_RW); +} |