mainboard/intel/avenuecity_crb: Update full IIO configuration
[coreboot2.git] / src / mainboard / google / smaug / boardid.c
blobdfc4cd5742aef9c529f1fac7573ad233d25847db
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <boardid.h>
4 #include <soc/sdram.h>
6 #include "gpio.h"
8 uint32_t board_id(void)
10 static int id = -1;
12 if (id < 0) {
13 gpio_t gpio[] = {[1] = BD_ID1, [0] = BD_ID0}; /* ID0 is LSB */
15 id = gpio_base3_value(gpio, ARRAY_SIZE(gpio));
18 return id;
21 uint32_t ram_code(void)
23 return sdram_get_ram_code();