libpayload: configs: Add new config.featuretest to broaden CI
[coreboot2.git] / src / mainboard / intel / harcuvar / hsio.c
blobfa6fb61cbe02e196851bd5836b58130bba22649c
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <harcuvar_boardid.h>
4 #include <hsio.h>
5 #include <soc/fiamux.h>
7 size_t mainboard_get_hsio_config(BL_HSIO_INFORMATION **p_hsio_config)
9 uint32_t boardid = board_id();
10 size_t num;
11 switch (boardid) {
12 case BoardIdHarcuvar:
13 num = ARRAY_SIZE(harcuvar_hsio_config);
14 (*p_hsio_config) = (BL_HSIO_INFORMATION *)harcuvar_hsio_config;
15 break;
16 default:
17 num = 0;
18 (*p_hsio_config) = NULL;
19 break;
21 return num;