summaryrefslogtreecommitdiff
path: root/src/mainboard/intel/strago/w25q64.c
blob: e73f1846314afdbce53e13bcc3e041d4b1caad99 (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 <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;
}