summaryrefslogtreecommitdiff
path: root/src/mainboard/protectli/vault_bsw/spi_vscc.c
blob: 529a78eb22499fb0a45e5d0befbf9cada3a82b9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* SPDX-License-Identifier: GPL-2.0-or-later */
/* This file is part of the coreboot project. */

#include <soc/spi.h>
#include <string.h>

#define SPI_VSCC (WG_64_BYTE | EO(0x20) | BES_4_KB)

static const struct vscc_config spi_config = {
	.lvscc =  SPI_VSCC,
	.uvscc =  SPI_VSCC,
};

int mainboard_get_spi_vscc_config(struct vscc_config *cfg)
{
	memcpy(cfg, &spi_config, sizeof(*cfg));
	return 0;
}