diff options
author | Patrick Georgi <pgeorgi@google.com> | 2017-06-02 21:48:01 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2017-06-05 22:44:01 +0200 |
commit | b09933a2eb9b0fbbfe35392dac98d415290867aa (patch) | |
tree | 597b5993b4e5743dc67f9e2a1d1d86ca4856b095 /src/mainboard/google/reef/mainboard.c | |
parent | 34e10871f9f1004a0c007a26d2d77440997fafa1 (diff) |
google/reef: Add coral
A new variant copied from reef.
Allow override of the SKU.
Change-Id: Ibe160e75aa23623812f0fb9121d1d8226afc00d8
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://review.coreboot.org/20020
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/reef/mainboard.c')
-rw-r--r-- | src/mainboard/google/reef/mainboard.c | 8 |
1 files changed, 4 insertions, 4 deletions
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( |