summaryrefslogtreecommitdiff
path: root/src/mainboard/intel/harcuvar/hsio.c
blob: fa6fb61cbe02e196851bd5836b58130bba22649c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* SPDX-License-Identifier: GPL-2.0-only */

#include <harcuvar_boardid.h>
#include <hsio.h>
#include <soc/fiamux.h>

size_t mainboard_get_hsio_config(BL_HSIO_INFORMATION **p_hsio_config)
{
    uint32_t boardid = board_id();
    size_t num;
    switch (boardid) {
    case BoardIdHarcuvar:
        num = ARRAY_SIZE(harcuvar_hsio_config);
        (*p_hsio_config) = (BL_HSIO_INFORMATION *)harcuvar_hsio_config;
        break;
    default:
        num = 0;
        (*p_hsio_config) = NULL;
        break;
    }
    return num;
}