drivers/mipi: Add support for KD_KD110N11_51IE panel
[coreboot2.git] / src / mainboard / google / nyan_big / boardid.c
blobfe0bc2b3742ea3edcbeb09fde77f2351d792db80
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <boardid.h>
4 #include <console/console.h>
5 #include <gpio.h>
7 uint32_t board_id(void)
9 static int id = -1;
10 gpio_t gpio[] = {[3] = GPIO(X4), [2] = GPIO(X1), /* X4 is MSB */
11 [1] = GPIO(T1), [0] = GPIO(Q3),}; /* Q3 is LSB */
13 if (id < 0) {
14 id = gpio_base3_value(gpio, ARRAY_SIZE(gpio));
16 printk(BIOS_SPEW, "Board TRISTATE ID: %d.\n", id);
19 return id;