coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
w25q64.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <soc/spi.h>
4 #include <string.h>
5 
6 /*
7  * SPI VSCC configuration W25Q64FW.
8  */
9 #define SPI_VSCC (WG_64_BYTE | EO(0x20) | BES_4_KB)
10 
11 static const struct vscc_config spi_config = {
12  .lvscc = SPI_VSCC,
13  .uvscc = SPI_VSCC,
14 };
15 
17 {
18  memcpy(cfg, &spi_config, sizeof(*cfg));
19 
20  return 0;
21 }
void * memcpy(void *dest, const void *src, size_t n)
Definition: memcpy.c:7
int mainboard_get_spi_vscc_config(struct vscc_config *cfg)
Definition: w25q64.c:16
#define SPI_VSCC
Definition: w25q64.c:9
Definition: spi.h:77
uint32_t lvscc
Definition: spi.h:43