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

Go to the source code of this file.

Macros

#define PSF_SPI_DESTINATION_ID_H   0x23b0
 
#define PSF_SPI_DESTINATION_ID   0x23a8
 

Functions

int spi_soc_devfn_to_bus (unsigned int devfn)
 
uint32_t soc_get_spi_psf_destination_id (void)
 

Macro Definition Documentation

◆ PSF_SPI_DESTINATION_ID

#define PSF_SPI_DESTINATION_ID   0x23a8

Definition at line 14 of file spi.c.

◆ PSF_SPI_DESTINATION_ID_H

#define PSF_SPI_DESTINATION_ID_H   0x23b0

Definition at line 13 of file spi.c.

Function Documentation

◆ soc_get_spi_psf_destination_id()

uint32_t soc_get_spi_psf_destination_id ( void  )

Definition at line 31 of file spi.c.

References CONFIG, PSF_SPI_DESTINATION_ID, and PSF_SPI_DESTINATION_ID_H.

◆ spi_soc_devfn_to_bus()

int spi_soc_devfn_to_bus ( unsigned int  devfn)

Definition at line 16 of file spi.c.

References PCH_DEVFN_GSPI0, PCH_DEVFN_GSPI1, PCH_DEVFN_GSPI2, and PCH_DEVFN_SPI.