coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
qupv3_spi_common.h File Reference
#include <spi-generic.h>
Include dependency graph for qupv3_spi_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int qup_spi_claim_bus (const struct spi_slave *slave)
 
int qup_spi_xfer (const struct spi_slave *slave, const void *dout, size_t bytes_out, void *din, size_t bytes_in)
 
void qup_spi_release_bus (const struct spi_slave *slave)
 
void qup_spi_init (unsigned int bus, unsigned int speed_hz)
 

Function Documentation

◆ qup_spi_claim_bus()

int qup_spi_claim_bus ( const struct spi_slave slave)

Definition at line 213 of file qupv3_spi.c.

References slave, and spi_qup_set_cs().

Here is the call graph for this function:

◆ qup_spi_init()

◆ qup_spi_release_bus()

void qup_spi_release_bus ( const struct spi_slave slave)

Definition at line 218 of file qupv3_spi.c.

References slave, and spi_qup_set_cs().

Here is the call graph for this function:

◆ qup_spi_xfer()

int qup_spi_xfer ( const struct spi_slave slave,
const void dout,
size_t  bytes_out,
void din,
size_t  bytes_in 
)

Definition at line 78 of file qupv3_spi.c.

References assert, spi_slave::bus, M_CMD_FRAGMENTATION, MAX, MIN, NULL, qup_handle_transfer(), qup_setup_m_cmd(), qup_spi_xfer(), qup::regs, setup_fifo_params(), slave, SPI_FULL_DUPLEX, SPI_RX_ONLY, SPI_TX_ONLY, stopwatch_init_msecs_expire(), TRANS_LEN_MSK, TX_WATERMARK, and write32().

Referenced by qup_spi_xfer().

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