diff options
Diffstat (limited to 'src/ec/google/wilco/commands.c')
-rw-r--r-- | src/ec/google/wilco/commands.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ec/google/wilco/commands.c b/src/ec/google/wilco/commands.c index 1c7646106c..da04e2759b 100644 --- a/src/ec/google/wilco/commands.c +++ b/src/ec/google/wilco/commands.c @@ -14,6 +14,7 @@ */ #include <console/console.h> +#include <ec/acpi/ec.h> #include <stdint.h> #include <string.h> @@ -167,3 +168,10 @@ int wilco_ec_change_wake(uint8_t source, enum ec_wake_change change) wake_source, ARRAY_SIZE(wake_source), NULL, 0); } + +int wilco_ec_signed_fw(void) +{ + ec_set_ports(CONFIG_EC_BASE_ACPI_COMMAND, + CONFIG_EC_BASE_ACPI_DATA); + return !!ec_read(EC_RAM_SIGNED_FW); +} |