diff options
author | Sheng-Liang Pan <sheng-liang.pan@quanta.corp-partner.google.com> | 2021-06-16 16:12:31 +0800 |
---|---|---|
committer | Julius Werner <jwerner@chromium.org> | 2021-06-18 00:58:20 +0000 |
commit | f6d46f3bac00e0f67091de012c8edb8dc41d0a8e (patch) | |
tree | 5d4e8332b825af03a9afd03cc16b6479d34c025c /src/mainboard/google/trogdor | |
parent | d4e19bfaba47bfcdc7b0a3ab8b9989bb07f81a20 (diff) |
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 <sheng-liang.pan@quanta.corp-partner.google.com>
Change-Id: I79d1212abc227341be126969ef32e76a635cbdaf
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55563
Reviewed-by: Julius Werner <jwerner@chromium.org>
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 | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |