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>
This commit is contained in:
Julius Werner
2021-08-17 14:12:41 -07:00
parent 5f80e7c764
commit d3e645632a

View File

@@ -51,9 +51,9 @@ uint32_t sku_id(void)
if (id == UNDEFINED_STRAPPING_ID) { if (id == UNDEFINED_STRAPPING_ID) {
if (use_old_pins()) 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 else
id = gpio_base2_value(pins, ARRAY_SIZE(pins)); id = gpio_binary_first_base3_value(pins, ARRAY_SIZE(pins));
} }
return id; return id;