From b09933a2eb9b0fbbfe35392dac98d415290867aa Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Fri, 2 Jun 2017 21:48:01 +0200 Subject: google/reef: Add coral A new variant copied from reef. Allow override of the SKU. Change-Id: Ibe160e75aa23623812f0fb9121d1d8226afc00d8 Signed-off-by: Patrick Georgi Reviewed-on: https://review.coreboot.org/20020 Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) --- src/mainboard/google/reef/mainboard.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/mainboard/google/reef/mainboard.c') diff --git a/src/mainboard/google/reef/mainboard.c b/src/mainboard/google/reef/mainboard.c index 702269c135..c6b199700e 100644 --- a/src/mainboard/google/reef/mainboard.c +++ b/src/mainboard/google/reef/mainboard.c @@ -50,7 +50,7 @@ static void mainboard_init(void *chip_info) * a pulldown. This way we can generate 9 different values with the * 2 pins. */ -static int board_sku(void) +uint8_t __attribute__((weak)) variant_board_sku(void) { static int board_sku_num = -1; gpio_t board_sku_gpios[] = { @@ -66,9 +66,9 @@ static int board_sku(void) const char *smbios_mainboard_sku(void) { - static char sku_str[5]; /* sku[0-8] */ + static char sku_str[7]; /* sku{0..255} */ - snprintf(sku_str, sizeof(sku_str), "sku%d", board_sku()); + snprintf(sku_str, sizeof(sku_str), "sku%d", variant_board_sku()); return sku_str; } @@ -79,7 +79,7 @@ void __attribute__((weak)) variant_nhlt_oem_overrides(const char **oem_id, { *oem_id = "reef"; *oem_table_id = CONFIG_VARIANT_DIR; - *oem_revision = board_sku(); + *oem_revision = variant_board_sku(); } static unsigned long mainboard_write_acpi_tables( -- cgit v1.2.3