diff options
Diffstat (limited to 'src/mainboard/google/kahlee/boardid.c')
-rw-r--r-- | src/mainboard/google/kahlee/boardid.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/mainboard/google/kahlee/boardid.c b/src/mainboard/google/kahlee/boardid.c index f19b032526..5b59f329bd 100644 --- a/src/mainboard/google/kahlee/boardid.c +++ b/src/mainboard/google/kahlee/boardid.c @@ -16,19 +16,15 @@ #include <boardid.h> #include <console/console.h> #include <gpio.h> +#include <variant/gpio.h> +#include <baseboard/variants.h> uint8_t board_id(void) { MAYBE_STATIC int id = -1; - gpio_t gpios[] = { - GPIO_135, - GPIO_140, - GPIO_144, - }; - if (id < 0) { - id = gpio_base2_value(gpios, ARRAY_SIZE(gpios)); + id = variant_board_id(); printk(BIOS_SPEW, "Board ID: %#x.\n", id); } |