mainboard/intel/avenuecity_crb: Update full IIO configuration
[coreboot2.git] / src / mainboard / google / nyan / boardid.c
blob218bb3f774e0c04e9ba6f01d8dc6e626b94b5080
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;
11 if (id < 0) {
12 id = gpio_get(GPIO(Q3)) << 0 |
13 gpio_get(GPIO(T1)) << 1 |
14 gpio_get(GPIO(X1)) << 2 |
15 gpio_get(GPIO(X4)) << 3;
16 printk(BIOS_SPEW, "Board ID: %#x.\n", id);
19 return id;