coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
spi.h File Reference
#include <stdint.h>
Include dependency graph for spi.h:

Go to the source code of this file.

Data Structures

struct  vscc_config
 

Macros

#define HSFSTS   0x04
 
#define FLOCKDN   (0x1 << 15)
 
#define LVSCC   0xc4
 
#define VCL   (0x1 << 23)
 
#define EO(x)   (((x) & 0xff) << 8)
 
#define WG_1_BYTE   (0x0 << 2)
 
#define WG_64_BYTE   (0x1 << 2)
 
#define BES_256_BYTE   (0x0 << 0)
 
#define BES_4_KB   (0x1 << 0)
 
#define BES_8_KB   (0x2 << 0)
 
#define BES_64_KB   (0x3 << 0)
 
#define UVSCC   0xc8
 
#define SCS   0xf8
 
#define SMIWPEN   (0x1 << 7)
 
#define BCR   0xfc
 
#define EISS   (0x1 << 5)
 
#define SRC_MASK   (0x3 << 2)
 
#define SRC_CACHE_NO_PREFETCH   (0x0 << 2)
 
#define SRC_NO_CACHE_NO_PREFETCH   (0x1 << 2)
 
#define SRC_CACHE_PREFETCH   (0x2 << 2)
 
#define BCR_LE   (0x1 << 1)
 
#define BCR_WPD   (0x1 << 0)
 

Functions

int mainboard_get_spi_vscc_config (struct vscc_config *cfg)
 

Macro Definition Documentation

◆ BCR

#define BCR   0xfc

Definition at line 23 of file spi.h.

◆ BCR_LE

#define BCR_LE   (0x1 << 1)

Definition at line 29 of file spi.h.

◆ BCR_WPD

#define BCR_WPD   (0x1 << 0)

Definition at line 30 of file spi.h.

◆ BES_256_BYTE

#define BES_256_BYTE   (0x0 << 0)

Definition at line 16 of file spi.h.

◆ BES_4_KB

#define BES_4_KB   (0x1 << 0)

Definition at line 17 of file spi.h.

◆ BES_64_KB

#define BES_64_KB   (0x3 << 0)

Definition at line 19 of file spi.h.

◆ BES_8_KB

#define BES_8_KB   (0x2 << 0)

Definition at line 18 of file spi.h.

◆ EISS

#define EISS   (0x1 << 5)

Definition at line 24 of file spi.h.

◆ EO

#define EO (   x)    (((x) & 0xff) << 8)

Definition at line 13 of file spi.h.

◆ FLOCKDN

#define FLOCKDN   (0x1 << 15)

Definition at line 10 of file spi.h.

◆ HSFSTS

#define HSFSTS   0x04

Definition at line 9 of file spi.h.

◆ LVSCC

#define LVSCC   0xc4

Definition at line 11 of file spi.h.

◆ SCS

#define SCS   0xf8

Definition at line 21 of file spi.h.

◆ SMIWPEN

#define SMIWPEN   (0x1 << 7)

Definition at line 22 of file spi.h.

◆ SRC_CACHE_NO_PREFETCH

#define SRC_CACHE_NO_PREFETCH   (0x0 << 2)

Definition at line 26 of file spi.h.

◆ SRC_CACHE_PREFETCH

#define SRC_CACHE_PREFETCH   (0x2 << 2)

Definition at line 28 of file spi.h.

◆ SRC_MASK

#define SRC_MASK   (0x3 << 2)

Definition at line 25 of file spi.h.

◆ SRC_NO_CACHE_NO_PREFETCH

#define SRC_NO_CACHE_NO_PREFETCH   (0x1 << 2)

Definition at line 27 of file spi.h.

◆ UVSCC

#define UVSCC   0xc8

Definition at line 20 of file spi.h.

◆ VCL

#define VCL   (0x1 << 23)

Definition at line 12 of file spi.h.

◆ WG_1_BYTE

#define WG_1_BYTE   (0x0 << 2)

Definition at line 14 of file spi.h.

◆ WG_64_BYTE

#define WG_64_BYTE   (0x1 << 2)

Definition at line 15 of file spi.h.

Function Documentation

◆ mainboard_get_spi_vscc_config()

int mainboard_get_spi_vscc_config ( struct vscc_config cfg)

Definition at line 16 of file w25q64.c.

References memcpy().

Referenced by finalize_chipset().

Here is the call graph for this function:
Here is the caller graph for this function: