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>
This commit is contained in:
parent
d4e19bfaba
commit
f6d46f3bac
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue