From 32346f0aa29eac2c91859e99dcefb401d3365784 Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Wed, 20 Mar 2019 12:51:07 -0700 Subject: ec/google/wilco: Add function to indicate if EC uses signed FW This will be used to distinguish the mainboard SKU so that the correct EC firmware can be bundled with the board. This is read from EC RAM so it can be used by an ACPI method in the future. BUG=b:119490232 Change-Id: I71b8017fc4b88e793dfe709e1cb1ab0f0bcdc4fa Signed-off-by: Duncan Laurie Reviewed-on: https://review.coreboot.org/c/coreboot/+/32001 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh --- src/ec/google/wilco/commands.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/ec/google/wilco/commands.h') diff --git a/src/ec/google/wilco/commands.h b/src/ec/google/wilco/commands.h index 9c1685b293..42bb4f2edd 100644 --- a/src/ec/google/wilco/commands.h +++ b/src/ec/google/wilco/commands.h @@ -51,6 +51,8 @@ enum { }; enum ec_ram_addr { + /* Indicate if EC uses signed firmware */ + EC_RAM_SIGNED_FW = 0x5c, /* Indicate support for S0ix */ EC_RAM_S0IX_SUPPORT = 0xb8, }; @@ -285,4 +287,13 @@ enum ec_acpi_wake_events { EC_ACPI_WAKE_RTC = BIT(5), /* Wake up by RTC */ }; +/** + * wilco_ec_signed_fw + * + * Indicate if the EC uses signed firmware. + * + * Returns 1 if EC uses signed firmware, otherwise returns 0 + */ +int wilco_ec_signed_fw(void); + #endif /* EC_GOOGLE_WILCO_COMMANDS_H */ -- cgit v1.2.3