diff options
author | Julius Werner <jwerner@chromium.org> | 2021-08-17 14:12:41 -0700 |
---|---|---|
committer | Julius Werner <jwerner@chromium.org> | 2021-08-19 01:05:34 +0000 |
commit | d3e645632a3257eff77b2cb0c053f2b2cecb944a (patch) | |
tree | 6283e00558539a8edcfcff9ac2b2a0bf9acb8b99 /src/mainboard/google/trogdor | |
parent | 5f80e7c764b9a1cb46beeaa490a4f60be04abcd4 (diff) |
google/trogdor: Read SKU ID as binary-first base3 strapping
We're running out of SKU IDs in the base2 system, so convert it to
binary-first base3.
Signed-off-by: Julius Werner <jwerner@chromium.org>
Change-Id: Ia7f749fa042d3eac76bfe1e74531905c6e279ad2
Reviewed-on: https://review.coreboot.org/c/coreboot/+/57004
Reviewed-by: Shelley Chen <shchen@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/trogdor')
-rw-r--r-- | src/mainboard/google/trogdor/boardid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainboard/google/trogdor/boardid.c b/src/mainboard/google/trogdor/boardid.c index ddb240a5f9..c972160fd4 100644 --- a/src/mainboard/google/trogdor/boardid.c +++ b/src/mainboard/google/trogdor/boardid.c @@ -51,9 +51,9 @@ uint32_t sku_id(void) if (id == UNDEFINED_STRAPPING_ID) { if (use_old_pins()) - id = gpio_base2_value(old_pins, ARRAY_SIZE(old_pins)); + id = gpio_binary_first_base3_value(old_pins, ARRAY_SIZE(old_pins)); else - id = gpio_base2_value(pins, ARRAY_SIZE(pins)); + id = gpio_binary_first_base3_value(pins, ARRAY_SIZE(pins)); } return id; |