aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/google/sarien/sku.c
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@google.com>2019-03-20 12:54:18 -0700
committerDuncan Laurie <dlaurie@chromium.org>2019-03-21 03:43:06 +0000
commit774d41495e6b489e1a33f92e8749f1e9833b691c (patch)
treed8aabd6f537e19fede47e68d260634124abd2c44 /src/mainboard/google/sarien/sku.c
parent32346f0aa29eac2c91859e99dcefb401d3365784 (diff)
mb/google/sarien: Add SKU for boards with signed EC
To support both boards with the same firmware add a SKU for each variant that is used to include the proper EC firmware image to match what the EC is expecting. BUG=b:119490232 TEST=tested by faking the EC response to ensure that the OS and firmware update tools are able to determine the correct model based on the value returned by the EC. Change-Id: Iaa677975e0bccbee5ec8a39821fe1637f08270fa Signed-off-by: Duncan Laurie <dlaurie@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/32002 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/mainboard/google/sarien/sku.c')
-rw-r--r--src/mainboard/google/sarien/sku.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/mainboard/google/sarien/sku.c b/src/mainboard/google/sarien/sku.c
index 708793db9e..d0b48f0572 100644
--- a/src/mainboard/google/sarien/sku.c
+++ b/src/mainboard/google/sarien/sku.c
@@ -14,15 +14,22 @@
*/
#include <boardid.h>
+#include <ec/google/wilco/commands.h>
#include <smbios.h>
#include <variant/variant.h>
uint32_t sku_id(void)
{
- return VARIANT_SKU_ID;
+ if (wilco_ec_signed_fw())
+ return VARIANT_SKU_ID_SIGNED_EC;
+ else
+ return VARIANT_SKU_ID;
}
const char *smbios_system_sku(void)
{
- return VARIANT_SKU_NAME;
+ if (wilco_ec_signed_fw())
+ return VARIANT_SKU_NAME_SIGNED_EC;
+ else
+ return VARIANT_SKU_NAME;
}