blob: d19b371c4dc4ad0e38d15264e1f18ac0ca47f503 [file] [log] [blame]
/* SPDX-License-Identifier: GPL-2.0-only */
#include <soc/spi.h>
#include <string.h>
/*
* SPI VSCC configuration W25Q64FW.
*/
#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;
}