From f6d46f3bac00e0f67091de012c8edb8dc41d0a8e Mon Sep 17 00:00:00 2001 From: Sheng-Liang Pan Date: Wed, 16 Jun 2021 16:12:31 +0800 Subject: [PATCH] google/trogdor: change board ID detect to tristate solution. change binary board ID to tri-state mode. BUG=b:190250108 BRANCH=None TEST=emerge-trogdor coreboot Signed-off-by: Sheng-Liang Pan Change-Id: I79d1212abc227341be126969ef32e76a635cbdaf Reviewed-on: https://review.coreboot.org/c/coreboot/+/55563 Reviewed-by: Julius Werner Tested-by: build bot (Jenkins) --- src/mainboard/google/trogdor/boardid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mainboard/google/trogdor/boardid.c b/src/mainboard/google/trogdor/boardid.c index edde164746..ddb240a5f9 100644 --- a/src/mainboard/google/trogdor/boardid.c +++ b/src/mainboard/google/trogdor/boardid.c @@ -11,7 +11,7 @@ uint32_t board_id(void) const gpio_t pins[] = {[2] = GPIO(31), [1] = GPIO(93), [0] = GPIO(33)}; if (id == UNDEFINED_STRAPPING_ID) - id = gpio_base2_value(pins, ARRAY_SIZE(pins)); + id = gpio_binary_first_base3_value(pins, ARRAY_SIZE(pins)); return id; }