summaryrefslogtreecommitdiff
path: root/src/mainboard/google/gale/boardid.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/gale/boardid.c')
-rw-r--r--src/mainboard/google/gale/boardid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mainboard/google/gale/boardid.c b/src/mainboard/google/gale/boardid.c
index 3e6fd8a185..c8d42a9fda 100644
--- a/src/mainboard/google/gale/boardid.c
+++ b/src/mainboard/google/gale/boardid.c
@@ -30,7 +30,8 @@ static uint8_t get_board_id(void)
uint8_t bid;
gpio_t hw_rev_gpios[] = {[2] = 66, [1] = 65, [0] = 64}; /* 64 is LSB */
- bid = gpio_base3_value(hw_rev_gpios, ARRAY_SIZE(hw_rev_gpios));
+ bid = gpio_binary_first_base3_value(hw_rev_gpios,
+ ARRAY_SIZE(hw_rev_gpios));
printk(BIOS_INFO, "Board ID %d\n", bid);
return bid;