Debian Codegraph @

src/mainboard/protectli/vault_bsw/spi_vscc.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2
3 #include <soc/spi.h>
4 #include <string.h>
5
6 #define SPI_VSCC (WG_64_BYTE | EO(0x20) | BES_4_KB)
7
8 static const struct vscc_config spi_config = {
9 .lvscc = SPI_VSCC,
10 .uvscc = SPI_VSCC,
11 };
12
13 int mainboard_get_spi_vscc_config(struct vscc_config *cfg)
14 {
15 memcpy(cfg, &spi_config, sizeof(*cfg));
16 return 0;
17 }